Hi,
first I must say nice helo to everyone on this forum and apologise in front for any gramarye mistakes that i will make. I can speak ok english but writing is so so :), i will try my best :)
First I must say that the first impresion when i came to visit webmasterworld.com was whoooow. Clean, easy to use, very readable, Nice.
And what is my problem
Short description - I will be with out of my hair in couple of days becouse of one script that i can't get it to work with centos. It's working great in xamp enviroment but when you put it to real server admin section joust doesn't show up. I must say that i am complete "newbie" with php, I know css, html, ... but php is other world for me. Will start learn it just need some exstra time.
On net I found great script, called "adfreely" hope that admin wont be angry about link: [
phpkobo.com...]
that i woud like to use on my page, but just can't get it to work. When you install it on centos, everything is working whell. It makes databases successfully but when you run for example admin panel it doesn't work. Just blank white screen. I dont understand why is not working in centos, will much apriciated if someone can have a look and sugest what coud be the problem. The code of index.php - admin:
---------------------------------------------------
index.php ---------------------------------------------------
<?php
require( 'common.inc.php' );
$sys =& CVSystem::SetupSystem( $spec_sys_base );
$sys->SetUserType( UT_STAFF );
$sys->Run();
?>
---------------------------------------------------
common.inc.php ---------------------------------------------------
<?php
require( 'app/common.inc.php' );
require( 'include/common.inc.php' );
?>
---------------------------------------------------
app/common.inc.php ---------------------------------------------------
<?php
//----------------------------------------------------------------
// User Configuration Files
//----------------------------------------------------------------
require( dirname(__FILE__) . "/../../config/common.inc.php" );
//----------------------------------------------------------------
// System Platform
//----------------------------------------------------------------
require( dirname(__FILE__). "/../../codelib/sys/common.inc.php" );
//----------------------------------------------------------------
// Application Shared Code
//----------------------------------------------------------------
require( dirname(__FILE__). "/../../codelib/asc/common.inc.php" );
//----------------------------------------------------------------
// Resource
//----------------------------------------------------------------
require( _LANG_FILE_( "res.##LANG_CODE##.inc.php" ) );
//----------------------------------------------------------------
// PageSet
//----------------------------------------------------------------
require( 'cls_ps_base.inc.php' );
require( 'cls_ps_frame.inc.php' );
require( 'cls_ps_staff.inc.php' );
require( 'cls_ps_about.inc.php' );
require( 'cls_ps_cell.inc.php' );
//----------------------------------------------------------------
// HtmlMacro
//----------------------------------------------------------------
require( 'cls_hm_base.inc.php' );
//----------------------------------------------------------------
// Authorization
//----------------------------------------------------------------
require( 'cls_auth_base.inc.php' );
//----------------------------------------------------------------
// System
//----------------------------------------------------------------
require( 'cls_sys_base.inc.php' );
//-----------------------------------------------------------------------
// [END] StartUp Code
//-----------------------------------------------------------------------
?>
----------------------------------------
include/common.inc.php ----------------------------------------
<?php
// Path
//---------------------------------------------------------------
define( 'PATH_INCLUDE', dirname(__FILE__) . '/' );
//---------------------------------------------------------------
// HTML Macro
//---------------------------------------------------------------
define( 'INC_HTML_TAG', PATH_INCLUDE . 'tpl.html.tag.inc.php');
define( 'INC_HTML_HEADER', PATH_INCLUDE . 'tpl.html.header.inc.php');
define( 'INC_HTML_END', PATH_INCLUDE . 'tpl.html.end.inc.php');
//---------------------------------------------------------------
// Page Macro
//---------------------------------------------------------------
define( 'INC_BODY_HEADER', PATH_INCLUDE . 'tpl.body.header.inc.php');
define( 'INC_BODY_FOOTER', PATH_INCLUDE . 'tpl.body.footer.inc.php');
define( 'INC_BODY_INFO', PATH_INCLUDE . 'tpl.body.info.inc.php');
//---------------------------------------------------------------
// Form Macro
//---------------------------------------------------------------
define( 'INC_FORM_BEGIN', PATH_INCLUDE . 'tpl.form.begin.inc.php');
define( 'INC_FORM_END', PATH_INCLUDE . 'tpl.form.end.inc.php');
//---------------------------------------------------------------
// Box Macro
//---------------------------------------------------------------
define( 'INC_BOX_DEF_BEGIN', PATH_INCLUDE . 'tpl.box.def_begin.inc.php');
define( 'INC_BOX_DEF_END', PATH_INCLUDE . 'tpl.box.def_end.inc.php');
define( 'INC_BOX_END_MARKER', PATH_INCLUDE . 'tpl.box.end_marker.inc.php');
//---------------------------------------------------------------
// Search Result Macro
//---------------------------------------------------------------
define( 'INC_SR_TOP_BAR', PATH_INCLUDE . 'tpl.sr.top_bar.inc.php');
define( 'INC_SR_BOTTOM_BAR', PATH_INCLUDE . 'tpl.sr.bottom_bar.inc.php');
define( 'INC_SR_ID_PARAM', PATH_INCLUDE . 'tpl.sr.id_param.inc.php');
define( 'INC_SR_SELREC', PATH_INCLUDE . 'tpl.sr.selrec.inc.php');
define( 'INC_SR_SELREC_HEADER', PATH_INCLUDE . 'tpl.sr.selrec_header.inc.php');
define( 'INC_SR_EDIT_BTN', PATH_INCLUDE . 'tpl.sr.edit_btn.inc.php');
define( 'INC_SR_EDIT_BTN_HEADER', PATH_INCLUDE . 'tpl.sr.edit_btn_header.inc.php');
//---------------------------------------------------------------
// Detail Page Macro
//---------------------------------------------------------------
define( 'INC_DETAIL_VERB', PATH_INCLUDE . 'tpl.detail.verb.inc.php');
define( 'INC_DETAIL_LOG_INFO', PATH_INCLUDE . 'tpl.detail.log_info.inc.php');
define( 'INC_DETAIL_BUTTONS', PATH_INCLUDE . 'tpl.detail.buttons.inc.php');
define( 'INC_DETAIL_RETURN_BTN', PATH_INCLUDE . 'tpl.detail.return_btn.inc.php');
?>