当前位置: 首页>>代码示例>>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;未经允许,请勿转载。