Exemplo n.º 1
0
function printHeader($refresh = 0)
{
    // ----------------
    // HTML Head
    //<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de\" lang=\"de\">\n  <head>\n    <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n";
    $stylesheet = checkMobile() == 1 ? "stylesheet.css" : "stylesheet.css";
    if ($refresh) {
        echo "    <meta http-equiv=\"refresh\" content=\"{$refresh}\">\n";
    }
    echo "    <meta name=\"author\" content=\"Jörg Wendel\">\n    <meta name=\"copyright\" content=\"Jörg Wendel\">\n    <LINK REL=\"SHORTCUT ICON\" HREF=\"" . $_SESSION['heatingType'] . ".ico\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"{$stylesheet}\">\n    <script type=\"text/JavaScript\" src=\"jfunctions.js\"></script> \n    <title>Fröling  " . $_SESSION['heatingType'] . "</title>\n  </head>\n  <body>\n    <a class=\"button1\" href=\"main.php\">Aktuell</a>\n    <a class=\"button1\" href=\"chart.php\">Charts 1+2</a>";
    if ($_SESSION['chart34'] == "1") {
        echo "<a class=\"button1\" href=\"chart2.php\">Charts 3+4</a>";
    }
    echo "<a class=\"button1\" href=\"schemadsp.php\">Schema</a>\n    <a class=\"button1\" href=\"menu.php\">Menü</a>\n    <a class=\"button1\" href=\"error.php\">Fehler</a>\n";
    if (haveLogin()) {
        echo "    <a class=\"button1\" href=\"basecfg.php\">Setup</a>\n";
        echo "    <a class=\"button1\" href=\"logout.php\">Logout</a>\n";
    } else {
        echo "    <a class=\"button1\" href=\"login.php\">Login</a>\n";
    }
    //   echo $stylesheet;
    echo "    <div class=\"content\">\n";
}
Exemplo n.º 2
0
 if (checkMobile($mobile) == "2") {
     $tel = $mobile;
     $mobile = "";
 }
 if (checkemail($email) == "3") {
     $email = "";
 }
 $isvalid = true;
 $errmsg = "";
 if (trim($companyName) == "") {
     //公司名字
     $errmsg = $errmsg . "公司名字不能为空;";
     $isvalid = false;
 }
 //三个多不是的话,就不要导入
 if (checkMobile($phone) == "3" && checkMobile($mobile) == "3" && checkemail($email) == "3") {
     $errmsg = $errmsg . "电话和手机和电子邮件三者不能为空;";
     $isvalid = false;
 }
 $sql = get_sql("select id from {pre}pool where companyName='" . $companyName . "'");
 $rows = $db->getRowsNum($sql);
 if ($rows > 0) {
     $errmsg = $errmsg . "公司名字存在了;";
     $isvalid = false;
     $data = $db->getonerow($sql);
     //更新电话等信息
     $record = array('companyName' => $companyName, 'name' => $name, 'addr' => $addr, 'tel' => $tel, 'mobile' => $mobile, 'email' => $email, 'qq' => $qq, 'url' => $url, 'remark' => $remark, 'createTime' => date('Y-m-d h-m-s'));
     $db->update($GLOBALS[databasePrefix] . 'pool', $record, 'id=' . $data["id"]);
 }
 if (trim($email) != "") {
     $sql = get_sql("select id from {pre}pool where email='" . $email . "'");
Exemplo n.º 3
0
<?php

/**
* @version		2.0
* @package		Fiyo CMS
* @copyright	Copyright (C) 2014 Fiyo CMS.
* @license		GNU/GPL, see LICENSE.
**/
define('_FINDEX_', 1);
require_once '../../../system/jscore.php';
$db = new FQuery();
$db->connect();
if (checkMobile()) {
    $d13 = 6;
    $d14 = 7;
} else {
    $d13 = 13;
    $d14 = 14;
}
$uniqueVisitor = $allVisitor = $newVisitor = $dateList = '';
for ($x = $d13; $x >= 0; $x--) {
    $dateList .= "'" . date("d M y", strtotime("-{$x} days")) . "'";
    if ($x != 0) {
        $dateList .= ",";
    }
}
for ($x = $d13; $x >= 0; $x--) {
    $dtf = date('Y-m-d 00:00:00', strtotime("-{$x} days"));
    $z = $x - 1;
    $dts = date('Y-m-d 00:00:00', strtotime("-{$z} days"));
    $v = FQuery('statistic', "time BETWEEN '{$dtf}' AND '{$dts}'", "", "", "time ASC");
Exemplo n.º 4
0
	<meta name="copyright" lang="en" content="mySeat [www.myseat.us]" />
	<meta name="keywords" content="mySeat, table reservation system, Bookings Diary, Reservation Diary, Restaurant Reservations, restaurant reservation system, open source, software, reservation management software, restaurant table management, table planner, restaurant table planner, table management, hotel" />
	<meta id="htmlTagMetaDescription" name="Description" content="Make online reservationsfor lunch and dinners. mySeat is a OpenSource online reservation system for restaurants." />
	<meta id="htmlTagMetaKeyword" name="Keyword" content="restaurant reservations, online restaurant reservations, restaurant management software, mySeat, free tables" />

	<!-- Meta data for all iDevices -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<link rel="shortcut icon" href="http://www.myseat.us/favicon.ico">

	<!-- CSS - Setup -->
	<link href="style/datepicker.css" rel="stylesheet" type="text/css" />
	<?php 
// Mobile Browser detection
$mobile_browser = checkMobile();
//$mobile_browser = 1;
if ($mobile_browser > 0) {
    $time_selector = "drop";
    // mobile has always dropdown menu
    echo '<link href="style/mobile.css" rel="stylesheet" type="text/css" />';
} else {
    echo '<link href="style/style.css" rel="stylesheet" type="text/css" />';
}
?>

    <!-- jQuery Library-->
    <script src="js/jQuery.min.js" type="text/javascript"></script>
    <script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="js/jquery-ui.js" type="text/javascript"></script> 
    <script src="js/functions.js" type="text/javascript"></script>
    public function footer($checkMobile = false)
    {
        global $lang_template_softwareBy, $lang_template_personalUse, $lang_mobile_mobile;
        if ($checkMobile == true) {
            if (checkMobile() == true) {
                ?>
    			<p><a href="mobile.php?mobile" style="color:white;font-size:24px;"><?php 
                echo $lang_mobile_mobile;
                ?>
</a></p>
    		<?php 
            }
        }
        echo '<div style="color:white;font-size:10px;padding:10px 0px 45px;">
		' . $lang_template_softwareBy . ' <a href="http://newagesoldier.com/" style="color:white;font-weight:bold;">New Age Soldier</a>.</div>';
    }
Exemplo n.º 6
0
    	 <tr><td colspan="2"><div align="center"><input class=button type=submit value="<?php 
    print $_lang[BillingEnter];
    ?>
" name="submit"></div></td></tr>
	 <tr><td colspan=2><A class=rootlink href=forgotpass.php><?php 
    print $_lang[BillingForgotPassword];
    ?>
</a></td></tr>
        </table>
        </form>
        <?php 
    foot('utf-8');
    mclose();
    exit;
}
if ($_SESSION["userId"] and !checkMobile()) {
    if ($sub == "getCode") {
        if ($mobile[0] and $mobile[1] and $mobile[2]) {
            $mobile[0] = preg_replace("/\\+/ui", "", $mobile[0]);
            $mobile = "+" . $mobile[0] . " " . $mobile[1] . " " . $mobile[2];
        } else {
            $mobile = "";
        }
        if (!preg_match("/^\\+\\d+\\s{1}\\d+\\s{1}\\d+\$/u", $mobile) or strlen($mobile) < 8) {
            $error = $_lang[OrderErrorField] . " " . $_lang[ProfileMobile];
        } else {
            @mysql_query("update users set mobile='{$mobile}' where id='{$_SESSION['userId']}'") or die("File: " . __FILE__ . "<BR>Line: " . __LINE__ . "<BR>MySQL Error: " . mysql_error());
            $code = mt_rand(11111111, 99999999);
            $tpl = GetTpl('email_touser_verification_sms', $_SESSION["userLang"]);
            $template = $tpl[template];
            $company_name = GetSetting('company_name');
Exemplo n.º 7
0
 public function getcode()
 {
     $mobile = getRequest('mobile');
     //检测手机号码格式
     if (!checkMobile($mobile)) {
         die('手机号码格式不正确!');
     }
     $code = D('Code')->getCode($mobile);
     if (empty($code)) {
         die('您的操作太频繁了,请稍后再试!');
     } else {
         $msg = "您的验证码是:" . $code;
         $ret = sendMobileMsg($mobile, $msg);
     }
 }
require $langFolder . $settings_data['language'] . '.php';
function loader($class)
{
    global $prefix;
    include $prefix . 'class/' . $class . '.class.php';
}
spl_autoload_register('loader');
//set defaults
if (!isset($_POST['category'])) {
    $_POST['category'] = "";
}
if (!isset($_GET['p'])) {
    $_GET['p'] = 1;
}
if (!isset($_COOKIE['mobile'])) {
    if (checkMobile() == true) {
        setcookie('mobile', '1', 0);
    }
}
$page_display = $settings_data['page_display'];
//$imdbToggle = $settings_data['imdb_mode'];
//check and set mobile cookie
if (isset($_GET['mobile']) == true) {
    setcookie('mobile', '1', 0);
    ?>
<script type="text/javascript"> window.location = "mobile.php" </script><?php 
}
if (isset($_COOKIE['mobile']) && $_COOKIE['mobile'] == "1" && basename($_SERVER['PHP_SELF']) == "index.php") {
    setcookie('mobile', '1', 0);
    ?>
<script type="text/javascript"> window.location = "mobile.php" </script><?php 
Exemplo n.º 9
0
</span>s
					</div>
				</div>
            </div>
		<!-- end .inner -->
        </div>
        <!-- end .outer -->
     </div>
   <!-- end #content -->
</div> 
<?php 
include 'module/modal.php';
?>
<!-- /#wrap -->
<?php 
if (!checkMobile()) {
    ?>
	
<script src="<?php 
    echo AdminPath;
    ?>
/js/loader.js"></script>
<?php 
} else {
    ?>
<script src="<?php 
    echo AdminPath;
    ?>
/js/loader.min.js"></script>
<?php 
}