public
Description: Open source billing and invoicing
Homepage: http://www.agileco.com
Clone URL: git://github.com/tony-landis/agilebill.git
box25 (author)
Sun Jul 12 13:25:14 -0700 2009
tony-landis (committer)
Tue Nov 03 13:22:17 -0800 2009
commit  560512646a090dc1db6c7b35cedca16e5eecd572
tree    9c428b47467a71f47384deca5f5984d58d102fc1
parent  c5c296028170bb5e8447778a16e6abc165c1084f
agilebill / ajax.php
100644 49 lines (45 sloc) 1.53 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
 
/**
* AgileBill - Open Billing Software
*
* This body of work is free software; you can redistribute it and/or
* modify it under the terms of the Open AgileBill License
* License as published at http://www.agileco.com/agilebill/license1-4.txt
*
* For questions, help, comments, discussion, etc., please join the
* Agileco community forums at http://forum.agileco.com/
*
* @link http://www.agileco.com/
* @copyright 2004-2008 Agileco, LLC.
* @license http://www.agileco.com/agilebill/license1-4.txt
* @author Tony Landis <tony@agileco.com>
* @package AgileBill
* @version 1.4.93
*/
 
 
ob_start();
define('AJAX', 1);
require_once('config.inc.php');
require_once('modules/core/vars.inc.php');
$C_vars = new CORE_vars;
$VAR = $C_vars->f;
require_once('includes/adodb/adodb.inc.php');
require_once('modules/core/auth.inc.php');
require_once('modules/core/database.inc.php');
require_once('modules/core/method_ajax.inc.php');
require_once('modules/core/session.inc.php');
require_once('modules/core/setup.inc.php');
$C_debug = new CORE_debugger;
$C_setup = new CORE_setup;
$C_sess = new CORE_session;
$C_sess->session_constant();
$C_method = new CORE_method;
if ((isset($VAR['_login'])) && (isset($VAR['_username'])) && (isset($VAR['_password']))) {
require_once(PATH_CORE . 'login.inc.php');
$C_login = new CORE_login_handler();
$C_login->login($VAR);
}
$C_sess->session_constant_log();
$C_auth = new CORE_auth (false);
$C_method->do_all();
ob_end_flush();
 
?>