Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include( 'config.php' );
- if (( !mysql_connect( $host, $dbusername, $dbpassword ) && !mysql_select_db( $db_name ) )) {
- exit( 'The Script isn\'t installed. Gor to <b><a href="install/install.php">Installation Process</a></b>' );
- }
- include( 'connect.php' );
- include( 'functions.php' );
- include( 'setting.php' );
- include( 'general.class.php' );
- if (!empty( $general_setting['script_theme'] )) {
- $theme_dir = $general_setting['script_theme'];
- }
- else {
- $theme_dir = 'default';
- }
- require_once( 'libs/Smarty.class.php' );
- $smarty = new Smarty( );
- $smarty->compile_dir = 'cache/';
- $smarty->template_dir = 'themes/' . $theme_dir;
- $smarty->force_compile = true;
- foreach ($setting_row as $key => $value) {
- $decode_value = unserialize( base64_decode( $value ) );
- if (!empty( $decode_value )) {
- foreach ($decode_value as $key2 => $value2) {
- $smarty->assign( $key . '_' . $key2, $value2 );
- }
- continue;
- }
- }
- $smarty->assign( 'ad_slot_1', $ad_slot_1 );
- $smarty->assign( 'ad_slot_2', $ad_slot_2 );
- $smarty->assign( 'ad_slot_3', $ad_slot_3 );
- if (strpos( file_get_contents( 'themes/' . $theme_dir . '/footer.html' ), 'pluscss.com' ) = false) {
- exit( 'you don\'t have permission to remove copyrights. <a href="http://www.pluscss.com/contact">Contact us if you want to remove the copyright link</a>' );
- }
- if (is_dir( 'install/' )) {
- exit( 'The <b>Install</b> folder is exists. Please delete the <b>Install</b> folder or rename it.' );
- }
- if (!empty( $general_setting['script_language'] )) {
- $language_dir = $general_setting['script_language'];
- }
- else {
- $language_dir = 'english';
- }
- include( 'languages/' . $language_dir . '/' . $language_dir . '.php' );
- $smarty->assign( 'language', $language );
- foreach ($language as $key => $value) {
- $smarty->assign( 'language_' . $key, $value );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment