Example #1
0
<?php

Import::sUtils("Compile_Match_TMPL.php");
Import::sUtils("Compile_Code.php");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class Compile_TMPL extends Compile_Code
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $regex = '/(<!--{(\\S+)}-->|)<script\\sid(?:\\s|)=(?:\\s|)[\'\\"]\\b\\w+_\\w+\\b[\'\\"]\\stype(?:\\s|)=(?:\\s|)[\'\\"]text\\/x-jQuery\\-tmpl[\'\\"](?:.*?)>(.*?)<\\/script>/s';
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //constructor
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    function __construct($obj)
    {
        $this->matchClass = "Compile_Match_TMPL";
        parent::__construct($obj);
        //$this->content = str_replace($matches[0][$key], '', $this->content);
        //krumo($this->import);
        //GenFun::setCookie("compile_root", true, Compiler::$root);
    }
}
Example #2
0
<?php

Import::sUtils('GenFun.php');
Import::sUtils('InsertINTO.php');
Import::sUtils('Result.php');
Import::services("jquery_fileupload/UploadHandler.php");
class Upload
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init vars
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $resultObj = NULL;
    public static $traceID = "Upload";
    public $appendToDir = "";
    public $url_local = NULL;
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //constructor
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    function __construct($obj = NULL)
    {
        SetPublicProp::go($this, $obj);
        if (isset($_FILES) && sizeof($_FILES) > 0) {
            $this->uploadClass = new UploadHandler(false);
        }
    }
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
Example #3
0
<?php

require_once Import::$uber_src_path . 'server/werm/services/Upload.php';
Import::sUtils("Archive.php");
Import::sUtils("Compiler.php");
Import::services("CreateImage.php");
require_once Import::$uber_src_path . 'server/werm/services/Rating.php';
require_once Import::$uber_src_path . 'server/werm/services/Comment_v0.php';
require_once Import::$uber_src_path . "/server/smarty/libs/Smarty.class.php";
Import::sUtils("HtmlSnapShot.php");
//ini_set("auto_detect_line_endings", true);
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class CompileUpload extends Upload
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $filesPath_absolute = NULL;
    public $filesPath_web = NULL;
    public $filesPath_relative = NULL;
    public $commentRatingMngr;
    public $commentMngr;
    public $extractTo = NULL;
    public $resultObj = array();
    ///////////////////////////////////////////////////////////////////////////////
Example #4
0
<?php

Import::sUtils("SetPublicProp.php");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class CurlUtil
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $url = NULL;
    public $content = NULL;
    public $sendCookies = true;
    public $getCookies = true;
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //static methods
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public static function go($obj)
    {
        $api = new CurlUtil($obj);
        return $api->getContent();
    }
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
<?php

Import::sUtils("Compile_Match.php");
Import::sUtils("Compile_Images.php");
Import::sUtils("Compile_File.php");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class Compile_Match_TMPL extends Compile_Match
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //constructor
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    function __construct($obj = NULL)
    {
        parent::__construct($obj);
        $this->codeType = "js";
        $this->tagType = "tmpl";
        $this->saveas_ext = "html";
    }
    //-----------------------------------------------------------------------------
    function parse_match()
