Просмотр файла phpmytourney/TESTscripts/createlogin.php

Размер файла: 1.39Kb
<?
/***********************************************************
* This file was created by Jйrфme Poulin under the phpmytourney
* project.  
* You can modify and redistribute this file as long as this
* copyright notice stays in the file.
*
* If you want to do major upgrades on my script, please contact
* me and we could work together.
* 
* Jйrфme Poulin
* Student University of Sherbrooke
* [email protected] <== dont use for support !!!
* http:/phpmytourney.sourceforge.net/ <== use sourceforce forum for support
* 
*  phpMyTourney <C> 2001-2002
************************************************************/
/***********************************************************
*	filename : createlogin.php
*	Created by : Jйrфme Poulin@09-02-2002
*	Last modified : Jйrфme Poulin@09-02-2002
************************************************************/
// This file creates a bunch of fake logins (ganonXX)

include('../config.inc');
include($path_common . 'mysql.inc');

$junk_mail = "[email protected]";
$name_template = "ganon";
$nb_fake_players = 36;
for($i=1;$i<=$nb_fake_players;$i++){
	$name = $name_template . $i;
	$query[] = "INSERT into ALLTOURNEY_players SET id='$i', name = '$name',passwd = '$name',active='Y',email='$junk_mail'";
}
if (execute_queries($query,"smooth"))
	echo("<br><b>Fake name created succesfully</b>");
else
	echo("<br><b>An Error occured...");
		
?>