Closed gm4st3r closed 10 years ago
Fix go to the GameEngine/Alliance.php
find: public function procAlliForm($post) { if(isset($post['ft'])) { switch($post['ft']) { case "ali1": $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->createAlliance($postz); break; } } if(isset($_POST['dipl']) and isset($_POST['a_name'])) { $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->changediplomacy($postz); }
And change:
public function procAlliForm($post) { if(isset($post['ft'])) { switch($post['ft']) { case "ali1": $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->createAlliance($post); break; } } if(isset($_POST['dipl']) and isset($_POST['a_name'])) { $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->changediplomacy($post); }
I'm not sure me it worked :+1:
I will look on it now
Edit i checked now everything is working :)
can you give me what is giving while creating a alliance please.
Fix go to the GameEngine/Alliance.php
find: public function procAlliForm($post) { if(isset($post['ft'])) { switch($post['ft']) { case "ali1": $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->createAlliance($postz); break; } } if(isset($_POST['dipl']) and isset($_POST['a_name'])) { $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->changediplomacy($postz); }
And change:
public function procAlliForm($post) { if(isset($post['ft'])) { switch($post['ft']) { case "ali1": $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->createAlliance($post); break; } } if(isset($_POST['dipl']) and isset($_POST['a_name'])) { $postz = pregreplace("/[^a-zA-Z0-9-\s]/", "", $post); $this->changediplomacy($post); }
I'm not sure me it worked :+1: