if (count($result)) { // the script produced an output
if ($result[count($result)-1] == 'SUCCESS') {
- show($db_path.$filename." ran correctly\n\n");
+ show(realpath($db_path.$filename)." ran correctly\n\n");
$return = true;
} else {
- show($db_path.$filename." FAILED!\n\n");
+ show(realpath($db_path.$filename)." FAILED!\n\n");
show("Script output follows:\n");
foreach ($result as $line) {
show($line."\n");
show("[End of script output]\n");
}
} else {
- show($db_path.$filename." FAILED!\n\n");
+ show(realpath($db_path.$filename)." FAILED!\n\n");
}
} else if ($ext == 'sql') {
// run the sql script
$queries = array();
if (run_sql_script($filename)) {
- show($db_path.$filename." ran correctly\n\n");
+ show(realpath($db_path.$filename)." ran correctly\n\n");
$return = true;
} else {
- show($db_path.$filename." FAILED!\n\n");
+ show(realpath($db_path.$filename)." FAILED!\n\n");
}
}
} else {