當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CCSecurityRedirect函數代碼示例

本文整理匯總了PHP中CCSecurityRedirect函數的典型用法代碼示例。如果您正苦於以下問題:PHP CCSecurityRedirect函數的具體用法?PHP CCSecurityRedirect怎麽用?PHP CCSecurityRedirect使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CCSecurityRedirect函數的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CCSecurityRedirect

$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = "CategoryGroups.php";
$Redirect = "";
$TemplateFileName = "Themes/CategoryGroups.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-FFD44987
CCSecurityRedirect("1", "", $FileName, CCGetQueryString("QueryString", ""));
//End Authenticate User
//Initialize Objects @1-9EBE738D
$DBDBNetConnect = new clsDBDBNetConnect();
// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "Themes/";
$Header->Initialize();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "Themes/";
$Footer->Initialize();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-351F985C
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:31,代碼來源:CategoryGroups.php

示例2: CCSecurityRedirect

$BlockToParse = "";
$ComponentName = "";
$Attributes = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "products_maint.html";
$BlockToParse = "main";
$TemplateEncoding = "CP1252";
$ContentType = "text/html";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-94FDE575
CCSecurityRedirect("3;4", "");
//End Authenticate User
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-86193689
$Attributes = new clsAttributes("page:");
$MainPage->Attributes =& $Attributes;
// Controls
$header = new clsheader("./", "header", $MainPage);
$header->Initialize();
$sidebar = new clssidebar("./", "sidebar", $MainPage);
$sidebar->Initialize();
$ace_settings = new clsace_settings("./", "ace_settings", $MainPage);
$ace_settings->Initialize();
$footer = new clsfooter("./", "footer", $MainPage);
開發者ID:wangshipeng,項目名稱:license_manager,代碼行數:31,代碼來源:products_maint.php

示例3: CCSecurityRedirect

$BlockToParse = "";
$ComponentName = "";
$Attributes = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "companies.html";
$BlockToParse = "main";
$TemplateEncoding = "CP1252";
$ContentType = "text/html";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-BF95B68F
CCSecurityRedirect("1;2;3;4", "");
//End Authenticate User
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-308807B0
$Attributes = new clsAttributes("page:");
$MainPage->Attributes =& $Attributes;
// Controls
$header = new clsheader("./", "header", $MainPage);
$header->Initialize();
$sidebar = new clssidebar("./", "sidebar", $MainPage);
$sidebar->Initialize();
$ace_settings = new clsace_settings("./", "ace_settings", $MainPage);
$ace_settings->Initialize();
$footer = new clsfooter("./", "footer", $MainPage);
開發者ID:wangshipeng,項目名稱:license_manager,代碼行數:31,代碼來源:companies.php

示例4: CCSecurityRedirect

$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = "NLOptions.php";
$Redirect = "";
$TemplateFileName = "templates/NLOptions.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-7FED0150
CCSecurityRedirect("1;2", "login.php", $FileName, CCGetQueryString("QueryString", ""));
//End Authenticate User
//Initialize Objects @1-712E7523
// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "./";
$Header->Initialize();
$users = new clsRecordusers();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "./";
$Footer->Initialize();
$users->Initialize();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:31,代碼來源:NLOptions.php

示例5: CCSecurityRedirect

$Attributes = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$TemplateSource = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "print_report.html";
$BlockToParse = "main";
$TemplateEncoding = "UTF-8";
$ContentType = "text/html";
$PathToRoot = "./";
$Charset = $Charset ? $Charset : "utf-8";
//End Initialize Page
//Authenticate User @1-B9498920
CCSecurityRedirect("1;2;3;4", "access_denied.php");
//End Authenticate User
//Include events file @1-BA7F0A72
include_once "./print_report_events.php";
//End Include events file
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-BEBAAE57
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] =& $DBConnection1;
$Attributes = new clsAttributes("page:");
$Attributes->SetValue("pathToRoot", $PathToRoot);
$MainPage->Attributes =& $Attributes;
// Controls
$header_print_report = new clsheader_print_report("includes/", "header_print_report", $MainPage);
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:31,代碼來源:print_report.php

