Esempio n. 1
0
 protected function on_init()
 {
     $this->type = _GET('type', 'file');
     if (!in_array($this->type, array('image', 'media', 'file'))) {
         $this->type = 'file';
     }
     $this->vars['type'] = $this->type;
 }
 function Process()
 {
     if (_GET('filename') == '') {
         $this->Haxor();
         return;
     }
     $img = new Image();
     if (!$img->Find(array('filename' => _GET('filename')))) {
         $this->Error('Requested file not found');
         return;
     }
     $this->img = $img;
     $this->Render();
 }
 function Process()
 {
     if (_GET('filename') == '') {
         $this->Haxor();
         return;
     }
     $img = new Image();
     if (!$img->Find(array('filename' => _GET('filename')))) {
         $this->Error('Requested file not found');
         return;
     }
     if (!InSESSION('view:' . _GET('filename'))) {
         $_SESSION['view:' . _GET('filename')] = true;
         $img->views++;
     }
     $img->lastshow = Now();
     $img->Save();
     $this->img = $img;
     $this->Render();
 }
 function Process()
 {
     if (_GET('filename') == '') {
         $this->Haxor();
         return;
     }
     $img = new Image();
     if (!$img->Find(array('filename' => _GET('filename')))) {
         $this->Error('Requested file not found');
         return;
     }
     $this->img = $img;
     if (_POST('delete')) {
         if (!$this->CheckErrors()) {
             $this->ProcessRemove();
             header('location: ' . ROOT);
             return;
         }
     }
     $this->Render();
 }
Esempio n. 5
0
include_once "../../../class/config.php";
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$orgid = _GET('orgid');
?>
<table  id="mytable" class="table table-striped">
<thead>
<tr>
<th>Статус</th>
<th>IP (имя)</th>
<th>Название</th>
<th>Группа</th>
<th>Где</th>
</tr>
</thead>
<tbody>
<?php 
$SQL = "SELECT places.name as pname,eq3.grname as grname,eq3.ip as ip,eq3.nomename as nomename FROM places INNER JOIN\n    (SELECT eq2.placesid as placesid,group_nome.name as grname,eq2.ip as ip,eq2.nomename as nomename FROM group_nome INNER JOIN\n    (SELECT eq.placesid as placesid,nome.groupid as groupid,eq.ip as ip,nome.name as nomename FROM nome INNER JOIN \n    (SELECT equipment.placesid as placesid,equipment.nomeid as nomeid,equipment.ip as ip FROM equipment WHERE equipment.active=1 and equipment.ip<>'' and equipment.orgid='{$orgid}') as eq ON eq.nomeid=nome.id) as eq2 ON eq2.groupid=group_nome.id) as eq3 ON places.id=eq3.placesid";
$result = $sqlcn->ExecuteSQL($SQL) or die("Не получилось выполнить запрос на получение списка номенклатуры!" . mysqli_error($sqlcn->idsqlconnection));
    }
    return $timestamp;
}
$products = array('-1' => 'Any', '1' => 'QuikID');
$all = 0;
$rowsperpage = 10;
$adminpage = 'on';
$action = _GET('action', '');
$entryid = _GET('entryid', -1);
$pg = _GET('pg', 1);
$product = _GET('fil_product', -1);
$company = _GET('fil_company', '');
$email = _GET('fil_email', '');
$stdate = _GET('fil_stdate', '');
$enddate = _GET('fil_enddate', '');
$fall = _GET('fil_all', '');
if ($fall != '') {
    $all = 1;
}
$frm = file_get_contents('pages/_download_track.frm');
$opts = '';
foreach ($products as $key => $val) {
    if ($key == $product) {
        $chk = 'selected';
    } else {
        $chk = '';
    }
    $opts .= '<option value="' . $key . '" ' . $chk . '>' . $val . '</option>';
}
$fall = $all != 0 ? 'checked' : '';
$frm = str_replace('@products@', $opts, $frm);
Esempio n. 7
0
						"6 Spawning Pool\n" +
						"7 Zergling [3]\n" +
						"10 Overlord\n" +
						"10 Queen\n" +
						"12 Zergling\n");
					$("#buildOrder").trigger("change");
				});
				$("#14pool15hatch").click(function() {
					$("#buildOrder").val(
						"9 Overlord\n" +
						"14 Spawning Pool (send @175 minerals)\n" +
						"15 Hatchery, then transfer 8 drones (10 seconds lost)\n" +
						"16 Extractor, then transfer 3 drones (2 seconds lost)\n" +
						"16 Queen, then Spawn Larvae\n" +
						"18 Overlord\n");
					$("#buildOrder").trigger("change");
				});
				<?php 
        if (strlen($this->buildOrder) > 0) {
            ?>
					$(".update").trigger("click");
				<?php 
        }
        ?>
			});
		//--></script>
		<?php 
    }
}
new BuildOrderPage(_GET("buildOrder"));
Esempio n. 8
0
<?php

