Esempio n. 1
0
 public static function init()
 {
     Constants::$host = self::$host;
     Constants::$pass = self::$pass;
     Constants::$user = self::$user;
     Constants::$database = self::$database;
     Account_v0::$confirmation_url = Import::getImportPath(true) . "confirmation.php";
     Account_v0::$forgot_url = Import::getImportPath(true) . "forgot.php";
     UploadHandler::$projectFilesPath = ProjectGlobal::$projectFilesPath;
     UploadHandler::$rootFilesPath = "upload/generated_files/";
 }
Esempio n. 2
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::absolute(true) . "server/werm/services/Account_v0.php";
//------------------------------------------------------------------------
Account_v0::chk(NULL, "Location: http://www.awwthentic.com/Modules/DOM/examples/sites/pmbl/login.php");
//------------------------------------------------------------------------
?>
<!DOCTYPE html>
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!--===============================================================-->
    <title>Add Video</title>
    <!--===============================================================-->
	<link rel="stylesheet" type="text/css" href="global/css/admin.css"/>
    <!--===============================================================-->
	<?php 
Import::php("default_import.php");
?>
    <?php 
Esempio n. 3
0
 public static function confirmLink($tblName)
 {
     if (is_null(self::$object)) {
         self::$object = new Account_v0();
     }
     $chk = self::$object->confirm($tblName);
     /*if ($chk['bool']) {
     			if (!is_null($url_true)) {
     				header($url_true) ;
     			}
     		} else {
     			if (!is_null($url_false)) {
     				header($url_false);
     			}
     		}*/
     return $chk;
 }
Esempio n. 4
0
 private function _register_business($set, $business, $reDirect = NULL, $logo_files_id = NULL, $returnQuery = NULL)
 {
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, 'result' => array(), "func" => "_register_business");
     //----------------------------------------------------------
     $account = new Account_v0();
     $chk = $account->registerUser(array("set" => $set, "reDirect" => $reDirect));
     if ($chk['bool']) {
         $chk = InsertINTO::go("business", array("name" => $business, "accounts_id" => $account->accounts_id, "logo_files_id" => $logo_files_id));
     }
     return $chk;
 }
Esempio n. 5
0
header('Access-Control-Allow-Origin: *');
require_once 'Constants.php';
//-----------------------------------------------------------------------------
//init var
//-----------------------------------------------------------------------------
$chk = array("bool" => true);
//-----------------------------------------------------------------------------
require_once Import::$uber_src_path . "server/werm/utils/SetPublicProp.php";
//-----------------------------------------------------------------------------
if (Constants::$loginCHK) {
    require Import::$uber_src_path . "server/werm/services/Account_v0.php";
}
//-----------------------------------------------------------------------------
if (Constants::$loginCHK && isset($_COOKIE["user"])) {
    Constants::$loggedIN = Account_v0::getUserSession($_COOKIE["user"]);
}
//-----------------------------------------------------------------------------
$_OBJ = isset($_GET["service"]) ? $_GET : $_POST;
//-----------------------------------------------------------------------------
indexExist($_OBJ, array('service', 'functionName'));
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//imports
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
constExist("Constants", array("HOST", "PASS", "USER"));
//----------------------------------------------------------
require_once Import::$uber_src_path . "server/werm/utils/GenFun.php";
//----------------------------------------------------------
$classPath = GenFun::constCHK($_OBJ['service']);
Esempio n. 6
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::$uber_src_path . "server/werm/services/Account_v0.php";
//------------------------------------------------------------------------
$chk = Account_v0::chk();
//------------------------------------------------------------------------
?>
<!DOCTYPE html>
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!--===============================================================-->
    <title>Form_v0 Login to Account</title>
    <!--===============================================================-->
	<link rel="stylesheet" type="text/css" href="global/css/index.css"/>
    <!--===============================================================-->
	<?php 
Import::uber("default_import.php");
?>
    <?php 
Esempio n. 7
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::$uber_src_path . "server/werm/services/videoOrganizer/VideoOrganizer.php";
require_once Import::$uber_src_path . "server/werm/services/Account_v0.php";
require_once Import::$uber_src_path . "server/ricardo_garcia/YouTube.php";
//------------------------------------------------------------------------
Account_v0::chk(NULL, "http://awwthentic.com/Modules/videoOrganizer_v0/");
//------------------------------------------------------------------------
?>
<!DOCTYPE html>
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>videoOrganizer_v0</title>
    <!--===============================================================-->
    <link rel="stylesheet" type="text/css" href="global/css/index.css"/>
     <link rel="stylesheet" type="text/css" href="<?php 
