CLICK HERE TO BUY IT TODAY! OR GET IT FREE VIA TRIALPAY  

PHP Demo Application - Source Code

/Application/Model/MetaData/Configuration.php

<?php
/**
* Configuration settings for Application.  
* @package Apeel_Application_Model_MetaData
*/

/**
* Define settings for application
*/

// Debug Mode (Be sure to set both to 0 once live)
define('APEEL_DEBUG_MODE''1');
define('APEEL_LOG_SQL''1');

// Demo Mode - Demo Mode no updates are written to the database
define('APEEL_DEMO_MODE''0');

// Fill In Application Name Here
define('APEEL_APPLICATION_NAME''My Business Web Application');

// Incldue script name in URL
define('APEEL_SCRIPT_BASED_URLS''1');

// Prevent Timezone errors, set to correct location if you wish
if(function_exists('date_default_timezone_set')) {
   
date_default_timezone_set('Europe/London');
}

// Upload Folder
define('APEEL_UPLOAD_FOLDER'APEEL_BASE_FILE_PATH 'Application/_UploadedFiles/');
define('APEEL_TEMP_UPLOAD_FOLDER'APEEL_BASE_FILE_PATH 'Application/_UploadedFiles/tmp/');

// Page Templates
define('APEEL_PAGE_TEMPLATE_PATH'APEEL_BASE_FILE_PATH 'Application/View/Templates/Pages/');

// Form Templates
define('APEEL_FORMS_TEMPLATE_PATH'APEEL_BASE_FILE_PATH 'Application/View/Templates/Forms/');

// Grid Defaults
define('RECORDS_PER_PAGE'20);

// Grid Templates
define('APEEL_GRID_TEMPLATE'APEEL_BASE_FILE_PATH 'Application/View/Templates/Grid/FlexiGrid.htm');
define('APEEL_GRID_EDIT_BUTTON_PANEL_TEMPLATE'APEEL_BASE_FILE_PATH 'Application/View/Templates/Grid/EditButtonPanel.htm');
define('APEEL_GRID_SELECT_BUTTON_COLUMN_TEMPLATE'APEEL_BASE_FILE_PATH 'Application/View/Templates/Grid/SelectButtonPanel.htm');

// Export Template
define('APEEL_EXPORT_TEMPLATE'APEEL_BASE_FILE_PATH 'Application/View/Templates/Export/Export.html');

// Error Template
define('APEEL_ERROR_TEMPLATE'APEEL_BASE_FILE_PATH 'Application/View/Templates/Error/Template.html');

// Icons Folder
define('APEEL_ICONS_PATH'APEEL_BASE_FILE_PATH 'Framework/View/Icons/');

// Help Folder
define('APEEL_HELP_PATH'APEEL_BASE_FILE_PATH 'Application/View/Templates/Help/');

// CKEditor
define('APEEL_CKEDITOR_PATH'APEEL_BASE_URL_PATH 'Framework/Model/Vendor/CkEditor/');

// Security
define('APEEL_MASTER_USERNAME''guest');
define('APEEL_MASTER_PASSWORD''guest');
define('APEEL_USER_OBJECT''Staff');
define('APEEL_USER_NAME''staff.username');
define('APEEL_USER_PASSWORD''staff.password');
 
define('APEEL_PASSWORD_ENCRYPTION''SHA1');
define('APEEL_PASSWORD_SALT_PREFIX''');
define('APEEL_PASSWORD_SALT_SUFFIX''');

// Plugins
if (file_exists(APEEL_BASE_FILE_PATH 'Framework/Model/Vendor/Tcpdf/tcpdf.php')) {
    
define('APEEL_HAS_PDF_SUPPORT'1);
} else {
    
define('APEEL_HAS_PDF_SUPPORT'0);
}
if (
file_exists(APEEL_BASE_FILE_PATH 'Framework/Model/Vendor/PhpExcel/Classes/PHPExcel.php')) {
    
define('APEEL_HAS_ADVANCED_EXCEL_SUPPORT'1);
} else {
    
define('APEEL_HAS_ADVANCED_EXCEL_SUPPORT'0);
}
if (
file_exists(APEEL_BASE_FILE_PATH 'Framework/Model/Vendor/GeoIP/geoip.php')) {
    
define('APEEL_HAS_GEOIP_SUPPORT'1);
} else {
    
define('APEEL_HAS_GEOIP_SUPPORT'0);
}

// Specify Interface Language
include('Languages/English.php');

// Theme
define('APEEL_THEME''start');

?>

PHP Demo Source Code Index