Example #6
0
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> 
<?php 
include Import::$uber_src_path . "default_import.php";
include "global/js/nav/Nav.php";
include "global/js/ProjectGlobal.php";
Import::sUtils("DupIncluded.php");
?>
<link rel="shortcut icon" href="global/images/icon.ico" >
<script>
$.mobile.loadingMessage = false;
//-------------------------------------------------------------------------------------
$(document).ready(init);
//-------------------------------------------------------------------------------------
function init() {
	//$('body').css("background-image", "url("+Global.imagePath+"backgrounds/wood_2.jpeg)");
	Global.baseURL = GenFun.baseUrl();
	Global.loggedIN = <?php 
echo !is_null(Constants::$loggedIN) ? "1" : "0";
?>
;
	Trace.externalCall = false;
	obj = new Nav(
	{prependTo:$("body"), 
	css:{position:"absolute"},
	height:200, 
	initComplete:nav_complete}, false);
	obj.preStart();
}
//-------------------------------------------------------------------------------------
function nav_complete(e) {
	e.targetClass.start();
Example #7
0
	<?php 
//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'GlobalMas.php';
Import::sUtils("Compiler.php");
?>

<!DOCTYPE html>
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>uploadCompile</title>
    <!--===============================================================-->
    <?php 
Import::uber("default_import.php");
?>
    <!--===============================================================-->
    <?php 
Import::modules("upload/Upload_v0_0.php");
?>
    <!--===============================================================-->
     <link rel="stylesheet" type="text/css" href="global/css/index.css">
    <!--===============================================================-->
Example #8
0
<?php

header('Access-Control-Allow-Origin: *');
//-----------------------------------------------------------------------------
Import::sUtils("SetPublicProp.php");
Import::sUtils("ClassUtil.php");
Import::sUtils("GenFun.php");
Import::sUtils("MarkUp.php");
Import::sUtils("ThrowError.php");
//-----------------------------------------------------------------------------
if (GlobalMas::$loginCHK) {
    Import::services("Account_v0.php");
}
//-----------------------------------------------------------------------------
//init var
//-----------------------------------------------------------------------------
$chk = array("bool" => true);
//-----------------------------------------------------------------------------
//$_REQUEST = (isset($_GET["service"])) ?  $_GET :  $_POST;
//-----------------------------------------------------------------------------
indexExist($_REQUEST, array('service', 'functionName'));
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//imports
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
preg_match("/{(.*?)}/", $_REQUEST['service'], $match);
$classPath = sizeof($match) == 0 ? Import::services() . $_REQUEST['service'] : MarkUp::go($_REQUEST['service']);
//----------------------------------------------------------
//if (!file_exists($classPath)) die($classPath." does not exist!!!!");
//----------------------------------------------------------
Example #9
0
<?php

require_once "GenFun.php";
require_once "FileFolder.php";
require_once "CurlUtil.php";
require_once "Minifier_v0.php";
require_once "Html.php";
require_once dirname(__FILE__) . "/../../joe_scylla/cssmin-v3.0.1.php";
require_once dirname(__FILE__) . "/../../JShrink/Minifier.php";
Import::sUtils("Compile_JS.php");
Import::sUtils("Compile_CSS.php");
Import::sUtils("Compile_TMPL.php");
Import::sUtils("Archive.php");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class Compile
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $compileType = "seperate";
    public $minify = false;
    public $js = NULL;
    public $css = NULL;
    public $tmpl = NULL;
    public $jsProp = NULL;
Example #10
0
<?php

Import::sUtils("Phantomjs");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class HtmlSnapShot
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $save_path = NULL;
    public $selector = NULL;
    public $url = NULL;
    public $dur = 15;
    public $snaps = 5;
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //static methods
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public static function go($obj = array())
    {
        $api = new HtmlSnapShot($obj);
        return $api->start();
        //$api = new Archive($obj);
        //return $api->archive();
Example #11
0
<?php

//Import::sUtils("InsertINTO.php");
//Import::sUtils("Update.php");
//Import::sUtils("IE.php");
//Import::sUtils("AddToQuery.php");
Import::sUtils("ArrayUtil.php");
Import::sUtils("Compiler.php");
Import::sUtils("Archive.php");
Import::sUtils("Result.php");
Import::sUtils("Image.php");
Import::sUtils("Metadata.php");
Import::sUtils("HtmlSnapShot.php");
Import::sUtils("S3.php");
ini_set('memory_limit', '400M');
krumo(S3::upload('/var/www/html/Modules/generated_files/videoOrganizer_v0/files/MUSTSEEANDREWARDOPENSUPONRACIALISSUESINBOXINGTALKSDOUBLESTANDARDSANDBIASES_kvUId.mp4'));
/*//------------------------------------------------------------------------------------------------
function getProject() {
	//----------------------------------------------------------
    //init var
	//----------------------------------------------------------
	$chk = array("bool" => true, 'result' => array(), "func" => "getProject");
	//----------------------------------------------------------
	exec("searchd --stop");
	//----------------------------------------------------------
	$chk = Result::go(
		"
		select 
		COUNT(*) 
		FROM 
		projects
Example #12
0
<?php

header('Access-Control-Allow-Origin: *');
require_once 'Constants.php';
Import::sUtils("SetPublicProp.php");
Import::sUtils("ClassUtil.php");
Import::sUtils("GenFun.php");
//-----------------------------------------------------------------------------
if (Constants::$loginCHK) {
    Import::services("Account_v0.php");
}
//-----------------------------------------------------------------------------
//init var
//-----------------------------------------------------------------------------
$chk = array("bool" => true);
//-----------------------------------------------------------------------------
$_OBJ = isset($_GET["service"]) ? $_GET : $_POST;
//-----------------------------------------------------------------------------
indexExist($_OBJ, array('service', 'functionName'));
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//imports
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
$classPath = GenFun::constCHK($_OBJ['service']);
//----------------------------------------------------------
//if (!file_exists($classPath)) die($classPath." does not exist!!!!");
//----------------------------------------------------------
$class = explode(".", $classPath);
//----------------------------------------------------------
if ($class[1] != "php") {
Example #13
0
<?php

Import::sUtils("StringUtil.php");
require_once Import::$uber_src_path . "server/werm/services/Minifier_v0.php";
require_once Import::$uber_src_path . "server/kaloyan/class.krumo.php";
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class DupIncluded
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $script = NULL;
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //methods
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public static function go($search, $prepend = '')
    {
        $included_files = get_included_files();
        foreach ($included_files as $filename) {
            if (strpos($filename, $search) !== false) {
                $pos = strpos($filename, $search);
                $left_string = substr($filename, 0, $pos);
                $newString = str_replace($left_string, "", $filename);
Example #14
0
<?php

Import::sUtils("GenFun.php");
Import::sUtils("FileFolder.php");
Import::sUtils("CurlUtil.php");
require_once Import::$uber_src_path . "server/joe_scylla/cssmin-v3.0.1.php";
require_once Import::$uber_src_path . "server/JShrink/Minifier.php";
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class Compile
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $content = NULL;
    public $url = NULL;
    public static $root = NULL;
    public $fileCssAb = NULL;
    public $fileCss = NULL;
    public $fileJsAb = NULL;
    public $fileJs = NULL;
    public $folderName = NULL;
    public static $minifiedPath = NULL;
    public static $tmpPath = NULL;
    public $fileTmpl = NULL;
    public static $unminifiedPath = NULL;
Example #15
0
<?php

require_once "Import.php";
require_once Import::$uber_src_path . "server/werm/utils/GenFun.php";
if (file_exists("ProjectGlobal.php")) {
    Import::current("ProjectGlobal.php");
}
Import::sUtils("GetTable.php");
$hash = $_GET['hash'];
$chk = GetTable::go("files", array("hash" => $hash));
$_GET['url'] = ProjectGlobal::$filesPath . "/{$hash}/" . $chk['result'][0]['name'];
include Import::services("Download.php");
Example #16
0
<?php

Import::sUtils("Compile_Match.php");
Import::sUtils("Compile_Images.php");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class Compile_Code
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init var
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $save_dir;
    public $compilerGlobal = NULL;
    public $minify;
    public $output;
    public $output_updated;
    public $output_markup = NULL;
    public $tags = NULL;
    public $extLinks = "";
    public $matchClass;
    public $files = NULL;
    public $compileType = "seperate";
    public $compilePath = "seperate";
    public $matches;
    public $matchProp = NULL;
    public $mergedCode = "";
Example #17
0
<?php

require_once Import::$uber_src_path . "server/werm/utils/Trace.php";
Import::sUtils("AddToQuery.php");
require_once Import::$uber_src_path . "server/werm/utils/SetPublicProp.php";
Import::sUtils("MySQL.php");
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Class setup
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
class Result
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init vars
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $chkForQuery = false;
    public $multi = false;
    public $message_false = "fail";
    public $message_true = "success";
    public $greaterZero = NULL;
    public $queryString;
    public $count = false;
    public static $resultHistory = array();
    public $limitFrom = NULL;
    public $limitTo = NULL;
    public $getTotalRows = false;
    public $addToEnd = '';
    public $addToQuery = NULL;