forked from AquaFlameCMS/AquaFlameCMS_Trinity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fill_users.php
55 lines (54 loc) · 2.25 KB
/
fill_users.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
require_once("configs.php");
?>
<!doctype html>
<html lang="en-gb">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<title><?php echo $website['title']; ?></title>
<meta name="description" content="<?php echo $website['description']; ?>">
<meta name="keywords" content="<?php echo $website['keywords']; ?>">
<link rel="shortcut icon" href="wow/static/local-common/images/favicons/wow.png" type="image/x-icon" />
<link rel="stylesheet" href="wow/static/local-common/css/common.css?v15"/>
<link rel="stylesheet" href="wow/static/_themes/bam/css/master.css?v1"/>
<script src="wow/static/local-common/js/third-party/jquery-1.4.2.min.js?v15"></script>
<script src="wow/static/local-common/js/core.js?v15"></script>
<style type="text/css">
.loader {
width:220px;
height:17px;
background: url("wow/static/images/loaders/canvas-loader.gif") no-repeat;
}
</style>
</head>
<body>
<div id="embedded-login">
<h2><?php echo $website['title']; ?> - Filling Users</h2>
<br />
<center>
<?php
mysql_select_db($server_adb,$connection_setup)or die(mysql_error());
$get_acc = mysql_query("SELECT * FROM account ORDER BY id ASC");
echo'<h3>Filling users...</h3><br />
<div class="loader"></div><br /><br />';
while($acc = mysql_fetch_array($get_acc)){
mysql_select_db($server_db,$connection_setup)or die(mysql_error());
$select_user = mysql_query("SELECT * FROM users WHERE id = '".$acc['id']."' LIMIT 1");
if(mysql_num_rows($select_user) > 0){
echo 'Account <font color="aqua">'.strtolower($acc['username']).'</font> already inserted into users table<br />';
}else{
echo '<font color="aqua">'.strtolower($acc['username']).'</font> added!<br />';
$fill_users = mysql_query("INSERT INTO users(id) VALUES ('".$acc['id']."')");
}
}
echo '<br /><br /><font color="aqua">Everything is Configured! Please rerun to be sure.</font>';
?>
<meta http-equiv="refresh" content="8;url=index.php"/>
</center>
</div>
</body>
</html>