示例6: trim

        $newcats[$i] = trim($newcats[$i]);
        if (strlen($newcats[$i]) > 0) {
            $db->query("insert into `categories` set `name` = '" . mysql_escape_string($newcats[$i]) . "', `sub_cat_id` = '" . $_GET["CatID"] . "'");
        }
        $i++;
    }
    header("Location: ViewCat.php?" . CCGetQueryString("QueryString", array()));
}
$itemcatcounts = get_catcounts($_GET["CatID"]);
if (!CCGetUserID() && $_GET["CatID"]) {
    $db = new CLSDBNetConnect();
    $query = "select * from categories where cat_id=" . $_GET["CatID"];
    $db->query($query);
    if ($db->next_record()) {
        if ($db->f("member") == 1) {
            CCSecurityRedirect("1;2", "login.php", "ViewCat.php", CCGetQueryString("QueryString", ""));
        }
    }
}
//End Include Common Files
$page = "Viewing Listings";
global $REMOTE_ADDR;
global $now;
$ip = $REMOTE_ADDR;
$timeout = $now["timeout"];
$db1 = new clsDBNetConnect();
$db2 = new clsDBNetConnect();
$db3 = new clsDBNetConnect();
$db4 = new clsDBNetConnect();
$db5 = new clsDBNetConnect();
$times = time();
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:31,代碼來源:ViewCat.php

示例7: define

<?
//Include Common Files @1-5471E0F2
define("RelativePath", ".");
include(RelativePath . "/Common.php");
include(RelativePath . "/Template.php");
include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");

CCSecurityRedirect("1;2", "login.php", "subscribe.php", CCGetQueryString("QueryString", ""));

//End Include Common Files
$page="Subscribing";
global $REMOTE_ADDR;
global $now;
$ip=$REMOTE_ADDR;
$timeout = $now["timeout"];
$db1 = new clsDBNetConnect;
$db2 = new clsDBNetConnect;
$db3 = new clsDBNetConnect;
$db4 = new clsDBNetConnect;
$db5 = new clsDBNetConnect;
$times = time();

$SQL1 = "DELETE FROM online WHERE datet < $times";
$SQL2 = "SELECT * FROM online WHERE ip='$ip'";
$SQL3 = "UPDATE online SET datet=$times + $timeout, page='$page', user='" . CCGetUserName() . "' WHERE ip='$ip'";
$SQL4 = "INSERT INTO online (ip, datet, user, page) VALUES ('$ip', $times+$timeout,'". CCGetUserName() . "', '$page')";
$SQL5 = "SELECT * FROM online";

$db1->query($SQL1);
$db2->query($SQL2);
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:31,代碼來源:subscribe.php

示例8: CCSecurityRedirect

$Attributes = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$TemplateSource = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "write_report.html";
$BlockToParse = "main";
$TemplateEncoding = "UTF-8";
$ContentType = "text/html";
$PathToRoot = "../";
$Charset = $Charset ? $Charset : "utf-8";
//End Initialize Page
//Authenticate User @1-2299D106
CCSecurityRedirect("2;4", "../access_denied.php");
//End Authenticate User
//Include events file @1-303E4956
include_once "./write_report_events.php";
//End Include events file
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-B365DBC2
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] =& $DBConnection1;
$Attributes = new clsAttributes("page:");
$Attributes->SetValue("pathToRoot", $PathToRoot);
$MainPage->Attributes =& $Attributes;
// Controls
$footer = new clsfooter("../includes/", "footer", $MainPage);
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:31,代碼來源:write_report.php

