Пример #1
0
<?php

/*
 * This software is part of the Tiger php news system
 * http://tpns.sourceforge.net
 * 
 * This software comes with ABSOLUTELY NO WARRANTY. For details, see
 * the enclosed file COPYING for license information (GPL). If you
 * did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
 * 
 */
//{{{ Init
require_once 'Main.php';
include 'config.php';
$main = new Main();
$_REQUEST = $main->clean_array($_REQUEST);
$userid = 0;
$role = 0;
//}}}
//{{{Login
if (isset($_REQUEST['user']) and isset($_REQUEST['passwd'])) {
    $user = "";
    if ($_REQUEST['user'] != "") {
        $user = $_REQUEST['user'];
    }
    $passwd = "";
    if ($_REQUEST['passwd'] != "") {
        $passwd = $_REQUEST['passwd'];
    }
    $userdata = $main->login($user, $passwd, false);
    if ($userdata->rows != 0) {
Пример #2
0
        // Close the file
        fclose($fp);
    }
}
//}}}
$havecookie = false;
if (isset($_COOKIE['PHPSESSID']) and isset($_SESSION['reqid'])) {
    $havecookie = true;
}
$main->isbot = $isbot;
$main->havecookie = $havecookie;
$upload_max_filesize = ini_get('upload_max_filesize');
$form_upload_max_filesize = preg_replace('/M/', '000000', $upload_max_filesize);
$text_upload_max_filesize = preg_replace('/M/', ' Megabyte(s)', $upload_max_filesize);
//$main->Main();
$_REQUEST = $main->clean_array($_REQUEST, true);
$_SERVER = $main->clean_array($_SERVER, false, false);
if (isset($_SESSION['nr'])) {
    $nr = $_SESSION['nr'];
}
if (isset($_REQUEST['nr'])) {
    $nr = $_REQUEST['nr'];
}
$count = 0;
$plugins = array();
//Variables
$page = "start";
if ($initpage == "true") {
    $page = "init";
}
if ($enablesplash) {