Code Search for Developers
 
 
  

webapp.php from SME Web Application Framework at Krugle


Show webapp.php syntax highlighted

<?php
/*
Copyright 2001,2002,2003 Dashamir Hoxha, dashohoxha@users.sourceforge.net

This file is part of phpWebApp.

phpWebApp is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

phpWebApp is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with phpWebApp; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
*/

 /**
  * Standard file for all the applications,
  * doesn't need to be modified.
  *
  * @package sample-application
  */
 /** */

 //define APP_PATH and APP_URL
 $script_filename = $_SERVER["SCRIPT_FILENAME"];
$app_path =  dirname($script_filename)."/";
define("APP_PATH", $app_path);
$script_name = $_SERVER["SCRIPT_NAME"];
$app_url =  dirname($script_name)."/";
define("APP_URL", $app_url);

//define the path and the URL of the upper folder
$up_path = ereg_replace('[^/]+/$', '', APP_PATH);
define("UP_PATH", $up_path);
$up_url = ereg_replace('[^/]+/$', '', APP_URL);
define("UP_URL", $up_url);

//define CONFIG_PATH and include the other path constants
define("CONFIG_PATH",   APP_PATH."config/");
include CONFIG_PATH."const.Paths.php";

//include configuration constants
include CONFIG_PATH."const.Options.php";
include CONFIG_PATH."const.Debug.php";
include CONFIG_PATH."const.DB.php";

//include the WebApp framework
include WEBAPP_PATH."WebApp.php";

if ($request->targetPage==UNDEFINED)
{
  //first time that the user enters in the application
  $request->targetPage = FIRSTPAGE;
  $event->targetPage = FIRSTPAGE;
  if (file_exists("init.php"))  include_once "init.php";
}

if (file_exists("global.php"))  include_once "global.php";

if ($event->target=="none")
{
  //call the free event
  WebApp::callFreeEvent($event);
}
?>




See more files for this project here

SME Web Application Framework

smewebapp intends to simplify the construction of web applications for informatization of the work of SME-s (small and medium enterprises), institutions, organizations etc.

Project homepage: http://sourceforge.net/projects/smewebapp
Programming language(s): JavaScript,PHP,Shell Script,XML
License: other

  config/
    const.DB.php
    const.Debug.php
    const.Options.php
    const.Paths.php
  db/
    DT.sql
    config.sh
    create.sh
    dump.sh
  graphics/
    arrow.gif
    blue_tri.gif
    deloitte.gif
    koka_back.jpg
    pixel.gif
    style.css
  templates/
    administrate/
      editUser/
        accessRights/
          accessRights.db
          accessRights.html
          accessRights.js
        editUser.db
        editUser.html
        editUser.js
        editUser.php
      listOfUsers/
        listOfUsers.db
        listOfUsers.html
        listOfUsers.js
        listOfUsers.php
        list_navigation_bar.html
      selectUsers/
        selectUsers.db
        selectUsers.html
        selectUsers.js
        selectUsers.php
      administrate.html
      administrate.php
    login/
      header.html
      login.html
      login.js
      on.login.php
    mainMenu/
      mainMenu.css
      mainMenu.html
      mainMenu.js
      mainMenu.php
    modify/
      editNSR/
        editNSR.db
        editNSR.html
        editNSR.js
        editNSR.php
        select.html
        select_by_dept.js
      editProject/
        bids/
        deptDistrib/
        editContracted/
        editOpportunity/
        editProposal/
        managers/
        partners/
        projTeam/
        timeDistrib/
        calendar.js
        edit.db
        edit.html
        edit.php
        editProject.db
        editProject.html
        editProject.js
        editProject.php
      projectList/
        projectList.db
        projectList.html
        projectList.js
        projectList.php
        selection.html
        selection.php
      modify.html
      modify.js
      modify.php
      modifyMenu.html
    monitor/
      listOfProjRpt/
      needToSellRpt/
      summaryRpt/
      email.html
      email.php
      monitor.html
      monitor.js
      monitor.php
      monitorMenu.html
      printable.html
    schedule/
      conflicts/
      proj_list/
      proj_schedule/
      report/
      user_proj/
      email.html
      email.php
      printable.html
      schedule.html
      schedule.js
      schedule.php
      scheduleMenu.html
    selectProjects/
      select_by_dept/
      select_by_office/
      select_by_role/
    su/
    test/
    userdata/
    global.js
    header.html
    header.php
    main.db
    main.html
    main.php
  webobjects/
  COPYING
  ToDo.txt
  browse.php
  global.php
  index.php
  init.php
  webapp.php