function getVersion()
{
    $qry = "select versionno from versions WHERE id ='1'";
    $run = Run($qry);
    $fr = getRows($run);
    $info['versionNo'] = $fr['versionno'];
    return $fr['versionno'];
}
Beispiel #2
0
<?php

namespace FFMVC\App;

if (PHP_SAPI !== 'cli') {
    exit("This controller can only be executed in CLI mode.");
}
chdir(realpath(__DIR__));
require_once 'lib/autoload.php';
require_once 'app.php';
Run();
     $size = c("{$namet}{$x}")->font->size . "pt";
     $font = c("{$namet}{$x}")->font->name;
     $style = implode(',', c("{$namet}{$x}")->font->style);
     $t1 = c("label7")->caption;
     $color = toHTMLColor($color);
     $style = str_replace("fsBold", "<b>", $style);
     $style = str_replace(",", "", $style);
     $style = str_replace("fsItalic", "<var>", $style);
     $style = str_replace("fsStrikeOut", "<del>", $style);
     $style = str_replace("fsUnderline", "<ins>", $style);
     $htmlcode = "<pre style=word-wrap: break-word;>" . $style . "<font color = {$color}>" . c("label6")->caption . "{$size} {$t1};>" . "<FONT FACE={$font}>" . c("{$namet}{$x}")->text . "</pre></span></FONT></font>";
     $pd = DOC_ROOT;
     $pd = substr($pd, 0, strlen($i) - 5);
     file_put_contents("print.txt", DOC_ROOT . "file.html");
     file_put_contents("file.html", $htmlcode);
     Run("print.exe", false);
     break;
 case 'it_of':
     if (c("controltab")->caption == 1) {
         $x = c("pages1")->pageIndex + 1;
         $namet = "fn";
     }
     if (c("controltab")->caption == 2) {
         $x = c("pages3")->pageIndex + 1;
         $namet = "tfn";
     }
     $fn = c("{$namet}{$x}")->caption;
     if ($fn == "-") {
         messageBox("The file is not saved on your PC!", "Error!");
     } else {
         $name = basename($fn);
Beispiel #4
0
<?php

header("Content-type:text/html;charset=utf-8");
//路由文件
include_once 'config/config.route.php';
//API请求访问路由要求
//GET方式 http://xxx.com/配置的访问名称/要访问的具体方法/参数key值/参数值/参数key值/参数值/参数key值/参数值
//POST方式 http://xxx.com/配置的访问名称/要访问的具体方法
$_req = $_REQUEST;
$_req = array_keys($_req);
if (!isset($_req[0])) {
    echo '{"statusCode":404,"message":"您的请求错误","result":null}';
    exit;
}
$_req = explode("/", $_req[0]);
array_shift($_req);
if (!isset($_req[0])) {
    echo '{"statusCode":404,"message":"您的请求错误","result":null}';
    exit;
}
$objClass = Run($_req[0]);
$objClass->{$_req}[1]();