فهرست منبع

Add files via upload

Daniele Bonini (皮夕): WebDev and DevOps by lots of Simplicity bits 3 سال پیش
والد
کامیت
beb3205d9c
2فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 3 3
      config.inc.sample
  2. 5 5
      index.php

+ 3 - 3
config.inc.sample

@@ -73,8 +73,8 @@ $CONFIG = [
    'APP' => [
       'NAME' => "Actitude",
       'TITLE' => "Actitude",
-      'APP_DESCRIPTION' => "Welcome to Actitude! Let everyone register and support you.",
-      'APP_KEYWORDS' => "event,registration,support,supportes,hugs,list,on,premise,solution",
+      'DESCRIPTION' => "Welcome to Actitude! Let everyone register and support you.",
+      'KEYWORDS' => "event,registration,support,supportes,hugs,list,on,premise,solution",
       'HASH' => "",  
       'SPLASH' => true,
       'PATH' => "/var/www/YourWebApp",
@@ -93,7 +93,7 @@ $CONFIG = [
       'WELCOME_MSG' => "Welcome to our 5 Mode hugs list:",
       'SUPPORT_MSG' => "TIME FOR A SMALL DONATION!",
       // Max signs from a single client
-      'APP_MAX_FROM_IP' =>  5
+      'MAX_FROM_IP' =>  5
       ],
     
     'DISPLAY' => [

+ 5 - 5
index.php

@@ -53,10 +53,10 @@
      
      $val = rtrim($val, "\n");
      
-     $ipos=mb_stripos($val, "-");
+     $ipos=mb_stripos($val, "|");
      $myname = left($val,$ipos);
      
-     $ipos2=mb_strripos($val, "-");
+     $ipos2=mb_strripos($val, "|");
      $myplace = substr($val, $ipos+1, (($ipos2 - $ipos) - 1));
      
      $aflag = substr($val, $ipos2+1, 1);
@@ -276,7 +276,7 @@
    global $captchasign;
    global $captchaHistory;
    
-   $newSign = HTMLencodeF($name,false) . "-" . HTMLencodeF($place,false) . "-u";
+   $newSign = HTMLencodeF($name,false) . "|" . HTMLencodeF($place,false) . "|u";
 
    //echo("array_filter=".count(array_filter($captchaHistory, "odd"))."<br>");
    //echo("new_sign?=".((hash("sha256", $newSign . APP_SALT, false) !== $lastMessage)?"true":"false")."<br>");
@@ -354,7 +354,7 @@
      
      //echo("inside myExecConfSignCommand()");
      
-     $newval = left($mysign, strlen($mysign)-2) . "-v"; 
+     $newval = left($mysign, strlen($mysign)-2) . "|v"; 
      
      $key = array_search($mysign."\n", $signHistory);
      if ($key !== false) { 
@@ -422,7 +422,7 @@
      
      //echo("inside myExecDelSignCommand()");
      
-     $newval = left($mysign, strlen($mysign)-2) . "-u"; 
+     $newval = left($mysign, strlen($mysign)-2) . "|u"; 
      
      $key = array_search($mysign."\n", $signHistory);
      if ($key !== false) {