PHP Classes

File: usertemplate/index.php

Recommend this page to a friend!
  Classes of Mark de Leon  >  PHP Document Scanner using SANE or eSCL AirPrint  >  usertemplate/index.php  >  Download  
File: usertemplate/index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Document Scanner using SANE or eSCL AirPrint
Web interface to scan printed documents
Author: By
Last change:
Date: 1 year ago
Size: 1,086 bytes
 

Contents

Class file image Download
<?php
include_once '../../phppagestart.php';
//error_reporting( -1 );
//ini_set( 'display_errors', 1 );
$username= $_SESSION['username'];

// The following two lines MUST point to <WEBROOT>/config.inc.php
// first how we get back to webroot from ths user../
$webroot='/var/www/html/';
include_once(
$webroot.'config.inc.php');
include_once(
$webroot.'lang.php');
chdir ($webroot);
$_SESSION['fromuserfolder']='yes';
$_SESSION['fromuserfilelister']='yes';
$now = time();

if ((
$requireauth == 'yes') && ($_SESSION['loggedin'] != 'yes'))
{

//echo 'excuse 1';
include_once('deauthorize.php');
}

if ((
$requireauth == 'yes') && ($_SESSION['loggedin'] == 'yes') && ($_SESSION['expire'] > $now))// && ($_SESSION['expire'] > $now))
{
include_once(
'filelister.php');
}

elseif (
$requireauth != 'yes')
{
include_once(
'filelister.php');
}

elseif ((
$requireauth == 'yes') && ($_SESSION['loggedin'] != 'yes'))
{
//echo 'excuse 2';
include_once('deauthorize.php');
}

elseif ((
$requireauth == 'yes') && ($_SESSION['expire'] <= $now))
{
//echo 'excuse 3';
include_once('deauthorize.php');
}

?>



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