. */ include "../inc.php"; $queryfiles = "select id, sessionid, name from Files where 1;"; $resfiles = mysql_query($queryfiles,$dbh) or die("

A fatal database error occured.\n
Query: " . $queryfiles . "
\nError: (" . mysql_errno() . ") " . mysql_error()); ?> <?=$appname; ?> - Admin Could not retrieve session list..\n
Query: " . $query . "
\nError: (" . mysql_errno() . ") " . mysql_error()); while ($row = mysql_fetch_row($res)) { error_log($row[1] . ': Purging files'); $query2 = "select id from Files where sessionid=$row[0]"; $res2 = mysql_query($query2,$dbh) or die("

File was invalid, could not delete.... Purge cancelled..\n
Query: " . $query2 . "
\nError: (" . mysql_errno() . ") " . mysql_error()); $filerow = mysql_fetch_row($res2); if ($savehistory) { // record file modification/deletion into History table; insert_history_entry('purge', $filerow[0], $row[0]); } $query2 = "delete from Files where sessionid=$row[0]"; $res2 = mysql_query($query2,$dbh) or die("

File was invalid, could not delete.... Purge cancelled..\n
Query: " . $query2 . "
\nError: (" . mysql_errno() . ") " . mysql_error()); $query2 = "delete from Sessions where id=$row[0];"; $res2 = mysql_query($query2,$dbh) or die("

Session was invalid, could not delete.... Purge cancelled..\n
Query: " . $query2 . "
\nError: (" . mysql_errno() . ") " . mysql_error()); remove_files("$row[1]"); } echo '

Purge Completed
'; } else { echo '
Purge Cancelled
'; } ?>

Back to admin page