Exemple #1
0
$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
$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);
$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);
Exemple #4
0
$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
Exemple #5
0
$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);
Exemple #6
0
        $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();
Exemple #7
0
<?
//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='******' 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);
Exemple #8
0
$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);
Exemple #9
0
 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));
     }
 }
Exemple #10
0
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");
}
$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);
Exemple #12
0
$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();
Exemple #13
0
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";