示例9: clsRecorditems

 function clsRecorditems()
 {
     global $FileName;
     ################
     # Begin check users id #
     ################
     $user_id_in = CCGetSession("UserID");
     $item_in = CCGetFromGet("ItemNum", "");
     // obtains posted item number
     $check = new clsDBNetConnect();
     // create a new db connection
     if (CCDLookUp("ItemNum", "items", "user_id='" . $user_id_in . "' AND ItemNum='" . $item_in . "'", $check) == $item_in) {
         $this->Visible = true;
         // belongs to user so show form
     } else {
         $this->Visible = false;
         // does not belong to user so do not show form
         CCSecurityRedirect("3;3", "login.php", $FileName, CCGetQueryString("QueryString", ""));
         // set illegalgroup and redirect to login page
     }
     unset($check);
     // close temp db connection
     ###############
     # End check users id #
     ###############
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsitemsDataSource();
     $this->UpdateAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "items";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->ItemNum = new clsControl(ccsLabel, "ItemNum", "ItemNum", ccsInteger, "", CCGetRequestParam("ItemNum", $Method));
         $this->title = new clsControl(ccsLabel, "title", "title", ccsText, "", CCGetRequestParam("title", $Method));
         $this->added_description = new clsControl(ccsTextArea, "added_description", "Added Description", ccsMemo, "", CCGetRequestParam("added_description", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
         $this->dateadded = new clsControl(ccsHidden, "dateadded", "Dateadded", ccsText, "", CCGetRequestParam("dateadded", $Method));
     }
 }
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:43,代碼來源:edititem.php

示例10: freesubsc

function freesubsc($id)
{
    CCSecurityRedirect("1;2", "login.php", "ViewSubscriptions.php", CCGetQueryString("QueryString", ""));
    $db = new clsDBNetConnect();
    $query = "select * from subscription_plans where id = " . $id . " and price = '0.00'";
    $db->query($query);
    if ($db->next_record()) {
        subscribe(CCGetUserID(), $id, "0.00");
    }
    header("Location: myaccount.php");
}
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:11,代碼來源:ViewSubscriptions.php

示例11: CCSecurityRedirect

$BlockToParse = "";
$ComponentName = "";
$Attributes = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "users_reassignuser.html";
$BlockToParse = "main";
$TemplateEncoding = "CP1252";
$ContentType = "text/html";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-8EAC87DA
CCSecurityRedirect("4", "");
//End Authenticate User
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-D601A5F6
$Attributes = new clsAttributes("page:");
$MainPage->Attributes =& $Attributes;
// Controls
$header = new clsheader("./", "header", $MainPage);
$header->Initialize();
$sidebar = new clssidebar("./", "sidebar", $MainPage);
$sidebar->Initialize();
$ace_settings = new clsace_settings("./", "ace_settings", $MainPage);
$ace_settings->Initialize();
$footer = new clsfooter("./", "footer", $MainPage);
開發者ID:wangshipeng,項目名稱:license_manager,代碼行數:31,代碼來源:users_reassignuser.php

示例12: CCSecurityRedirect

$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = "UploadImage.php";
$Redirect = "";
$TemplateFileName = "templates/UploadImage.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-4A98D8DC
if (!$valid) {
    CCSecurityRedirect("1;2", "AccessDenied.php", $FileName, CCGetQueryString("QueryString", ""));
}
//End Authenticate User
//Initialize Objects @1-C2EC4521
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Go to destination page @1-BEB91355
if ($Redirect) {
    $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
    header("Location: " . $Redirect);
    exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:31,代碼來源:UploadImage.php

示例13: include

include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");

$valid = "";
if ($_REQUEST["adminkey"]) {
	$admin = new clsDBNetConnect;
	$query = "select * from administrators";
	$admin->query($query);
	while ($admin->next_record()){
		$key = md5($admin->f("username") . "AdMin kkkkkey" . $admin->f("password"));
		if ($key == $_REQUEST["adminkey"])
		    $valid = $key;
	}
}
if (!$valid)
	CCSecurityRedirect("1;2", "login.php", "catlist.php", CCGetQueryString("QueryString", ""));

//End Include Common Files
$page="Selecting a Category for a new listing";
global $REMOTE_ADDR;
global $now;
$ip=$REMOTE_ADDR;
$timeout = $now["timeout"];
$db1 = new clsDBNetConnect;
$db2 = new clsDBNetConnect;
$db3 = new clsDBNetConnect;
$db4 = new clsDBNetConnect;
$db5 = new clsDBNetConnect;
$times = time();

$SQL1 = "DELETE FROM online WHERE datet < $times";
開發者ID:4v4t4r,項目名稱:CTF-LCC,代碼行數:31,代碼來源:catlist.php


注:本文中的CCSecurityRedirect函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。