echo Import::absolute();
?>
global/css/Bg_blueField_v0.css" />
Esempio n. 8
0
$object = SetPublicProp::findObj($object, $_OBJ['functionName']);
//----------------------------------------------------------
$orig_functionName = $_OBJ['functionName'];
//----------------------------------------------------------
$_OBJ['functionName'] = $object['string'];
//----------------------------------------------------------
$object = $object['class'];
//----------------------------------------------------------
//if (!file_exists($classPath) && is_null($object)) die($classPath." does not exist!!!!");
//----------------------------------------------------------
if (isset($_OBJ['prop'])) {
    SetPublicProp::go($object, $_OBJ['prop']);
}
//----------------------------------------------------------
if (Constants::$loginCHK && isset($_COOKIE[Account_v0::getPrefix() . "user"])) {
    $loggedIN = Account_v0::getUserSession();
    if (!$loggedIN['bool']) {
        Constants::$loggedIN = NULL;
    }
}
//-----------------------------------------------------------------------------
if (!isset($_OBJ['params'])) {
    $_OBJ['params'] = array();
}
//----------------------------------------------------------
if (!method_exists($object, $_OBJ['functionName'])) {
    $chk['bool'] = false;
    $chk['message'] = $orig_functionName . " does not exist in " . $_OBJ['service'];
}
//----------------------------------------------------------
$chk = $chk["bool"] ? call_service($object, $_OBJ['functionName'], $_OBJ['params']) : $chk;
Esempio n. 9
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::absolute(true) . "server/werm/services/Account_v0.php";
//------------------------------------------------------------------------
Account_v0::chk("Location: http://www.awwthentic.com/Modules/DOM/examples/sites/pmbl/addvideo.php");
//------------------------------------------------------------------------
?>
<!DOCTYPE html>
<html> 
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> 
    <!--===============================================================-->
    <title>Login</title>
    <!--===============================================================-->
	<link rel="stylesheet" type="text/css" href="global/css/login.css"/>
    <!--===============================================================-->
	<?php 
Import::php("default_import.php");
?>
    <?php 
Import::modules("form/Form_v0.php");
?>
    <?php 
Import::modules("overlay/Overlay_v0.php");
Esempio n. 10
0
 public function getUserInfo($username = NULL, $password = NULL)
 {
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, 'traceID' => "getUserInfo");
     $arr;
     //----------------------------------------------------------
     if (!is_null($username)) {
         $account = new Account_v0();
         $chk = $account->loginToAccount($username, $password);
     }
     //----------------------------------------------------------
     $result = GlobalMas::$loggedIN;
     //----------------------------------------------------------
     $arr = array("first" => $result['first'], "last" => $result['last'], "dob" => $result['born_month'] . "/" . $result['born_day'] . "/" . $result['born_year'], "sex" => $result['sex'], "height" => $result['height_feet'] . "'" . $result['height_inches'], "weight" => $result['weight'], "country" => $result['countries_id'], "state" => $result['states_id'], "email" => $result['email']);
     //----------------------------------------------------------
     $chk['result'] = $arr;
     //----------------------------------------------------------
     return $chk;
 }
Esempio n. 11
0
 function forgotPassword($email)
 {
     $ref = new Account_v0();
     $ref->forgot_url = "http://www.awwthentic.com/Modules/DOM/examples/videoOrganizer/videoOrganizer_v0/forgot.php";
     $chk = $ref->forgotPassword($email);
     return $chk;
 }
Esempio n. 12
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::absolute(true) . "server/werm/services/Account_v0.php";
//------------------------------------------------------------------------
$chk = Account_v0::confirmLink(Accounts_const::TBL);
//------------------------------------------------------------------------
if (!isset($_GET['hash'])) {
    header('Location: http://www.awwthentic.com/Modules/DOM/examples/sites/pmbl/');
}
?>
<!DOCTYPE html>
<html> 
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!--===============================================================-->
    <title>Peoples Mens Basketball League - Confirmation</title>
    <!--===============================================================-->
	<link rel="stylesheet" type="text/css" href="global/css/index.css"/>
    <!--===============================================================-->
	<?php 
include "base.php";
?>
    <!--===============================================================-->
    <?php 
include "global/js/confirmation/Confirmation.php";