Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $endMod = "</IfModule>";
- $nameServer = array(
- "game1",
- "game2",
- "game3"
- );
- $arrays = array(
- "<IfModule mod_rewrite.c>",
- "RewriteEngine On",
- "RewriteRule ^index/?$ index.php",
- "RewriteRule ^home/?$ index.php",
- "RewriteRule ^connect/?$ connection.php",
- "RewriteRule ^choose/?$ choose.php",
- );
- $htMod = count($arrays);
- $countSrv = count($nameServer);
- for ($i = 0; $i < $htMod;$i++) {
- echo "Count=".$i."Array=".$arrays[$i]."<br>";
- if (isset($arrays[$i + 1]) == null) {
- for ($j = 0; $j < $countSrv;$j++) {
- $i = $i + 1;
- $arrays[$i] = $nameServer[$j];
- if (isset($nameServer[$j + 1]) == null AND isset($arrays[$i + 1]) == null) {
- $arrays[$i + 1] = $endMod;
- break;
- }
- }
- }
- }
- $newSize = count($arrays);
- for ($k = 0; $k < $newSize;) {
- $k++;
- echo $arrays[$k] . "<br>";
- }
- //"RewriteRule ^".$webName . "/?$ app/template/" . $webName . "/index.php",
- //$dec = (int)$description[$i];
- // echo $description[$i] . "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement