} //break; } } mysqli_close($db_connect); } function del_filters() { $db_connect = mysqli_connect(host, user, pass, db); $query = "DELETE FROM goodshasfeature WHERE feature_id<>2 AND feature_id<>10 AND feature_id<>14"; mysqli_query($db_connect, $query); mysqli_close($db_connect); } ////////////////////////////////////////// $runtime = new Timer(); $runtime->setStartTime(); echo "Deleteing old features... "; set_time_limit(2000); del_filters(); echo "Done!<br>"; export_filters(); $runtime->setEndTime(); echo "<br> runtime=" . $runtime->getRunTime() . " sec <br>"; ////////////////////////////////////////// /** * Class Timer * замеряем время выполнения скрипта */ class Timer { /**
//draw the header require_once APP_PATH . '/layout/header.php'; /* * check for successful installation */ //check if installation is complete passed over by installer if (isset($_GET['check'])) { $loadavg->cleanUpInstaller(); } else { //check installation has been cleaned up for security reasons $loadavg->checkInstall(); } /* * start polling time to generate charts */ $timer->setStartTime(); // Setting page load start time /* * draw the current page view */ //grab the log diretory - needs to be dynamic really //as this is also set in settings.ini.php !!! $logdir = LOG_PATH; //check to see if ip is banned before going on $banned = false; $flooding = false; if (isset($settings['ban_ip']) && $settings['ban_ip'] == "true") { $banned = $loadavg->checkIpBan(); if ($banned) { //clean up session $loadavg->logOut();