コード例 #1
0
ファイル: miniadm.php プロジェクト: brucewu16899/1.6.x
<?php

if (!isset($_SESSION["uid"])) {
    header("location:miniadm.logon.php");
    die;
}
include_once dirname(__FILE__) . "/ressources/class.mini.admin.inc";
include_once dirname(__FILE__) . "/ressources/class.templates.inc";
include_once dirname(__FILE__) . "/ressources/class.user.inc";
include_once dirname(__FILE__) . "/ressources/class.langages.inc";
if (isset($_GET["loggoff"])) {
    logoff();
}
if (isset($_GET["start-page"])) {
    startpage();
    exit;
}
if (isset($_GET["auth"])) {
    auth_popup();
    exit;
}
if (isset($_POST["username-logon"])) {
    auth_verif();
    exit;
}
$mini = new miniadmin();
echo $mini->webpage;
function startpage()
{
    $page = CurrentPageName();
    $tpl = new templates();
コード例 #2
0
ファイル: opdat_shop_kat.php プロジェクト: nielsrune/saldi_ce
        $opret_i_shop[$x] = 0;
    }
}
for ($x = 1; $x <= count($kat_id); $x++) {
    if ($kat_master[$x] && $opret_i_shop[$x]) {
        # echo "$kat_master[$x] && $opret_i_shop[$x]<br>";
        for ($y = 1; $y <= count($kat_id); $y++) {
            # echo "$kat_master[$x]==$kat_id[$y]<br>";
            if ($kat_master[$x] == $kat_id[$y]) {
                $shop_kat_master[$x] = $shop_kat_id[$y];
                $shop_kat_master_name[$x] = $kat_navn[$x];
                # echo "$shop_kat_master[$x] | $shop_kat_master_name[$x] | $shop_kat_id[$y]<br>";
            }
        }
        if ($shop_kat_master[$x]) {
            echo "opretter {$kat_navn[$x]} med parent {$shop_kat_master[$x]}<br>";
            mysql_query("insert into categories(parent_id,sort_order,date_added) values ('{$shop_kat_master[$x]}','0','{$datotid}')");
            $r = mysql_fetch_array(mysql_query("select max(categories_id) as categories_id from categories where parent_id='{$shop_kat_master[$x]}' and sort_order='0' and date_added='{$datotid}'"));
            $shop_kat_id[$x] = $r['categories_id'];
            # echo "insert into categories_description(categories_id,language_id,categories_name) values ('$shop_kat_id[$x]','$language_id','$kat_navn[$x]')<br>";
            mysql_query("insert into categories_description(categories_id,language_id,categories_name) values ('{$shop_kat_id[$x]}','{$language_id}','{$kat_navn[$x]}')");
            list($fejl, $svar) = explode(chr(9), singleupdate($s_id, "grupper set box3='{$shop_kat_id[$x]}' where id = {$kat_id[$x]}"));
            if ($fejl) {
                echo "{$svar}<br>";
            }
            $opret_i_shop[$x] = 0;
        }
    }
}
logoff($s_id);
print "<body onload=\"javascript:window.close();\">";
コード例 #3
0
ファイル: control.php プロジェクト: holg/E2Transcoder
function is_ajax()
{
    if ($_SESSION["authenticated"] == false) {
        return false;
        logoff();
    } else {
        return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
    }
}