eregi_replace depreciated in php 5.3+ and needs replacing.

Registered by Thomas Juberg

Starting with PHP 5.3 the function eregi_replace is depreciated and will eventually be removed from PHP.

We only use this in a handfull of locations at present:
main/15_Colors.php: $text = eregi_replace($tag, $font, $text);
modules/ao/PrivGroup.php: $string = eregi_replace("#!" . $key . "!#", "##highlight##" . $value . "##end##", $string);
modules/ao/PrivGroup.php: $string = eregi_replace("~!" . $key . "!~", $value, $string);
modules/ao/PrivGroup.php: $string = eregi_replace("#!BOTNAME!#", $this -> bot -> botname, $string);
modules/ao/TowerAttack.php: $string = eregi_replace("#!" . $key . "!#", $value, $string);

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Thomas Juberg
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.6.4
Started by
Thomas Juberg
Completed by
Thomas Juberg

Related branches

Sprints

Whiteboard

I just changed the ereg functions to their preg equivalent in both, trunk and 0.6 branch. Untested, but double-checked every character.

Don't know, how to update blueprint status though...
-- djkrose

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.