Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function enable_code(){
- global $mac; global $access_code; global $code; global $tel; global $ip;
- $host = 'localhost';
- $database = 'datausers';
- $user = 'root';
- $pass = 'toor';
- $link = mysqli_connect($host,$user,$pass,$database);
- if(!$link)
- {
- die("Database connection failed: " . mysqli_error());
- }
- $db_secelect = mysqli_select_db($link,$database);
- if(!$db_secelect)
- {
- die("Database connection failed: " .mysqli_error($link));
- }
- if($access_code == $code)
- {
- shell_exec("iptables -t mangle -I internet 1 -m mac --mac-source
- ".$mac." -j RETURN");
- mysqli_query($link,"INSERT INTO dataconnection(phone,ip,mac,enable) VALUE ('$tel'.'$ip','$mac',1)");
- sleep(1); header("location:http://".$_GET['add']); exit;
- }
Add Comment
Please, Sign In to add comment