?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
function.inc.php 0000666 00000013311 15047261512 0007660 0 ustar 00
/*
reactive.CMS.modules.params
by A.L.
version 1.0b - 29/10/2012
15/01/2013 - checkbox
*/
$GLOBALS['PARAMS_DATA_PATH'] = str_replace('//','/', $MODULE_FOLDER.$keyword. '/data/');
$GLOBALS['PARAMS_EDIT_HANDLER'] = '/cms/modules/'. $keyword .'/';
$GLOBALS['PARAMS_CACHE'] = array();
/*
*/
function params_load($key){
//DebugBreak();
if(isset($GLOBALS['PARAMS_CACHE'][$key])) return $GLOBALS['PARAMS_CACHE'][$key];
$path = $GLOBALS['PARAMS_DATA_PATH'] . $key . '.inc.php';
if(is_file($path)){
include $path;
};
if(empty($data)) $data = array();
return $data;
};
function params_save($key, $params){
//DebugBreak();
$GLOBALS['PARAMS_CACHE'][$key] = $params;
$path = $GLOBALS['PARAMS_DATA_PATH'] . $key . '.inc.php';
if(! is_file($path)){
throw new Exception('Файл для сохранения параметров не существует.');
};
$ff = fopen($path, 'w');
fwrite($ff, ' $data = '. var_export($params, true) .'; ?>');
fclose($ff);
};
/*
Выводит ajax-форму для редактирования значений параметров
*/
function params_edit($key){
if(!$GLOBALS['as_admin']) return false;
$params = params_load($key);
$form_id = 'form-'. md5($key);
ob_start();
?>