File: dbloader.php3

package info (click to toggle)
irm 1.0.3-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 816 kB
  • ctags: 753
  • sloc: php: 3,440; sh: 346; makefile: 40
file content (20 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?
include("irm.inc");
$db = new DB;
PRINT "Sorry, disabled for security reasons. To re-enable, edit this file and remove the next line.";
exit();
$i = 0;
 while ($i < 40000) {
	$query = "INSERT INTO computers VALUES (NULL, 'Computer $i', 
		'Generic PC',0, 
		'Windows', '95', 'Intel Pentium', '233', 
		'Library Back Room', '0', '0', '36pin SIMMS', 
		'64', '3Com (100Mbps)', '204.222.999.$i', '$i', 
		'$i', 'Joe', '18002255288', 'None', NOW())";
	$result = $db->query($query);
	$i++;
 }

PRINT "Done";
commonFooter();
?>