Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $prefix = $_POST['prefix'];
- $sitetitle = $_POST['sitetitle'];
- $abusername = $_POST['abusername'];
- $abpassword = $_POST['abpassword'];
- $submit = $_POST['submit'];
- $su = $_POST['sqluser'];
- $sup = $_POST['sqlpassword'];
- if($submit)
- {
- $prefix = $_POST['prefix'];
- $sitetitle = $_POST['sitetitle'];
- $abusername = $_POST['abusername'];
- $abpassword = $_POST['abpassword'];
- $submit = $_POST['submit'];
- $database = $_POST['database'];
- $abpassword = md5($abpassword);
- $db = $prefix."_".$database;
- $pre = $prefix."_";
- //Connect to SQL
- mysql_connect("localhost", "$su", "$sup")or die("cannot connect with the given SQL username/password");
- mysql_select_db("$db")or die("Error: Cannot select database<br/> mysql_error()");
- //End SQL Connect
- $someshit = "
- <?php
- $var = "$db"; //My variable holding the database
- ?>
- ";
- $open = fopen('global.php', 'w');
- =================Now here's the global file that the above creates!===========================
- <?php
- = 'cameron_groups'; //My variable holding the database
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement