Example #1
0
 public function __construct()
 {
     parent::__construct(true);
     $this->role = $this->db->select_to_2Array("select id,name from role where is_work='Y' order by time asc");
     $this->sma->assign('role', $this->role);
     $this->group = $this->db->select_to_2Array("select id,name from proxy_group order by taxis,time asc");
     $this->sma->assign('group', $this->group);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct(true);
     $_SESSION['proxy']['mobile'] = false;
     if (($mob = $this->db->select_to_1Array("select content from proxy_nab where proxy_id='{$_SESSION['proxy']['id']}' and type='mobile' and is_default='Y'")) != false) {
         if ($this->fun->IsPhone($mob['content'])) {
             $_SESSION['proxy']['mobile'] = $mob['content'];
         }
     }
 }
Example #3
0
 public function __construct()
 {
     parent::__construct(true);
     if (!$this->BTP[$this->get['open']][$this->get['action']]) {
         $this->fun->Msg($this->BTP_Words);
     }
     if ($show = $this->db->select_to_2Array("select currency,exchange from exchange")) {
         foreach ($show as $key => $val) {
             $SHOW[$val['currency']] = $val['exchange'];
         }
         unset($show);
         $this->sma->assign('show', $SHOW);
     }
 }
Example #4
0
 public function __construct()
 {
     parent::__construct(true);
 }
Example #5
0
        $this->sma->caching = false;
        $this->sma->config_fix_newlines = true;
        $this->sma->assign('thisurl', $this->thisurl);
        $this->sma->assign('get', $this->get);
    }
    /**
     * 全局检查是否登录
     */
    // public function check_Login()
    // {
    // 	$args = func_get_args();
    // 	if (in_array($this->get['open'] , $args)) return;
    // 	if (!$_SESSION['proxy'] || count($_SESSION['proxy']) < 2)
    // 	{
    // 		unset($_SESSION['proxy']);
    // 		$this->fun->local('./');
    // 	}
    // }
    /**
     * 输出头
     */
    private function Output_Header()
    {
        date_default_timezone_set('PRC');
        header("Cache-control: private");
        header('content-type: text/html; charset=UTF-8');
    }
}
$start = new start(false, true, false);
//$start->check_Login('login' , 'code' , 'INTbid' , 'news' , 'Quote' , 'LD');
$start->start_dispose();
Example #6
0
 public function __construct()
 {
     parent::__construct(true);
     echo '你现在的IP地址是:', $this->fun->getIP();
     exit;
 }
Example #7
0
//session_save_path('/tmp/');
session_start();
class start
{
    static function get_filepath()
    {
        $fpath = self::create_file_path($_SERVER["SCRIPT_NAME"]);
        return $fpath;
    }
    static function create_file_path($file_name)
    {
        $pth = explode('public/', $file_name);
        $pth[1] = trim(@$pth[1], '/');
        $tot = 0;
        if ($pth[1] != null) {
            $pth_syspath = explode('/', $pth[1]);
            $tot = count($pth_syspath);
        }
        $SYS_PATH = './';
        for ($i = 0; $i < $tot; $i++) {
            $SYS_PATH .= '../';
        }
        return $SYS_PATH;
    }
}
/*fkore app start*/
if (!defined('SYSTEM_PATH')) {
    $APP_PATH = start::get_filepath();
    define('SYSTEM_PATH', $APP_PATH);
    include_once SYSTEM_PATH . '/Freekore/ini.php';
}
Example #8
0
        }
        if (!$_SESSION['proxy'] || count($_SESSION['proxy']) < 2) {
            unset($_SESSION['proxy']);
            $this->fun->local('./');
        }
    }
    /**
     * 输出头
     */
    private function Output_Header()
    {
        date_default_timezone_set('PRC');
        header("Cache-control: private");
        header('content-type: text/html; charset=UTF-8');
    }
    /**
     * 检查权限
     * 将权限组压缩到QX中,方便模板层控制
     * 同时写入到全局$this->QX变量中
     */
    private function proxyTPurview()
    {
        $this->QX = @$_SESSION['proxy']['purview'];
        //var_dump($_SESSION['proxy']['purview']);die;
        $this->sma->assign('QX', $this->QX);
        $this->sma->assign('proxy', $_SESSION['proxy']);
    }
}
$start = new start(false, true, false);
$start->check_Login('login', 'code', 'INTbid', 'news', 'Quote', 'LD');
$start->start_dispose();
Example #9
0
        $pth[1] = trim(@$pth[1], '/');
        $tot = 0;
        if ($pth[1] != null) {
            $pth_syspath = explode('/', $pth[1]);
            $tot = count($pth_syspath);
        }
        $SYS_PATH = './';
        for ($i = 0; $i < $tot; $i++) {
            $SYS_PATH .= '../';
        }
        return $SYS_PATH;
    }
}
/*fkore app start*/
if (!defined('SYSTEM_PATH')) {
    define('SYSTEM_PATH', start::get_filepath());
    /*Carga todos los archivos requeridos*/
    //Main Class FKORE
    require SYSTEM_PATH . 'freekore/fkore/fkore.class.php';
    //load the app configuration
    fkore::load_configuration();
    //Create url_relative HTTP constant
    fkore::createUrlRelative();
    //load class
    require SYSTEM_PATH . 'freekore/fkore/load.class.php';
    //agregar clase FkException
    require SYSTEM_PATH . 'freekore/fkore/fkexception.class.php';
    //agregar clase AppController
    require SYSTEM_PATH . 'freekore/fkore/appcontroller.class.php';
    // General libs
    require SYSTEM_PATH . 'freekore/fkore/fk.class.php';
                                    <div class="form-group">
                                        <label for="mail">E-Mail-Adresse *</label>
                                        <input type="text" class="form-control autosave" id="mail" value="<?php 
echo $this->user->data['mail'];
?>
">
                                    </div>
                                </form>
                            </div>

                            <div class="col-sm-6">
                            	<h2>Profilbild</h2>
                                <div class="profilepic_container">
	                                <?php 
echo start::getProfilePic();
?>
	                            </div>
                                <div id="dropzoneform_beprofilepic" class="dropzone" method="POST" ></div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12">
                                <h2>Neues Passwort</h2>
                            </div>
                        </div>

                        <div class="row">
                            <form id="newPassword" method="POST">
                                <div class="col-sm-6">
Example #11
0
 public function __construct()
 {
     parent::__construct(true);
     $this->allow_view = array('price', 'ProID', 'shape', 'weight', 'color', 'clarity', 'cut', 'polish', 'symmetry', 'FLR', 'scalar_value', 'depth', 'table', 'cert', 'certNO');
 }
Example #12
0
        if (!$_SESSION['back'] | count($_SESSION['back']) < 2) {
            unset($_SESSION['back']);
            $this->fun->local('./');
        }
    }
    /**
     * 输出头
     */
    private function Output_Header()
    {
        //ob_start();
        date_default_timezone_set('PRC');
        header("Cache-control: private");
        header('content-type: text/html; charset=UTF-8');
    }
    /**
     * 检查权限
     * 将权限组压缩到BTP中,方便模板层控制
     * 同时写入到全局$this->BTP变量中
     */
    private function BackTPurview()
    {
        $this->BTP = @$_SESSION['back']['purview'];
        $this->sma->assign('BTP', $this->BTP);
        $this->cart = @$_SESSION['back'];
        $this->sma->assign('back', $this->cart);
    }
}
$start = new start(false, true, false);
$start->check_Login('login', 'code');
$start->start_dispose();
Example #13
0
<?php

session_start();
ini_set('display_errors', 'On');
//error_reporting(0);
//项目名称。
define('APPNAME', 'labalama');
//框架目录地址
define('LINPATH', '/usr/local/httpd-2.4.16/htdocs/lin/');
//项目路径
define('APPPATH', LINPATH . APPNAME . '/');
//项目静态内容路径。
define('STATICPATH', LINPATH . '../' . APPNAME . '/');
//项目初始加载文件
include LINPATH . 'core/start.php';
//设置项目自动夹在目录。
start::setIncludes();
//注册自动加载类
spl_autoload_register(array('start', 'loadClass'));
define('STARTTIME', microtime(true));
start::run();
echo start::getImages($_SESSION['user_id']);
?>

                        
                    </div>
                    <!-- TAB 2 END -->

                    <div role="tabpanel" class="tab-pane active " id="messages">
                        <h3>Support</h3>
                        <p>
                            Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
                        </p>

                        <div class="chat">
                        <?php 
echo start::getChat();
?>
                        </div>

                        <div class="chatinput_wrap">
                                <form>
                                    <input type="text" id="chatinput" autocomplete="off" placeholder="Verfasse eine Nachricht..." autofocus>
                                </form>
                            </div>

                        

                        <div class="clear"></div>  
                    </div>

Example #15
0
 public function __construct()
 {
     parent::__construct(true);
     $this->orders_default_value();
 }