Exemplo n.º 1
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();
    ///////////////////////////////////////////////////////////////////////////////
Exemplo n.º 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);
        }
    }
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
Exemplo n.º 3
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");
Exemplo n.º 4
0
<?php

//------------------------------------------------------------------------
$_GET['compile_id'] = "home";
//--------------------------------------------------------------------
Import::services("compileUpload/CompileUpload");
//--------------------------------------------------------------------
//Import::current("base.php");
Import::modules("form/Form_v20.php");
Import::css("home.scss", ["wUber" => false]);
Import::modules("item/Item_v1_0.php");
Import::js("client/Respond-master/respond.js");
?>
<script>
var Main = Class.extend({
	  ///////////////////////////////////////////////////////////////////////////////////////
	  ///////////////////////////////////////////////////////////////////////////////////////
	  //private var
	  ///////////////////////////////////////////////////////////////////////////////////////
	  ///////////////////////////////////////////////////////////////////////////////////////
	  //---------------------------------------------------------
	  //String
	  //---------------------------------------------------------
	  traceID:undefined, 
	  ///////////////////////////////////////////////////////////////////////////////////////
	  ///////////////////////////////////////////////////////////////////////////////////////
	  //Constructor
	  ///////////////////////////////////////////////////////////////////////////////////////
	  ///////////////////////////////////////////////////////////////////////////////////////
	  init:function() {
	  },
Exemplo n.º 5
0
<?php

Import::services("jquery_fileupload/UploadHandler.php");
Import::services("Account_v0.php");
class ProjectGlobal
{
    //----------------------------------------------------
    static $host = 'mybizpage.db.2585794.hostedresource.com';
    static $user = '******';
    static $pass = '******';
    static $database = "mybizpage";
    //----------------------------------------------------
    static $email = '*****@*****.**';
    static $name = 'heresthebiz';
    static $confirmation_url = NULL;
    static $forgot_url = NULL;
    //----------------------------------------------------
    static $mysqli = NULL;
    static $projectFilesPath = "fileUploader/files/";
    static $filesLocalPath = NULL;
    static $filesPath = NULL;
    //----------------------------------------------------
    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;
Exemplo n.º 6
0
<?php

Import::services("Upload.php");
class Jcrop
{
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //init vars
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public $resultObj = NULL;
    public $coor = NULL;
    public $src = NULL;
    public $width = NULL;
    public $height = NULL;
    public $curWidth = NULL;
    public $curHeight = NULL;
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //constructor
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    function __construct($conn = NULL)
    {
    }
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    //methods
    ///////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////
    public function fileFromCrop()
Exemplo n.º 7
0
<?php

require_once 'Import.php';
if (!isset($_GET['compile']) || $_GET['compile'] == 0) {
    require_once Import::$uber_src_path . 'server/werm/utils/GetTable.php';
    Import::services('FileUploader.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>Form_v14</title>
		<!--===============================================================-->
		<?php 
    Import::uber("default_import.php");
    Import::modules("form/Form_v14.php");
    Import::cUtils("SetImgMin.php");
    Import::uber("post_import.php");
    //--------------------------------------------------------------------
    GenFun::hostConnect();
    $fileUploader = new FileUploader();
    $files = $fileUploader->getFiles(false);
    //--------------------------------------------------------------------
    if (!$files['bool']) {
        die(krumo($files));
    }
    ?>
		<!--===============================================================-->
Exemplo n.º 8
0
}
//-----------------------------------------------------------------------------
//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!!!!");
//----------------------------------------------------------
if (!isset($_REQUEST['service'])) {
    fail_CHK("service is not set!!");
} else {
    if (!FileFolder::file_exists($classPath)) {
        fail_CHK("service (" . $classPath . ") does not exist!!");
    }
}
//----------------------------------------------------------
$class = explode(".", $classPath);
//----------------------------------------------------------
if ($class[1] != "php") {
    fail_CHK("service does not end with '.php'");
Exemplo n.º 9
0
<?php

//------------------------------------------------------------------------
require_once Import::$uber_src_path . "server/werm/services/Account_v0.php";
//--------------------------------------------------------------------
Account_v0::chk();
//--------------------------------------------------------------------
Import::services("bannerHub/BannerHub.php");
//--------------------------------------------------------------------
GlobalMas::$api = new BannerHub();
if (is_null(GlobalMas::$loggedIN) && $_SERVER["SCRIPT_FILENAME"] != Import::getImportPath() . "index.php") {
    header('Location: ' . Import::getImportPath(true));
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />