Blame view

account/cancel.php 601 Bytes
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?  
  	// Ïîäêëþ÷åíèå
  	include_once($_SERVER['DOCUMENT_ROOT']."/config/config.php"); 
  	include_once($_SERVER['DOCUMENT_ROOT']."/account/func/func.php");
  	
  	if (isset($_GET['cancel'])) {
  	
      $sql = "SELECT id FROM zlo_users WHERE pass='".$_GET['cancel']."'";
      $result = mysql_query($sql) or die(mysql_error());
      if (mysql_affected_rows()!=0) {
  		$user=mysql_fetch_assoc($result);
  	}
          // Îòïðèñóåì îò ðàññûëêè
  		//$sql = "UPDATE zlo_users SET `mailing`=0 WHERE id='".$user['id']."'";
  		//$result = mysql_query($sql) or die(mysql_error());	
  		
  	}
  	
  	echo"Ïîäïèñêà íà ðàññûëêó îòìåíåíà";
  
  ?>