error_reporting(E_ALL);
define('TimeZone', +8.0);
function _GET($n)
{
    return isset($_GET[$n]) ? $_GET[$n] : NULL;
}
function _SERVER($n)
{
    return isset($_SERVER[$n]) ? $_SERVER[$n] : '[undefine]';
}
if (_GET('act') == 'phpinfo') {
    if (function_exists('phpinfo')) {
        phpinfo();
    } else {
        echo 'phpinfo() Function has been disabled.';
    }
    exit;
}
$Info = array();
$Info['php_ini_file'] = function_exists('php_ini_loaded_file') ? php_ini_loaded_file() : '[undefine]';
function get_ea_info($name)
{
    $ea_info = eaccelerator_info();
    return $ea_info[$name];
}
function get_gd_info($name)
{
    $gd_info = gd_info();
    return $gd_info[$name];
Esempio n. 9
0
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
// Получаем переменные, проверяем на правильность заполнения
$step = _GET("step");
$orgid = _POST("orgid");
if ($orgid == "") {
    $err[] = "Не выбрана организация!";
}
$login = _POST("login");
if ($login == "") {
    $err[] = "Не задан логин!";
}
$pass = _POST("pass");
if ($pass == "") {
    $err[] = "Не задан пароль!";
}
$email = _POST("email");
if ($email == "") {
    $err[] = "Не задан E-mail!";
Esempio n. 10
0
    <section class="navigator">
        <div class="title-head">
            <h3 class="title">#<%= navigator.ret[0].topic_name %>#</h3>
            <h5 class="discuss"><%= navigator.ret[0].commentCount %> 讨论</h5>
        </div>
        <p class="title-content"><%= navigator.ret[0].topic_desc %></p>
    </section>
</script>

<script type="text/template" id="recommend_template">
    <section class="recommend-head clearfix">
        <h4 class="recommend-title">#<%= recommend.data.relate_forum_title %>#相关吧推荐</h4>
        <!-- 滑动按钮 -->
        <% if (_.keys(recommend.data.output).length > 4){ %>
        <div class="recommend-see-all all"><a href="<?php 
echo 'http://tieba.baidu.com/mo/q/hotMessageMore?topic_id=' . _GET('topic_id');
?>
">查看全部</a></div>
        <% } else { %>
        <div class="swiper-pagination recommend-pagination"></div>
        <% } %>
    </section>
    <div class='recommend-content swiper-container slider-container'>
        <ul class="swiper-wrapper clearfix">
            <% if (_.keys(recommend.data.output).length <= 4 ){ %>
                <% _.each(recommend.data.output, function (value, name) { %>
                    <li class="swiper-slide clearfix">
                        <a class="media-left" href="http://tieba.baidu.com/f?kw=<%= value.forum_name.forum_name %>&ie=utf-8">
                            <img class="image-radius" src="<%= value.card.avatar %>" alt="image" />
                        </a>
                        <div class="media-content">
<?php

$rowsperpage = 10;
$adminpage = 'on';
$action = _GET('action', '');
$pressid = _GET('pressid', -1);
$pg = _GET('pg', 1);
if ($pg < 1) {
    $pg = 1;
}
switch ($action) {
    case 'remove':
        RemoveNews($pressid);
}
$first = ($pg - 1) * $rowsperpage;
$no = $first + 1;
$articles = GetPressList($first, $rowsperpage, BLOG);
$content .= '<section id="adm_container">
	<div class="container">';
$content .= '<p class="pressEdit-list">Total news: ' . GetNewsCount(BLOG) . '</p>';
$table = "<!--- start list of articles -->";
foreach ($articles as $key => $row) {
    $rowtpl = '<p class="pressEdit-list">@NO@: <a href="@EDITLINK@">@TITLE@</a> <a href="@DELLINK@">X</a></p>';
    if ($row['flags'] == 1) {
        $nostr = '*' . $no;
    } else {
        $nostr = $no;
    }
    if ($row['flags'] & 2) {
        $nostr = '(T)' . $nostr;
    }
Esempio n. 12
0
 * В противном случае - код собственность ГК Яртелесервис, Мультистрим, Телесервис, Телесервис плюс * 
 */
include_once "../../../config.php";
// загружаем первоначальные настройки
// загружаем классы
include_once "../../../class/sql.php";
// загружаем классы работы с БД
include_once "../../../class/config.php";
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/cconfig.php";
// загружаем классы работы с пользователями
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$value = _GET("value");
$tag = _GET("tag");
$mode = _GET("mode");
$tt = new Tcconfig();
if ($mode == "txt") {
    $tt->SetByParam($user->id . "_zabbix_time", $value);
} else {
    $tt->SetByParam($user->id . "_{$tag}", $value);
}
Esempio n. 13
0
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// соеденяемся с БД, получаем $mysql_base_id
$page = _GET('page');
$limit = _GET('rows');
$sidx = _GET('sidx');
$sord = _GET('sord');
$oper = _POST('oper');
$curuserid = _GET('curuserid');
$id = _POST('id');
if ($oper == '') {
    if (!$sidx) {
        $sidx = 1;
    }
    $result = $sqlcn->ExecuteSQL("SELECT COUNT(*) AS count ,name as grname,res2.* FROM group_nome INNER JOIN (SELECT places.name as plname,res.* FROM places INNER JOIN(\n                SELECT name AS namenome,nome.groupid as grpid, eq . *  FROM nome INNER JOIN (\n                SELECT equipment.id AS eqid, equipment.placesid AS plid, equipment.nomeid AS nid, equipment.buhname AS bn, equipment.cost AS cs, equipment.currentcost AS curc, equipment.invnum, equipment.sernum, equipment.shtrihkod, equipment.mode, equipment.os FROM equipment \n                WHERE equipment.active =1 and equipment.usersid='{$curuserid}')\n                AS eq ON nome.id = eq.nid)\n                AS res ON places.id=res.plid)   AS res2 ON group_nome.id=res2.grpid");
    $row = mysqli_fetch_array($result);
    $count = $row['count'];
    if ($count > 0) {
        $total_pages = ceil($count / $limit);
    } else {
        $total_pages = 0;
    }
    if ($page > $total_pages) {
        $page = $total_pages;
Esempio n. 14
0
/* 
 * (с) 2014 Грибов Павел
 * http://грибовы.рф * 
 * Если исходный код найден в сети - значит лицензия GPL v.3 * 
 * В противном случае - код собственность ГК Яртелесервис, Мультистрим, Телесервис, Телесервис плюс * 
 */
include_once "../../../config.php";
// загружаем первоначальные настройки
// загружаем классы
include_once "../../../class/sql.php";
// загружаем классы работы с БД
include_once "../../../class/config.php";
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$nodekey = _GET('nodekey');
$srnodekey = _GET('srnodekey');
$sql = "UPDATE cloud_dirs SET parent='{$nodekey}' where id='{$srnodekey}'";
$result3 = $sqlcn->ExecuteSQL($sql) or die("Не могу обновить терево папок!" . mysqli_error($sqlcn->idsqlconnection));
    $products[1]['ItemName'] = 'my item 2'; //Item Name
    $products[1]['ItemPrice'] = 10; //Item Price
    $products[1]['ItemNumber'] = 'xxx2'; //Item Number
    $products[1]['ItemDesc'] = 'good item 2'; //Item Number
    $products[1]['ItemQty']	= 3; // Item Quantity
    */
    //-------------------- prepare charges -------------------------
    $charges = [];
    //Other important variables like tax, shipping cost
    $charges['TotalTaxAmount'] = 0;
    //Sum of tax for all items in this order.
    $charges['HandalingCost'] = 0;
    //Handling cost for this order.
    $charges['InsuranceCost'] = 0;
    //shipping insurance cost for this order.
    $charges['ShippinDiscount'] = 0;
    //Shipping discount for this order. Specify this as negative number.
    $charges['ShippinCost'] = 0;
    //Although you may change the value later, try to pass in a shipping amount that is reasonably accurate.
    //------------------SetExpressCheckOut-------------------
    //We need to execute the "SetExpressCheckOut" method to obtain paypal token
    $paypal->SetExpressCheckOut($products, $charges);
} elseif (_GET('token') != '' && _GET('PayerID') != '') {
    //------------------DoExpressCheckoutPayment-------------------
    //Paypal redirects back to this page using ReturnURL, We should receive TOKEN and Payer ID
    //we will be using these two variables to execute the "DoExpressCheckoutPayment"
    //Note: we haven't received any payment yet.
    $paypal->DoExpressCheckoutPayment();
} else {
    //order form
}
Esempio n. 16
0
<?php

// Данный код создан и распространяется по лицензии GPL v3
// Изначальный автор данного кода - Грибов Павел
// http://грибовы.рф
//include_once("class/mod.php");                  // класс работы с модулями
$bp_xml_id = _GET('bp_xml_id');
$step = _POST('sub');
$comment = _POST('comment');
// таки двигаем процесс по пользователю
if ($bp_xml_id != "") {
    $SQL = "SELECT * FROM bp_xml_userlist WHERE id='{$bp_xml_id}'";
    $result22 = $sqlcn->ExecuteSQL($SQL) or die("Не могу выбрать список пользователей БП!" . mysqli_error($sqlcn->idsqlconnection));
    //echo "!".mysqli_error($sqlcn->idsqlconnection)."!";
    //var_dump($result22);
    //echo "!$SQL!";
    while ($row = mysqli_fetch_array($result22)) {
        if ($step == 'Согласовать') {
            $result = $row['accept'];
        }
        if ($step == 'Отвергнуть') {
            $result = $row['cancel'];
        }
        if ($step == 'Доработать') {
            $result = $row['thinking'];
        }
        if ($step == 'Да') {
            $result = $row['yes'];
        }
        if ($step == 'Нет') {
            $result = $row['no'];
Esempio n. 17
0
// логинимся
?>
<table class="table table-condensed table-hover table-striped">
  <thead>
    <tr>
      <th>№</th>
      <th>Дата</th>
      <th>Исполнитель</th>
      <th>Задача</th>
      <th>Результат</th>
      <th>Комментарий</th>
    </tr>
  </thead>  
 <tbody> 
<?php 
$bpid = _GET("bpid");
$bp = new Tbp();
$bp->GetById($bpid);
$sql = "SELECT * FROM bp_xml_userlist WHERE bpid='{$bpid}' order by id";
$result = $sqlcn->ExecuteSQL($sql);
if ($result != '') {
    while ($myrow = mysqli_fetch_array($result)) {
        $numid = $myrow['id'];
        $cm = $myrow['comment'];
        $uz = new Tusers();
        $uz->GetById($myrow['userid']);
        $uname = $uz->fio;
        $bpnode = $bp->GetTitleAndCommentNode($myrow['node']);
        $bpnodetitle = $bpnode['title'];
        $bpnodecomment = $bpnode['comment'];
        $rz = 'Пока не определено';
Esempio n. 18
0
include_once "../../../class/config.php";
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$module_id = _GET('module_id');
$sql = "select * from lib_cable_modules where id='{$module_id}'";
echo "{$sql}\n";
$result = $sqlcn->ExecuteSQL($sql) or die("Не могу выбрать список модулей!" . mysqli_error($sqlcn->idsqlconnection));
while ($row = mysqli_fetch_array($result)) {
    $cable_id = $row["cable_id"];
    $number = $row["number"];
    $color = $row["color"];
}
$number = $number . "(copy)";
$sql = "insert into lib_cable_modules (cable_id,number,color) values ('{$cable_id}','{$number}','{$color}')";
$result = $sqlcn->ExecuteSQL($sql) or die("Не могу вставить копию модуля!" . mysqli_error($sqlcn->idsqlconnection));
$new_module_id = mysqli_insert_id($sqlcn->idsqlconnection);
$sql = "SELECT * FROM lib_cable_lines where id_calble_module='{$module_id}'";
$result = $sqlcn->ExecuteSQL($sql) or die("Не могу выбрать список волокон!" . mysqli_error($sqlcn->idsqlconnection));
while ($row = mysqli_fetch_array($result)) {
Esempio n. 19
0
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$page = _GET('page');
$limit = _GET('rows');
$sidx = _GET('sidx');
$sord = _GET('sord');
$oper = _POST('oper');
$id = _POST('id');
$name = _POST('name');
$chanel_id = _POST('chanel_id');
$astra_id = _GET('astra_id');
$group_id = _POST('group_id');
if ($oper == '') {
    if (!$sidx) {
        $sidx = 1;
    }
    $result = $sqlcn->ExecuteSQL("SELECT COUNT(*) AS count FROM astra_chanels where astra_id='{$astra_id}'");
    //echo "SELECT COUNT(*) AS count FROM astra_mon where astra_id='$astra_id'";
    $row = mysqli_fetch_array($result);
    $count = $row['count'];
    if ($count > 0) {
        $total_pages = ceil($count / $limit);
    } else {
        $total_pages = 0;
    }
    if ($page > $total_pages) {
Esempio n. 20
0
include_once "../../../../class/config.php";
// загружаем классы настроек
include_once "../../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../../inc/functions.php";
// загружаем функции
include_once "../../../../inc/login.php";
// логинимся
$nome_group = _GET("nome_group");
include_once "config.php";
// загружаем настройки и функции для работы с 1С
function GetData($idc, $txt)
{
    if (is_object($idc)) {
        try {
            $par = array('kode' => $txt);
            //var_dump($par);
            $ret1c = $idc->GetListTMC($par);
        } catch (SoapFault $e) {
            echo "АЩИБКА!!! </br>";
            var_dump($e);
        }
    } else {
        echo 'Не удалося подключиться к 1С<br>';
Esempio n. 21
0
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$page = _GET('page');
$limit = _GET('rows');
$sidx = _GET('sidx');
$sord = _GET('sord');
$oper = _POST('oper');
$groupid = _GET('groupid');
if ($groupid == "") {
    $groupid = _POST('groupid');
}
$id = _POST('id');
$name = _POST('name');
// если выбрана группа, то обрабатываем, иначе ничего
//echo "!$groupid!";
if ($oper == '') {
    if (!$sidx) {
        $sidx = 1;
    }
    $result = $sqlcn->ExecuteSQL("SELECT COUNT(*) AS count FROM group_param");
    $row = mysqli_fetch_array($result);
    $count = $row['count'];
    if ($count > 0) {
Esempio n. 22
0
include_once "../../../class/config.php";
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$id = _GET("astra_id");
$sql = "select INET_NTOA(ip) as ip from astra_servers where id={$id}";
$result = $sqlcn->ExecuteSQL($sql) or die("Не могу выбрать список страниц!" . mysqli_error($sqlcn->idsqlconnection));
$ip = "localhost";
while ($row = mysqli_fetch_array($result)) {
    $ip = $row["ip"];
}
$url = "http://{$ip}/getlistchanels.php";
$txt = file($url);
foreach ($txt as $stroka) {
    $sta = explode(";", $stroka);
    $astra_id = $sta[0];
    $group_id = $sta[1];
    $id = $sta[2];
    $name = $sta[3];
    $cnt = 0;
Esempio n. 23
0
include_once "../../../class/config.php";
// загружаем классы настроек
include_once "../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$foldername = _GET('foldername');
function GetTree($key)
{
    global $sqlcn;
    $sql = "select * from cloud_dirs where parent={$key}";
    $result = $sqlcn->ExecuteSQL($sql) or die("Не могу прочитать папку!!" . mysqli_error($sqlcn->idsqlconnection));
    $cnt = mysqli_num_rows($result);
    if ($cnt != 0) {
        $pz = 0;
        while ($row = mysqli_fetch_array($result)) {
            $name = $row["name"];
            $key = $row["id"];
            echo "{";
            echo "\"title\": \"{$name}\",\"isFolder\": true,\"key\": \"{$key}\",\"children\": [";
            GetTree($key);
            echo "]}";
        if (!_POST('modify') || !is_numeric(_POST('modify'))) {
            do_insert($answers, 'vcn_answers');
        }
        //delete answers
        if (_POST('deletes')) {
            do_delete(explode(',', trim(_POST('deletes'), ',')), 'vcn_answers', 'id');
            //delete old answers
        }
    }
    //delete question
    if (_GET('del')) {
        delete_qdata(_GET('del'));
    }
    //data
    if (_GET('edit')) {
        $data['result'] = get(_GET('edit'));
        //get question answers
        if (!count($data['result'])) {
            show_error('Not found', 'Không tồn tại dữ liệu.');
        }
    }
    extract($data);
    //print_r($result);
    if (isset($result)) {
        ?>
<p>
<a href='javascript:;' class='button_silver_square radius-1 padding3' onclick='if(confirm("Are you sure?")) location.href="<?php 
        echo vcn_Url('delete-qdata', $result[0]['id']);
        ?>
"'>Xoá câu hỏi này</a>
</p><hr/>
Esempio n. 25
0
<?php

/* 
 * (с) 2014 Грибов Павел
 * http://грибовы.рф * 
 * Если исходный код найден в сети - значит лицензия GPL v.3 * 
 * В противном случае - код собственность ГК Яртелесервис, Мультистрим, Телесервис, Телесервис плюс * 
 */
if ($user->mode == 1 or $user->mode == 0) {
    $uidview = _GET('uidview');
    if ($uidview == "") {
        $uidview = $user->id;
    }
    echo "<script>uidview=" . $uidview . ";</script>";
    ?>
<div class="content">
<div class="row-fluid">    
<div id="calhead" style="padding-left:1px;padding-right:1px;">          
            <div class="cHead"><div class="ftitle">Мой календарь</div>
            <div id="loadingpannel" class="ptogtitle loadicon" style="display: none;">Loading data...</div>
             <div id="errorpannel" class="ptogtitle loaderror" style="display: none;">Не могу загрузить данные. Попробуйте позже.</div>
            </div>          
            
            <div id="caltoolbar" class="ctoolbar">
              <div id="faddbtn" class="fbutton">
                <div><span title='Создать новую задачу' class="addcal">Новая задача</span></div>
            </div>
            <div class="btnseparator"></div>
             <div id="showtodaybtn" class="fbutton">
                <div><span title='Вернуться в сегодня ' class="showtoday">Сегодня</span></div>
            </div>
Esempio n. 26
0
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$page = _GET('page');
$limit = _GET('rows');
$sidx = _GET('sidx');
$sord = _GET('sord');
$oper = _POST('oper');
$createdid = _GET('createdid');
$id = _POST('id');
if ($createdid != '') {
    $where = "WHERE userid='{$createdid}'";
} else {
    $where = '';
}
if ($oper == '') {
    if (!$sidx) {
        $sidx = 1;
    }
    $result = $sqlcn->ExecuteSQL("SELECT COUNT(*) AS count FROM bp_xml " . $where);
    $row = mysqli_fetch_array($result);
    $count = $row['count'];
    if ($count > 0) {
        $total_pages = ceil($count / $limit);
Esempio n. 27
0
// http://грибовы.рф
include_once "../../../../config.php";
// загружаем первоначальные настройки
// загружаем классы
include_once "../../../../class/sql.php";
// загружаем классы работы с БД
include_once "../../../../class/config.php";
// загружаем классы настроек
include_once "../../../../class/users.php";
// загружаем классы работы с пользователями
include_once "../../../../class/employees.php";
// загружаем классы работы с профилем пользователя
// загружаем все что нужно для работы движка
include_once "../../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../../inc/functions.php";
// загружаем функции
include_once "../../../../inc/login.php";
// логинимся
$devid = _GET("id");
$SQL = "SELECT id,dname,command FROM devnames WHERE id='{$devid}' ";
$result = $sqlcn->ExecuteSQL($SQL) or die("Не могу выбрать список устройств!" . mysqli_error($sqlcn->idsqlconnection));
while ($row = mysqli_fetch_array($result)) {
    $command = $row["command"];
    echo "{$command}</br>";
    echo "<pre>";
    system($command);
    echo "</pre>";
}
Esempio n. 28
0
// загружаем классы работы с пользователями
include_once "../../../../class/employees.php";
// загружаем классы работы с профилем пользователя
include_once "../../../../class/equipment.php";
// загружаем классы работы с ТМЦ
// загружаем все что нужно для работы движка
include_once "../../../../inc/connect.php";
// соеденяемся с БД, получаем $mysql_base_id
include_once "../../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../../inc/functions.php";
// загружаем функции
include_once "../../../../inc/login.php";
// логинимся
$step = _GET("step");
$id = _GET("id");
$name = "";
$vendorid = "";
$groupid = "";
//echo "!$user->mode!";
if ($user->TestRoles("1,4,5,6") == true) {
    if ($step == "edit") {
        $SQL = "SELECT * FROM nome WHERE id='{$id}'";
        $result = $sqlcn->ExecuteSQL($SQL, $cfg->base_id);
        if ($result != '') {
            while ($myrow = mysqli_fetch_array($result)) {
                $groupid = $myrow['groupid'];
                $vendorid = $myrow['vendorid'];
                $name = $myrow['name'];
            }
        } else {
Esempio n. 29
0
include_once "../../../inc/config.php";
// подгружаем настройки из БД, получаем заполненый класс $cfg
include_once "../../../inc/functions.php";
// загружаем функции
include_once "../../../inc/login.php";
// загружаем функции
$oper = _POST('oper');
$number = _POST('number');
$color1 = _POST('color1');
$color2 = _POST('color2');
$module_id = _GET('module_id');
$id = _POST('id');
$page = _GET('page');
$limit = _GET('rows');
$sidx = _GET('sidx');
$sord = _GET('sord');
if ($oper == '') {
    if (!$sidx) {
        $sidx = 1;
    }
    $sql = "SELECT COUNT(*) AS count FROM lib_cable_lines where id_calble_module='{$module_id}'";
    //echo "!$sql!";
    $result = $sqlcn->ExecuteSQL($sql) or die("Не могу выбрать количество записей!" . mysqli_error($sqlcn->idsqlconnection));
    $row = mysqli_fetch_array($result);
    $count = $row['count'];
    //echo "$count!!";
    $responce = new stdClass();
    if ($count > 0) {
        $total_pages = ceil($count / $limit);
        if ($page > $total_pages) {
            $page = $total_pages;
Esempio n. 30
0
 *
 *  QQ Group:   329673575
 *  BBS:        bbs.ecmobile.cn
 *  Fax:        +86-10-6561-5510
 *  Mail:       info@geek-zoo.com
 */
define('INIT_NO_USERS', true);
require EC_PATH . '/includes/init.php';
//get方式验证session
GZ_Api::$session = array('uid' => _GET('uid'), 'sid' => _GET('sid'));
GZ_Api::authSession();
$code = trim(_GET('code'));
$order_id = _GET('order_id');
$order_desc = _GET('order_desc');
$amount = _GET('amount');
$currency = _GET('currency');
/*
$code = 'alipay';
$order_id = date('YmdHis', time());
$order_desc = 'ipod';
$amount = 0.01;
*/
$ecmobile_url = ecmobile_url();
if (empty($code) || empty($order_id) || empty($order_desc) || empty($amount)) {
    self::outPut(101);
}
switch ($code) {
    case 'alipay':
        require_once GZ_PATH . "/payment/alipay/alipay.config.php";
        require_once GZ_PATH . "/payment/alipay/alipay_submit.class.php";
        //修正配置文件路径