<?php

require 'xataface/public-api.php';
df_init(__FILE__, 'xataface')->display();
Exemple #2
0
<?php

/**
 * File: index.php
 * Description:
 * -------------
 *
 * This is an entry file for this Dataface Application.  To use your application
 * simply point your web browser to this file.
 */
$time = microtime(true);
// use the timer to time how long it takes to generate a page
require_once '{__DATAFACE_PATH__}/dataface-public-api.php';
// include the initialization file
df_init(__FILE__, '{__DATAFACE_URL__}');
// initialize the site
$app =& Dataface_Application::getInstance();
// get an application instance and perform initialization
$app->display();
// display the application
$time = microtime(true) - $time;
echo "<p>Execution Time: {$time}</p>";
Exemple #3
0
<?php

//Main Application access point
require_once "D:\\xampp\\htdocs\\xataface/dataface-public-api.php";
df_init(__FILE__, "/xataface");
$app =& Dataface_Application::getInstance();
$app->display();
if (!isset($_REQUEST['-sort']) and @$_REQUEST['-table'] == 'invoice') {
    $_REQUEST['-sort'] = $_GET['-sort'] = 'id';
}
Exemple #4
0
<?php

require_once 'xataface/dataface-public-api.php';
require_once 'xataface/snippets/functions.inc.php';
df_init(__FILE__, 'xataface');
$app =& Dataface_Application::getInstance();
<?php

require_once '../dataface-public-api.php';
df_init(__FILE__, '../dataface-public-api.php');
$app =& Dataface_Application::getInstance();
import('Dataface/CompositeForm.php');
echo "<h1>Form 1: All of the Profiles Table</h1>";
$form = new Dataface_CompositeForm(array('Profiles?id=10'));
$form->build();
echo $form->display();
echo "<h1>Form 2: Only the first name and lastname fields</h1>";
$form = new Dataface_CompositeForm(array('Profiles?id=10#fname', 'Profiles?id=10#lname'));
$form->build();
echo $form->display();
echo "<h1>Form 3: First name, last name, and position fields</h1>";
$form = new Dataface_CompositeForm(array('Profiles?id=10#fname', 'Profiles?id=10#lname', 'Appointments?id=2#position'));
$form->build();
echo $form->display();
Exemple #6
0
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *  
 *  This library 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
 *  Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *===============================================================================
 */
//ini_set('include_path', '..:../lib:'.ini_get('include_path'));
//
define('DB_HOST', 'localhost');
define('DB_NAME', 'test_contentmanager');
define('DB_USER', 'tester');
define('DB_PASSWORD', 'test');
xf_db_connect(DB_HOST, DB_USER, DB_PASSWORD);
@xf_db_query("create database `" . DB_NAME . "`");
/**
 * The URL of the testApp.php file which contains the test web application.
 */
define('TEST_APP_URL', 'http://powerbook.local/~shannah/dataface/tests/testApp.php');
// The path to the database installation (from the Document root)
$dataface_url = '/~shannah/dataface';
require_once '../dataface-public-api.php';
df_init(__FILE__, $dataface_url);
require_once 'Dataface/Application.php';
Exemple #7
0
    if (defined('SWETE_DEFAULT_CACHE_TTL')) {
        $liveCache->defaultCacheTTL = SWETE_DEFAULT_CACHE_TTL;
    }
    if (strtolower(@$_SERVER['REQUEST_METHOD']) == 'get') {
        try {
            $liveCache->handleRequest();
        } catch (Exception $ex) {
            //  The first time a resource is requested, it will likely
            // throw an exception because we don't yet know the unproxified
            // url
            error_log("LiveCache Warning: " . $ex->getMessage());
        }
    }
    $ORIG_POST = $_POST;
    $ORIG_GET = $_GET;
    $ORIG_REQUEST = $_REQUEST;
    $_POST = array();
    $_GET = array('-action' => 'swete_handle_request');
    $_REQUEST = $_GET;
}
ini_set('memory_limit', '256M');
require_once 'include/functions.inc.php';
require_once 'xataface/public-api.php';
$conf = array();
if (isset($liveCache)) {
    if (is_resource($liveCache->db)) {
        $conf['db'] = $liveCache->db;
    }
}
df_init(__FILE__, 'xataface', $conf)->display();
Exemple #8
0
<?php

/**
 * File: index.php
 * Description:
 * -------------
 *
 * This is an entry file for this Dataface Application.  To use your application
 * simply point your web browser to this file.
 */
date_default_timezone_set('Europe/Brussels');
require_once '/var/www/html/xataface-2.0.3/public-api.php';
df_init(__FILE__, 'http://localhost/xataface-2.0.3')->display();
Exemple #9
0
<?php

/**
 * File: index.php
 * Description:
 * -------------
 *
 * This is an entry file for this Dataface Application.  To use your application
 * simply point your web browser to this file.
 */
require_once '{__DATAFACE_PATH__}/public-api.php';
df_init(__FILE__, '{__DATAFACE_URL__}')->display();
<?php

// Sample application
require_once '/path/to/dataface/dataface-public-api.php';
df_init(__FILE__, '/dataface');
$app =& Dataface_Application::getInstance();
$app->display();