Example #1
0
         }
         printf("<p><span class='red'>&nbsp;Script execution aborted.&nbsp;<br /></span>");
         printf("<p><strong>Invalid query string, which caused the SQL error:</strong></p>");
         echo "<p> {$sql_query} </p>";
         exit;
     }
     statisticsForm('thumb_files');
     break;
 case '':
     showsites();
     break;
 case statistics:
     if (!isset($type)) {
         $type = "";
     }
     statisticsForm($type);
     break;
 case index:
     if (!isset($url)) {
         $url = "";
     }
     if (!isset($reindex)) {
         $reindex = "";
     }
     if (isset($adv)) {
         $_SESSION['index_advanced'] = $adv;
     }
     indexscreen($url, $reindex);
     break;
 case add_site:
     addsiteform();
Example #2
0
        }
        browsePages($site_id, $start, $filter, $per_page);
        break;
    case 23:
        clearLog();
        break;
    case 24:
        session_destroy();
        header("Location: admin.php");
        break;
    case database:
        include "db_main.php";
        break;
    case settings:
        include 'configset.php';
        break;
    case delete_log:
        unlink($log_dir . "/" . $file);
        statisticsForm('spidering_log');
        break;
    case '':
        showsites();
        break;
}
$stats = getStatistics();
print "<br/><br/>\t<center>Currently in database: " . $stats['sites'] . " sites, " . $stats['links'] . " links, " . $stats['categories'] . " categories and " . $stats['keywords'] . " keywords.<br/><br/></center>\n";
?>
</div>
</div>
</body>
</html>