コード例 #1
0
		<h4 class="panel-title exoextralight"
		<?php 
Ini_Set('display_errors', true);
include '../../init.php';
include 'functions.php';
$transcodeSessions = getTranscodeSessions();
if ($transcodeSessions > 0) {
    echo ' style="margin-left:23px"';
}
?>
		>
		<?php 
if ($transcodeSessions > 0) {
    echo '<span id="transcodeSessions" class="badge pull-right" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Transcode Sessions" style="width:23px">' . $transcodeSessions . '</span>';
}
?>
		Load
		</h4>
		<script>
			// Enable bootstrap tooltips
			$(function ()
			        { $("[rel=tooltip]").tooltip();
			        });
		</script>
コード例 #2
0
ファイル: Load.php プロジェクト: carriercomm/jbs
 * Configure system environment and handle all users requests.
 * 
 * @author Vitaly Velikodny
 */
#-------------------------------------------------------------------------------
$GLOBALS['__MESSAGES'] = array();
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# счётчики для отладки
$GLOBALS['__COUNTER_MYSQL'] = 0;
$GLOBALS['__TIME_MYSQL'] = 0;
$GLOBALS['__COUNTER_COMPS'] = 0;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!Ini_Get('date.timezone')) {
    @Ini_Set('date.timezone', 'Europe/Moscow');
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
list($Micro, $Seconds) = Explode(' ', MicroTime());
#-------------------------------------------------------------------------------
if (!Define('START_TIME', (double) $Micro + (double) $Seconds)) {
    exit('[JBs core]: не удалось определить константу (START_TIME)');
}
#-------------------------------------------------------------------------------
unset($Micro, $Seconds);
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
Header('X-Powered-By: Joonte Billing System (http://www.joonte.com)');
Header('Cache-Control: no-cache, must-revalidate');
Header('Content-Type: text/html; charset=utf-8');
コード例 #3
0
<?php

@Set_Time_Limit(10000);
Ini_Set("track_errors", "1");
Ignore_User_Abort(true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$RIGHT_SIGN = $USER->CanDoOperation('security_file_verifier_sign');
$RIGHT_COLLECT = $USER->CanDoOperation('security_file_verifier_collect');
$RIGHT_VERIFY = $USER->CanDoOperation('security_file_verifier_verify');
if (!$RIGHT_SIGN && !$RIGHT_COLLECT && !$RIGHT_VERIFY) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
/*************************************************************************************************/
/*************************************************************************************************/
Define("BX_FILE_CHECKER_REGION_KERNEL", 1);
Define("BX_FILE_CHECKER_REGION_ROOT", 2);
Define("BX_FILE_CHECKER_REGION_PERSONAL_ROOT", 4);
Define("BX_FILE_CHECKER_REGION_PUBLIC", 8);
if (!defined("START_EXEC_TIME")) {
    define("START_EXEC_TIME", getmicrotime());
}
class CFileChecker
{
    var $arCollectedExtensions;
    var $startPath;
    var $serverFileErrorLogName = "serverfilerr";
    var $serverErrorLog;
    var $serverErrorLogHandle;
    var $fileLog;
    var $fileErrorLog;
コード例 #4
0
<?php

// You should move the config.ini outside the web directory.
$config_file_path = "/opt/config/config.ini";
// Path to config file, replace the expression after the "=" sign. Don't forget to leave the ";" at the end of the line. You should place it outside of web root
// Don't forget to make sure this is set properly...
Ini_Set('display_errors', false);
include 'init.php';
include 'lib/phpseclib0.3.5/Net/SSH2.php';
require_once 'MinecraftServerStatus.class.php';
if (!file_exists($config_file_path)) {
    $config_file_path = "../../config.ini";
}
$config = parse_ini_file($config_file_path, true);
// Import variables from config file
// Network Details
$local_server_ip = $config['network_details']['local_server_ip'];
$wan_domain = $config['network_details']['wan_domain'];
$wan1_ip = $config['network_details']['wan1_ip'];
$wan2_ip = $config['network_details']['wan2_ip'];
$ping_ip = $config['network_details']['ping_ip'];
// Weather
$weather_always_display = $config['weather']['weather_always_display'];
$weather_lat = $config['weather']['weather_lat'];
$weather_long = $config['weather']['weather_long'];
$weather_name = $config['weather']['weather_name'];
$forecast_api = $config['weather']['forecast_api'];
$weather_units = $config['weather']['weather_units'];
// Misc
//$trakt_username = $config['misc']['trakt_username'];
//$trakt_api_key = $config['misc']['trakt_api_key'];