home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / EasyPHP-2.0b1-setup.exe / {app} / sqlitemanager / index.php < prev    next >
Encoding:
PHP Script  |  2006-04-18  |  1.3 KB  |  42 lines

  1. <?php
  2. /**
  3. * Web based SQLite management
  4. * @package SQLiteManager
  5. * @author FrΘdΘric HENNINOT
  6. * @version $Id: index.php,v 1.20 2006/04/14 15:16:52 freddy78 Exp $ $Revision: 1.20 $
  7. */
  8. if(!session_start()){
  9.     if (!is_writable(session_save_path())) {
  10.       if (strstr($_SERVER['SCRIPT_FILENAME'],'free.fr')) { 
  11.         //activation des sessions sur free.fr
  12.         if (!is_dir(session_save_path())) {
  13.            if (mkdir(session_save_path(),0700)) session_start();
  14.         }
  15.       } else displayError('ERROR : session directory not writable : '.session_save_path());
  16.     }
  17. }
  18.  
  19. include_once 'include/defined.inc.php';
  20.  
  21. include_once INCLUDE_LIB.'config.inc.php';
  22.  
  23. ?>
  24. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
  25. <html>
  26. <head>
  27.     <meta http-equiv="Pragma" content="no-cache">
  28.     <meta http-equiv="expires" content="0">
  29.     <title>SQLiteManager</title>
  30.     <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" >
  31. </head>
  32. <frameset cols="<?php echo LEFT_FRAME_WIDTH ?>,*">
  33. <frame src="left.php?<?php echo arrayToGet($_GET) ?>" name="left" scrolling="auto">
  34. <frame src="main.php?<?php echo arrayToGet($_GET) ?>" name="main" scrolling="auto">
  35. <noframes>
  36. <body>
  37.     <script type="text/javascript">if(!document.frames) window.location='main.php?noframe';</script>
  38. </body>
  39. </noframes>
  40. </frameset>
  41. </html>
  42.