PHP Classes

File: main.php

Recommend this page to a friend!
  Classes of Marius  >  dbFile  >  main.php  >  Download  
File: main.php
Role: Application script
Content type: text/plain
Description: main.php
Class: dbFile
file based web database and Administrator
Author: By
Last change:
Date: 18 years ago
Size: 1,699 bytes
 

Contents

Class file image Download
<?php
include("../classes/dbfile.inc");

$GLOBALS['dbf'] = new database_file("../database");


//// check the user here
if($dbf->check_user($User,$Password) == -1){
   
$dbf->error("Permission denied to access this database");
}

$conn = '$connection';
$fd = fopen("common.inc", "w");

$fout = fwrite($fd,"<?php\n\r");
$fout = fwrite($fd,"include(\"../classes/dbfile.inc\");\n\r");
$fout = fwrite($fd,"\$dbf = new database_file(\"../database\");\n\r");
$fout = fwrite($fd,"?>");
?>

<html>
<head>
    <title>dbfSql Admin version 1.00</title>
</head>
<!-- frames -->
<frameset rows="100,*" frameborder="yes" border="1" framespacing="no" noresize>
    <frame name="up" src="up.php?User=<?php print("$User"); ?>" marginwidth="0" marginheight="0" scrolling="no" frameborder="no" border="0" framespacing="no" noresize>
    <frameset rows="*,100" frameborder="yes" border="1" framespacing="no" noresize>
        <frameset cols="25%,*,35%" frameborder="yes" border="1" framespacing="no" noresize>
            <frame name="leftup" src="leftup.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="no" border="0" framespacing="no" noresize>
            <frame name="middleup" src="middleup.php" marginwidth="10" marginheight="0" scrolling="no" frameborder="no" border="0" framespacing="no" noresize>
            <frame name="rightup" src="rightup.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="no" border="0" framespacing="no" noresize>
        </frameset>
        <frame name="down" src="down.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="no" border="0" framespacing="no" noresize>
    </frameset>
</frameset>


</html>

For more information send a message to info at phpclasses dot org.