public function __construct($conn = NULL, $database = "{DATABASE}") { $this->traceID = "Books"; if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } }
function __construct($tabelID, $whereArr, $obj = NULL) { GenFun::hostConnect(); $this->tableID = $tabelID; $this->whereArr = $whereArr; parent::__construct($this->getQueryString(), $obj); }
function __construct($tableID, $setArr, $obj = NULL) { GenFun::hostConnect(); $this->tableID = $tableID; $this->setArr = $setArr; SetPublicProp::go($this, $obj); }
function __construct($queryString, $obj = NULL) { GenFun::hostConnect(); $this->queryString = $queryString; SetPublicProp::go($this, $obj); $this->queryString_CFG(); }
function __construct($conn = NULL, $database = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } //Trace::register($this, $this->traceID); }
function __construct($conn = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect(); } //$_REQUEST['dir'] = "fileUploader/files"; $this->uploadClass = new Upload(); }
function __construct($conn = NULL, $database = "{DATABASE}") { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $_REQUEST['dir'] = "fileUploader/files"; $this->uploadClass = new UploadHandler(null, false); }
function __construct($contentComments_tbl = NULL, $thumbPath = NULL) { $this->contentComments_tbl = $contentComments_tbl; $this->thumbPath = $thumbPath; if (is_null($this->conn)) { $this->conn = GenFun::hostConnect($this->database); } }
function __construct($setRating_tbl = NULL, $avgRating_tbl = NULL) { $this->avgRating_tbl = $avgRating_tbl; $this->setRating_tbl = $setRating_tbl; if (is_null($this->conn)) { $this->conn = GenFun::hostConnect($this->database); } }
function __construct() { GenFun::hostConnect(); $this->absolute_CFG(); $this->rootPath = Import::getImportPath(); // $this->largeImg_dir = $this->rootPath.$this->largeImg_dir; //$this->thumbImg_dir = $this->rootPath.$this->thumbImg_dir; }
function __construct($conn = NULL) { GenFun::hostConnect(); Account_v0::$confirmation_url = Import::getImportPath(true) . "confirmation.php"; Account_v0::$forgot_url = Import::getImportPath(true) . "forgot.php"; if ($this->cookiePrefix == "") { $this->cookiePrefix = Account_v0::getPrefix(); } }
function __construct($conn = NULL, $database = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $_REQUEST['dir'] = "swfmngr_v0"; $this->uploadClass = new UploadHandler(null, false); //Trace::register($this, $this->traceID); }
function __construct($conn = NULL, $database = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $this->traceID = "Guestbook_v0"; Trace::register($this, $this->traceID); $this->subject = "You have a new message"; }
function __construct($conn = NULL, $database = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $_REQUEST['dir'] = "pmbl"; $this->gotm_CHK(); //Trace::register($this, $this->traceID); }
function __construct($conn = NULL, $database = NULL) { if (is_null(GlobalMas::$conn)) { GlobalMas::$conn = GenFun::hostConnect($database); } $this->filesRelPath = $_SERVER['DOCUMENT_ROOT'] . "/" . $this->projectPath . "files/"; $this->filesPath = GenFun::get_full_url($this->filesRelPath); $this->commentRatingMngr = new Rating('commentRatings', 'comments'); $this->commentMngr = new Comment(1, $this->filesPath); }
function __construct($conn = NULL, $database = "{DATABASE}") { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $this->videoRelPath = $_SERVER['DOCUMENT_ROOT'] . "/" . $this->projectPath . "files/"; $this->thumbRelPath = $this->videoRelPath . "thumb/"; $this->videoPath = GenFun::get_full_url($this->videoRelPath); $this->thumbPath = $this->videoPath . "thumb/"; $this->uploadClass = new UploadHandler(null, false); $this->videoRatingMngr = new Rating('videoRatings', 'videos'); $this->commentRatingMngr = new Rating('commentRatings', 'comments'); $this->videoCommentMngr = new Comment('videoComments', $this->s3Path . "thumb/"); }
function __construct($conn = NULL) { GenFun::hostConnect(); //$this->videoRelPath = $_SERVER['DOCUMENT_ROOT']."/".$this->projectPath.ProjectGlobal::$projectFilesPath; $this->videoRelPath = "http://awwthentic.com/Modules/generated_files/videoOrganizer_v0/files/"; $this->thumbRelPath = $this->videoRelPath . "thumb/"; //$this->videoPath = GenFun::get_full_url($this->videoRelPath); $this->videoPath = $this->videoRelPath; $this->thumbPath = $this->videoPath . "thumb/"; //$this->uploadClass = new UploadHandler(null, false); $this->videoRatingMngr = new Rating('videoRatings', 'videos'); $this->commentRatingMngr = new Rating('commentRatings', 'comments'); $this->commentMngr = new Comment_v0(1, $this->thumbPath); }
function __construct($conn = NULL, $database = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $this->videoPath = GenFun::get_full_url(dirname(__FILE__)) . "files/"; $this->thumbPath = $this->videoPath . "thumb/"; $this->videoRelPath = dirname(__FILE__) . "/files/"; $this->thumbRelPath = $this->videoRelPath . "thumb/"; //------------------------------------------------------------------------- $this->newVideoPath = GenFun::get_full_url(dirname(__FILE__)) . "new_files/"; $this->newThumbPath = $this->newVideoPath . "thumb/"; $this->newVideoRelPath = dirname(__FILE__) . "/new_files/"; $this->newThumbRelPath = $this->newVideoRelPath . "thumb/"; }
function __construct($conn = NULL, $database = "{DATABASE}") { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } $this->generated_files_path = $_SERVER["DOCUMENT_ROOT"] . "/Modules/generated_files/videoOrganizer_v0/"; $this->videoRelPath = $this->generated_files_path . "files/"; $this->thumbRelPath = $this->videoRelPath . "thumb/"; $this->videoPath = GenFun::get_full_url($this->generated_files_path . "files/"); $this->thumbPath = $this->videoPath . "thumb/"; //------------------------------------------------------------------------- $this->newVideoRelPath = $_SERVER["DOCUMENT_ROOT"] . "/Modules/generated_files/videoOrganizer_v0/new_files/"; $this->newThumbRelPath = $this->newVideoRelPath . "thumb/"; $this->newVideoPath = GenFun::get_full_url($this->newVideoRelPath); $this->newThumbPath = $this->newVideoPath . "thumb/"; }
public static function chk($username, $accounts_id = NULL) { //---------------------------------------------------------- //init var //---------------------------------------------------------- $chk = array("bool" => true, 'traceID' => "session_CFG"); $userKey; //---------------------------------------------------------- $chk = GenFun::error_CHK(array($username)); //---------------------------------------------------------- if ($chk['bool']) { if (is_null(Constants::$mysqli)) { GenFun::hostConnect(); } } else { return $chk; } //---------------------------------------------------------- session_start(); $session_id = GenFun::encrypt(session_id() . self::SALT . $username); //---------------------------------------------------------- if ($chk['bool']) { $chk = MySQL::getTable(SessionLog_const::TBL, array("session_id" => $session_id, "userKey" => $_COOKIE['user'])); } else { return $chk; } //---------------------------------------------------------- $userKey = $username . "-" . rand(0, 13000000); setcookie("user", $userKey); //---------------------------------------------------------- if (sizeof($chk['result']) == 0) { $chk = InsertINTO::go(array("tableID" => SessionLog_const::TBL, "setArr" => array("userKey" => $userKey, "accounts_id" => $accounts_id, "session_id" => $session_id))); } else { $chk = Update::go(SessionLog_const::TBL, array("userKey" => $userKey), array("session_id" => $session_id)); if ($chk['bool']) { $chk['message'] = "session for this user has already been established!!!"; } } //---------------------------------------------------------- return $chk; }
function __construct($conn = NULL, $database = NULL) { if (is_null($conn)) { $this->conn = GenFun::hostConnect($database); } }
//if (!file_exists($classPath)) die($classPath." does not exist!!!!"); //---------------------------------------------------------- $class = explode(".", $classPath); //---------------------------------------------------------- if ($class[1] != "php") { die("service does not end with '.php'"); } //---------------------------------------------------------- $class = explode("/", $class[sizeof($class) - 2]); //---------------------------------------------------------- $class = end($class); //---------------------------------------------------------- require_once $classPath; //---------------------------------------------------------- if (isset($_OBJ['staticClass']) && $_OBJ['staticClass'] == "true" && is_null(Constants::$conn)) { GenFun::hostConnect(); } /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// //init /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// //---------------------------------------------------------- $object = !isset($_OBJ['staticClass']) ? ClassUtil::classFromString($class) : $class; //---------------------------------------------------------- $object = SetPublicProp::findObj($object, $_OBJ['functionName']); //---------------------------------------------------------- $orig_functionName = $_OBJ['functionName']; //---------------------------------------------------------- $_OBJ['functionName'] = $object['string']; //----------------------------------------------------------
function __construct($conn = NULL) { GenFun::hostConnect(); }
//---------------------------------------------------------- $class = explode(".", $classPath); //---------------------------------------------------------- if ($class[1] != "php") { die("service does not end with '.php'"); } //---------------------------------------------------------- $class = explode("/", $class[sizeof($class) - 2]); //---------------------------------------------------------- $class = end($class); //---------------------------------------------------------- require_once Import::$uber_src_path . $classPath; //---------------------------------------------------------- if (isset($_OBJ['staticClass'])) { if ($_OBJ['staticClass'] == "true") { Constants::$conn = GenFun::hostConnect("{DATABASE}"); } } /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// //init /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// //---------------------------------------------------------- $object = !isset($_OBJ['staticClass']) ? newClass($class) : $class; //---------------------------------------------------------- $object = SetPublicProp::findObj($object, $_OBJ['functionName']); //---------------------------------------------------------- $orig_functionName = $_OBJ['functionName']; //---------------------------------------------------------- $_OBJ['functionName'] = $object['string'];
function __construct($commentType = 1, $thumbPath = NULL) { GenFun::hostConnect($this->database); $this->commentType = $commentType; $this->thumbPath = $thumbPath; }