?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
PK 9[ function.inc.phpnu W+A http://".$_SERVER['HTTP_HOST'].$MODULE_VARS['customers']['ACTIVATION_LINK']."?activation=".$email."&code=".generateValidation($email)."";
$text = str_replace('%LINK%',$link,$text);
$subject = $MODULE_VARS['customers']['MAIL_SUBJECT'];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=cp1251' . "\r\n";
$headers .= 'To: '.$email.' <'.$email.'>' . "\r\n";
$headers .= 'From: no-reply@'.$_SERVER['HTTP_HOST'].' ' . "\r\n";
$to = $email;
mail($to, $subject, $text, $headers);
}
function isCustomer(){
if(isset($_SESSION['id'])&&!empty($_SESSION['id'])){
return true;
}
return false;
}
function setCustomer($email){
$_SESSION[''] = '';
}
// back-end
function drawCustomerMenu(){
$out = "";
}
function drawCustomersList(){
// edit user div
$out = "
Add
";
$data = SQLSelect("SELECT * FROM `Customers_Users` ORDER BY ID DESC, ACTIVITY DESC");
$out .= "
";
$i = 0;
foreach($data as $k=>$v){
if($v['ACTIVE']=="1"){
$active = "";
} else {
$active = "";
}
if($i==1){
$addClass = " class=\"customersTableOdd\"";
$i=0;
} else {
$addClass = "";
$i++;
}
$out .= "
".$v['ID']." |
".$v['NAME']." |
".$v['EMAIL']." |
".$v['ACTIVITY']." |
".$active."
|
";
}
$out .= "
";
echo $out;
}
function drawCustomersMenu(){
switch($_GET['step']){
case '1':
case '':
case 'customers':
echo "";
break;
case 'groups':
echo "";
break;
default:
break;
}
}
function drawCustomersGroups(){
// add group
echo "
";
echo "
";
$data = SQLSelect("SELECT * FROM `Customers_Groups` ORDER BY NAME");
if(count($data)>0){
$out .= "
";
$i = 0;
foreach($data as $k=>$v){
if($i==1){
$addClass = " class=\"customersTableOdd\"";
$i=0;
} else {
$addClass = "";
$i++;
}
$out .= "
".$v['ID']." |
".$v['NAME']." |
|
";
}
$out .= "
";
echo $out;
} else {
echo " .
";
}
}
?>PK 9[܉ index.phpnu W+A
require_once ("../../../cms.conf");
require_once ($INCLUDE_FOLDER."index.php");
foreach($_GET as $k=>$v){
${$k} = mysql_escape_string($v);
}
?>PK 9[\a a admin/index.phpnu W+A
error_reporting(0);
require_once ("../../../../cms.conf");
require_once ("../function.inc.php");
require_once ($ADMIN_FOLDER . "function.inc.php");
require_once ($INCLUDE_FOLDER . "main.inc.php");
$Delimeter = " > ";
$Title1 = "" . $Delimeter .
"";
$Title2 = " ";
if (!($perm->isSupervisor() || $perm->isGuest())) {
BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/settings/modules/");
print $NO_RIGHTS_MESSAGE;
EndHtml();
exit;
}
LoadModuleEnv();
if (!isset($step))
$step = 1;
BeginHtml($Title2, $Title1, "http://" . $DOC_DOMAIN . "/settings/modules/");
drawCustomerMenu();
switch ($step) {
case 1:
case 'customers':
case '':
drawCustomersMenu();
// info;
drawCustomersList();
break;
case 'groups':
drawCustomersMenu();
// groups
drawCustomersGroups();
break;
case 2:
// process
break;
//
case 'active':
// /
drawCustomersMenu();
if($do==1){
// on
if($id){
SQLExec("UPDATE `Customers_Users` SET ACTIVE='1' WHERE ID='".(int)$id."'");
echo " ID=".$id." .
";
}
} else {
// off
SQLExec("UPDATE `Customers_Users` SET ACTIVE='0' WHERE ID='".(int)$id."'");
echo " ID=".$id." .
";
}
drawCustomersList();
break;
case 'edit':
//
drawCustomersMenu();
if(!empty($id)){
// check new email
SQLExec("UPDATE `Customers_Users` SET NAME='".$NAME."' WHERE ID=".$id);
$check = SQLSelectOne("SELECT COUNT(*) AS CNT FROM `Customers_Users` WHERE EMAIL='".$EMAIL."' AND ID='".$id."'");
if($check['CNT']>0){
echo " e-mail (".$EMAIL.")
";
} else {
// empty email = error
if(empty($EMAIL)){
echo " EMAIL , .
";
// show editable
echo "";
} else {
// password update?
if(!empty($PASSWORD)){
$q = ", PASSWORD='".md5($PASSWORD)."'";
}
// update DB
SQLExec("UPDATE `Customers_Users` SET EMAIL='".$EMAIL."', NAME='".$NAME."' ".$q." WHERE ID='".$id."'");
if($SendEmail){
// send email
$to = $EMAIL;
$subject = ' '.$_SERVER['HTTP_HOST'];
$message = ' '.$_SERVER['HTTP_HOST'].' . : '.$PASSWORD;
$headers = 'From: no-reply@'.$_SERVER['HTTP_HOST'] . "\r\n".
'X-Mailer: PHP/' . phpversion();
@mail($to, $subject, $message, $headers);
echo " . ".$EMAIL." .
";
}
}
}
} else {
echo " .
";
}
drawCustomersList();
break;
case 'activation':
if($email){
drawCustomersMenu();
sendValidation($email);
$link = "http://".$_SERVER['HTTP_HOST']."/cms/modules/customers/?activation=".$email."&code=".generateValidation($email)."";
echo " (".$link.") email ".$email."
";
} else {
echo " .
";
}
drawCustomersList();
break;
case 'groupAdd':
if(!empty($NAME)){
$data = SQLSelectOne("SELECT * FROM `Customers_Groups` WHERE NAME='$NAME'");
if(!empty($data['ID'])){
echo " $NAME
";
} else {
$save['NAME'] = mysql_escape_string($NAME);
SQLInsert('Customers_Groups',$save);
echo " $NAME
";
}
} else {
echo " .
";
}
drawCustomersMenu();
// groups
drawCustomersGroups();
break;
default:
break;
}
EndHtml();
?>PK 9[ function.inc.phpnu W+A PK 9[܉ index.phpnu W+A PK 9[\a a admin/index.phpnu W+A PK 7