home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 February / PCpro_2005_02.ISO / files / opensource / A_Note_4.2.1 / setup.exe / {app} / Server Documents / getnotes.php < prev    next >
Encoding:
PHP Script  |  2004-09-27  |  539 b   |  29 lines

  1. <?php
  2. // Get the notes that brings to the user
  3.  
  4.  
  5. // Variable init
  6.     #include ("init.php");
  7.     $user      = $_GET['user'];
  8.     $password = $_GET['password'];
  9.  
  10.     if ($user == "" || password == "")    {
  11.         echo $xmlstart ."<info info=\"no user or password\"/>";
  12.         exit;
  13.     }
  14.     
  15. // Connect to the database    
  16.     include ("connect.php");
  17.         
  18. // Check if the user exists and that the password is right
  19.     include ("validateuser.php");
  20.  
  21. // Everything is ok -> create the xml
  22.     include ("createxml.php");
  23.     
  24. // Close mysql
  25.     mysql_close();    
  26. ?>
  27.  
  28.  
  29.