Create Users and Villages

Submitting this form will create new Users (and their home Villages) on your server!

Base Name should be between 4 and 20 characters long

How Many should be between 1 and 200
(Higher values might take a while or cause a crash!)

If you want to run this more than once you should use different a different Base Name each time - if a UserName already exists it will be skipped

Example:
Base Name = Farm
How Many = 5
Users created will be Farm1, Farm2, Farm3, Farm4, Farm5



Error: Base Name is too short (min 4 chars)'; break; case 'BN2L': $baseNameFontColor = "Red"; echo '

Error: Base Name is too long (max 20 chars)'; break; case 'AMLO': $amountFontColor = "Red"; echo '

Error: Minimum of 1 for How Many'; break; case 'AMHI': $amountFontColor = "Red"; echo '

Error: Maximum of 200 for How Many'; break; default: // Should never reach here $baseNameFontColor = "Black"; $amountFontColor = "Black"; echo '

Error: Unknown'; } } elseif ( isset($_GET['g']) && $_GET['g'] == 'OK') { $baseName = ($_GET['bn']); $amount = ($_GET['am']); $skipped = ($_GET['sk']); $beginnersProtection = ($_GET['bp']); switch ($_GET['tr']) { case '0': $tribe = RANDOM; break; case '1': $tribe = ROMANS; break; case '2': $tribe = TEUTONS; break; case '3': $tribe = GAULS; break; default: // Should never reach here $tribe = 'Unknown'; } echo '

' . $amount . ' Users and Villages added using Base Name ' . $baseName . '
'; // Say if Beginners Protection was set for any Users created if ($amount > 0) { // Plural or Singular for User(s) // TODO: Add options for these to lang files if ($amount > 1) { $usersMessage = 'these Users'; } else { $usersMessage = 'this User'; } $begMessage = 'Beginners Protection was '; if (!$beginnersProtection) { $begMessage .= 'NOT '; } $begMessage .= 'set for ' . $usersMessage . '
'; echo $begMessage; // Say Tribes chosen $tribeMessage = 'Tribe for ' . $usersMessage . ' was '; $tribeMessage .= $tribe . '
'; echo $tribeMessage; } if ($skipped > 0) { echo '' . $skipped . ' Users not created as the user name already exists
'; } echo '
Now would be a good time to ' . 'Return to the server' . ' this will update rankings etc but will take a while!
' . ' Make sure max_execution_time is set to a high enough value in php.ini

' . 'Choose a different Base Name if you want to create more
'; // Clear the basename from form values so not used again $baseName = ""; $amount = ""; } ?>
Base Name  

How Many   

Beginners Protection   

Tribe: