Shadowss / TravianZ-by-Shadow

TRY TO USE https://github.com/Shadowss/TravianZ
http://travian.shadowss.ro
18 stars 31 forks source link

Bug create alliance tag ,name #31

Closed gm4st3r closed 10 years ago

gm4st3r commented 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:

kisserlb commented 10 years ago

I will look on it now

Edit i checked now everything is working :)

kisserlb commented 10 years ago

can you give me what is giving while creating a alliance please.