WHERE seftitle = "' . $categorySEF . '" AND subcat = 0 ' . $pub_c; } } } if (!empty($MainQuery)) { $Mainresult = mysql_query($MainQuery); if (mysql_num_rows($Mainresult) === 1) { $R = mysql_fetch_assoc($Mainresult); } elseif (!in_array($_GET['action'], explode(',', l('cat_listSEF')))) { $categorySEF = '404'; header('HTTP/1.1 404 Not Found'); unset($subcatSEF, $articleSEF); } update_articles(); } // globals } else { // ID for 'home' if (s('display_page') !== 0) { $_ID = s('display_page'); } } if (!empty($R['category'])) { $_CAT = $R['category']; } if (!empty($R['id'])) { $_ID = $R['id']; } if (!empty($R['title'])) {
function snews_startup() { putenv("TZ=" . s('new_timezone') . ""); connect_to_db(); update_articles(); if (isset($_POST['Submitted']) == "True") { if (md5(clean($_POST['Username'])) == s('username') && md5(clean($_POST['Password'])) == s('password')) { $_SESSION['Logged_In'] = "True"; $_SESSION['Username'] = s('username'); $_SESSION['Website'] = s('website'); } } }