Meap
Don't need glasses if you C#
I posted this on the PlusEMU Support thread also because I was asking for help but I managed to figure it out a bit so this may help some of you
I was reading up on some stuff and managed to come together with this after compiling together some examples I found
This will auto give you the queries so you can just truncate your badge_definitions table and run this and it will make sure every badge works
If anyone wants to expand on this to make it search for if the badge already exists and skips that query from showing to stop duplicates so you dont have to truncate everytime It would be highly appreciated because its 5am for me right now and my mind isnt so fresh
Just replace DATABASENAME with your database name
I was reading up on some stuff and managed to come together with this after compiling together some examples I found
This will auto give you the queries so you can just truncate your badge_definitions table and run this and it will make sure every badge works
If anyone wants to expand on this to make it search for if the badge already exists and skips that query from showing to stop duplicates so you dont have to truncate everytime It would be highly appreciated because its 5am for me right now and my mind isnt so fresh
Just replace DATABASENAME with your database name
PHP:
<?php
$target = "c_images/album1584/";
$weeds = array('.', '..');
$directories = array_diff(scandir($target), $weeds);
foreach($directories as $value)
{
$gifkill=str_replace('.gif', '', $value);
$gif2kill=str_replace('.GIF', '', $gifkill);
$uppercasewords=ucwords($gif2kill);
if(is_file($target.$value))
{
echo "INSERT INTO `DATABASENAME`.`badge_definitions` (`code`, `required_right`) VALUES ('".$uppercasewords."', '');<br />";
}
}
?>