Example #1
0
function magelo_import()
{
    check_authorization();
    global $mysql, $npcid, $perl_path;
    $insert = $_POST['spawngroupinsert'];
    $limit = $_POST['limit'];
    $heading = $_POST['heading'];
    $respawntime = $_POST['respawntime'];
    $spawnlimit = $_POST['spawnlimit'];
    $mincoord = $_POST['mincoord'];
    $maxcoord = $_POST['maxcoord'];
    $forcedz = $_POST['forcedz'];
    $output = array();
    $output = exec("perl {$perl_path}/Coords.pl {$npcid} {$insert} {$limit} {$spawnlimit} {$heading} {$respawntime} {$mincoord} {$maxcoord} {$forcedz} 2>&1");
    logPerl($output);
}
Example #2
0
function magelo_import()
{
    check_authorization();
    global $mysql, $npcid, $perl_path;
    $output = array();
    $output = exec("perl {$perl_path}/Loot.pl {$npcid} 2>&1");
    logPerl($output);
}