فهرست منبع

Adjusted Spearhead Demo Name and Removed Install Password Requirement Not Allows Special Chars

own3mall 6 سال پیش
والد
کامیت
877b06c015
2فایلهای تغییر یافته به همراه1 افزوده شده و 7 حذف شده
  1. 0 6
      install.php
  2. 1 1
      modules/config_games/server_configs/mohspdemo_win.xml

+ 0 - 6
install.php

@@ -522,12 +522,6 @@ function install() {
             echo "<p><a href='?step=2'>".get_lang('back')."</a></p>";
             return;
         }
-        if (!preg_match("/^[0-9A-Z@]{6,20}$/i", $password1))
-        {
-            print_failure(get_lang('password_contains_invalid_characters'));
-            echo "<p><a href='?step=2'>".get_lang('back')."</a></p>";
-            return;
-        }
         if ( $password1 != $password2 )
         {
             print_failure(get_lang('password_mismatch'));

+ 1 - 1
modules/config_games/server_configs/mohspdemo_win.xml

@@ -2,7 +2,7 @@
   <game_key>mohspdemo_win32</game_key>
   <protocol>lgsl</protocol>
   <lgsl_query_name>mohaa</lgsl_query_name>
-  <game_name>Medal Of Honor: Spearhead Demo Server (Windows)</game_name>
+  <game_name>Medal Of Honor: Spearhead Demo</game_name>
   <server_exec_name>moh_spearhead_demo.exe</server_exec_name>
   <query_port type="add">97</query_port>
   <cli_template>+set dedicated 1 +set net_noipx 1 +exec server.cfg %IP% %PORT% %PLAYERS%</cli_template>