Phpbb - need help

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #12) by badinfluence on Jun 11 2005, 02:35 AM. (Line Breaks Removed)
still problem. two things now.1stthis is your site addressCODEhttp://mapmakers.trap17.com/your phpbb should be in this mannerCODEhttp://mapmakers.trap17.com/forum/for the first time clean installation, you do not need to do anyting with mysql. just need to follow the steps in my second post.2ndif you have failed to install once(1st time) and wanna do clean installation again..go to cpanel ... read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > General > Hosted Members Area

Phpbb - need help

RUFIOKID
Umm im not sure if this is the right place to post this but i need the admins from trap17 to configure my forum to allow phpbb forums to work with it can it be done smile.gif?

Reply

badinfluence
i'm not a admin. but i think i can help this.
i'm not so sure about your question but i thought you are looking for a help to install the phpBB forum for you. actually, it's very easy.
in your cpanel > preinstalled scripts > phpBB > fill your name(in blank) > type the password(in blank) > forum(in blank). after that you will get a link
CODE
http://{cpanelusername}.trap17.com/forum/

sign in as the username you gave above. at the bottom of index page, find
CODE
Go to Administrator Panel

start click from "configuration" and setting it accordingly. you won't go too far.
trace my thread in my signature for more discussion about phpbb. smile.gif

Reply

RUFIOKID
I love you !!:D!!!!!!!

Reply

RUFIOKID
now i need help b/c i cant see php sad.gif

Reply

guangdian
just give me more details i will help you. what't the error display when you install it?

Reply

RUFIOKID
Just see a bunch of php codes like The submit but with echo and stuff and alot of crap do you wana see it? do you have aim or anything ill give you the link

Reply

RUFIOKID
This is all i see (sorry about double posting but i dont know how to edit.)


QUOTE
\n" ; // load the appropriate lang pack if ($language == 'english') { // make sure the lang file exists if (!file_exists('./lang_easymod.'.$phpEx)) { // display error message (obviously we can't use the lang system for this error) ;-) echo "CRITICAL ERROR: the lang_easymod.$phpEx file could not be found in the easymod directory. EasyMOD cannot be installed without this file present.\n" ; exit ; } include( './lang_easymod.'.$phpEx); } else { // make sure the lang file exists if (!file_exists('./lang_easymod.'.$phpEx)) { // display error message (obviously we can't use the lang system from this ;-) echo "CRITICAL ERROR: the lang_easymod.$phpEx file could not be found in the easymod directory. EasyMOD cannot be installed without this file present.\n" ; exit ; } include( './lang_easymod.'.$phpEx); } // --------- // FUNCTIONS // function wrapper_find( &$file_list, &$find_array, $search_array) { global $lang ; echo '' . $lang['EM_finding'] . ': ' ; for ( $i=0; $i
" ; } $result = perform_find( $file_list, $find_array, $search_array) ; handle_error($result, $file_list, true) ; } function wrapper_insert( &$file_list, &$find_array, $insert, $before) { global $lang ; echo '' . $lang['EM_insert'] . ' ' . (($before) ? $lang['EM_before'] : $lang['EM_after']) . ":
" ; $insert_string = '' ; for ($i=0; $i
\n" ; $insert_string .= $insert[$i] . "\r\n" ; } if ( $before) { write_files( $file_list, $insert_string) ; write_find_array( $find_array, $file_list) ; } else { write_find_array( $find_array, $file_list) ; write_files( $file_list, $insert_string) ; } $insert = array() ; } // special test for lang_admin.php to make sure the EM lines are already loaded function find_lang_admin( $find_str, &$fin, $close = false) { global $phpEx ; // if we've not opened the file yet, then do so if ($fin == NULL) { // if we can't open the file then we are in trouble, but we'll let the wrapper_find handle it if (!($fin = fopen( '../../../language/lang_english/lang_admin.'.$phpEx,'r'))) { return false ; } } // loop through file looking for match while (!feof($fin)) { // read a line and see if it contains our key $line = fgets( $fin, 4096) ; if (strstr($line, $find_str)) { // got a match so return true; close the file if we are supposed to if ($close) { fclose($fin) ; } return true ; } } // no match, close the file fclose($fin) ; return false ; } // performs a querry and returns a result, is able to draw dots, but not really needed here function _sql($sql, &$errored, &$error_ary, $echo_dot = true) { global $db; if( !($result = $db->sql_query($sql)) ) { $errored = true; $error_ary['sql'][] = ( is_array($sql) ) ? $sql[$i] : $sql; $error_ary['error_code'][] = $db->sql_error(); } if ( $echo_dot ) { echo '.'; flush(); } return $result; } /// /// start program proper /// $install_step = (isset($HTTP_POST_VARS['install_step'])) ? intval( $HTTP_POST_VARS['install_step']) : 1 ; $rescan = (isset($HTTP_POST_VARS['rescan'])) ? TRUE : FALSE ; if ( $rescan) { $install_step = 1 ; } // Mode setting if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode'])) { $mode = (isset($HTTP_POST_VARS['mode'])) ? htmlspecialchars($HTTP_POST_VARS['mode']) : htmlspecialchars($HTTP_GET_VARS['mode']); } else { $mode = '' ; } // check the case where display file on screen is sending a GET VAR if (($install_step == 1) && (isset($HTTP_GET_VARS['install_step']))) { // make sure the vars seem to match if (($HTTP_GET_VARS['install_step'] == 6) && (($mode == 'backup') || ($mode == 'file'))) { // check the password to make sure this is not someone getting around security $pw = (isset($HTTP_GET_VARS['pw'])) ? htmlspecialchars( $HTTP_GET_VARS['pw']) : '' ; $install_step = (md5($pw) == get_em_pw()) ? 6 : 1 ; } } // file access permissions $read_access = (isset($HTTP_POST_VARS['read_access'])) ? intval( $HTTP_POST_VARS['read_access']) : false ; $write_access = (isset($HTTP_POST_VARS['write_access'])) ? intval( $HTTP_POST_VARS['write_access']) : false ; $root_write = (isset($HTTP_POST_VARS['root_write'])) ? intval( $HTTP_POST_VARS['root_write']) : false ; $t

mp_write = (isset($HTTP_POST_VARS['tmp_write'])) ? intval( $HTTP_POST_VARS['tmp_write']) : false ; $chmod_access = (isset($HTTP_POST_VARS['chmod_access'])) ? intval( $HTTP_POST_VARS['chmod_access']) : false ; $unlink_access = (isset($HTTP_POST_VARS['unlink_access'])) ? intval( $HTTP_POST_VARS['unlink_access']) : false ; $mkdir_access = (isset($HTTP_POST_VARS['mkdir_access'])) ? intval( $HTTP_POST_VARS['mkdir_access']) : false ; $copy_access = (isset($HTTP_POST_VARS['copy_access'])) ? intval( $HTTP_POST_VARS['copy_access']) : false ; // file access settings $em_pass = (isset($HTTP_POST_VARS['em_pass'])) ? htmlspecialchars( $HTTP_POST_VARS['em_pass']) : '' ; $read = (isset($HTTP_POST_VARS['sel_read'])) ? htmlspecialchars( $HTTP_POST_VARS['sel_read']) : '' ; $write = (isset($HTTP_POST_VARS['sel_write'])) ? htmlspecialchars( $HTTP_POST_VARS['sel_write']) : '' ; $move = (isset($HTTP_POST_VARS['sel_move'])) ? htmlspecialchars( $HTTP_POST_VARS['sel_move']) : '' ; // ftp settings $ftp_user = (isset($HTTP_POST_VARS['ftp_user'])) ? htmlspecialchars( $HTTP_POST_VARS['ftp_user']) : '' ; $ftp_pass = (isset($HTTP_POST_VARS['ftp_pass'])) ? htmlspecialchars( $HTTP_POST_VARS['ftp_pass']) : '' ; $ftp_host = (isset($HTTP_POST_VARS['ftp_host'])) ? htmlspecialchars( $HTTP_POST_VARS['ftp_host']) : 'localhost' ; $ftp_debug = (isset($HTTP_POST_VARS['ftp_debug'])) ? intval( $HTTP_POST_VARS['ftp_debug']) : false ; $ftp_type = (isset($HTTP_POST_VARS['ftp_type'])) ? htmlspecialchars( $HTTP_POST_VARS['ftp_type']) : 'fsock' ; $ftp_cache = (isset($HTTP_POST_VARS['ftp_cache'])) ? intval( $HTTP_POST_VARS['ftp_cache']) : 0 ; $ftp_dir = (isset($HTTP_POST_VARS['ftp_dir'])) ? htmlspecialchars( $HTTP_POST_VARS['ftp_dir']) : '/' ; $ftp_dir = ( $ftp_dir == '') ? '/' : $ftp_dir ; $file_list = array() ; $phpBB_version = get_phpbb_version( $db) ; if ($phpBB_version == '') { handle_error( OPEN_FAIL_CRITICAL, $file_list, false, '' . $lang['EM_err_critical_error'] . ': ' . $lang['EM_err_phpbb_ver']) ; } /// /// display help in the new window requested /// if ( $mode == 'help') { page_header('moo', true) ; ?>
EasyMOD Installer Help
Ummm... - Still need to write the help ;-)

\n" ; page_footer() ; exit ; } // // download the modified files if that is what we are supposed to be doing // else if ( $mode == 'download') { $install_step = (isset($HTTP_POST_VARS['filename'])) ? htmlspecialchars( $HTTP_POST_VARS['filename']) : '' ; $body = (isset($HTTP_POST_VARS['body'])) ? htmlspecialchars( $HTTP_POST_VARS['body']) : '' ; header('Content-Type: text/x-delimtext; name="' . $filename . '"'); header('Content-disposition: attachment; filename=' . $filename . '"'); echo $body . "\n" ; exit; } /// /// gather setup parameters /// else if ( $install_step == 1) { $install_style = (isset($HTTP_GET_VARS['setup'])) ? ($HTTP_GET_VARS['setup'] == 'advanced') ? 'advanced' : 'simple' : 'simple' ; $substep = (isset($HTTP_POST_VARS['substep'])) ? htmlspecialchars( $HTTP_POST_VARS['substep']) : '' ; if ($substep != 'a' && $substep != 'b' && $substep != 'c') { $substep = '' ; } $option = (isset($HTTP_POST_VARS['option'])) ? htmlspecialchars( $HTTP_POST_VARS['option']) : '' ; if ($option != 'ftp' && $option != 'windoze' && $option != 'idunno' && $option != 'write_copy' && $option != 'post_process' && $option != 'manual' && $option != 'download' && $option != 'advanced') { $option = '' ; } // handle selection from main install screen (simple mode) if ( $substep == 'a') { // they said they have FTP, get the FTP settings if ( $option == 'ftp') { display_step1b_ftp() ; } // they said they have a window box, go straight to getting empw else if ( $option == 'windoze') { $read = 'server' ; $write = 'server' ; $move = 'copy' ; display_step1c_empw() ; } // they dunno... duh! duh! duh! else if ( $option == 'idunno') { display_step1b_idunno() ; } // should never happen else { display_step1_classic() ; } } else if ( $substep == 'b') { if ( $option == 'ftp') { display_step1b_ftp() ; } else if ( $option == 'write_copy') { $read = 'server' ; $write = 'server' ; $move = 'copy' ; display_step1c_empw() ; } else if ( $option == 'idunno') { display_step1_substep_b() ; } else if ( $option == 'post_process') { $read = 'server' ; $write = 'server' ; $move = 'exec' ; display_step1c_empw() ; } else if ( $option == 'manual') { $read = 'server' ; $write = 'server' ; $move = 'ftpm' ; display_step1c_empw() ; } else if ( $option == 'download') { $read = 'server' ; $write = 'local' ; $move = 'ftpm' ; display_step1c_empw() ; } else if ( $option == 'advanced') { display_step1_classic() ; } else { display_step1_classic() ; } } else if ( $substep == 'c') { display_step1c_empw() ; } else if ($install_style == 'advanced') { display_step1_classic() ; } else { display_step1_simple() ; } exit ; } // // confirm the file access settings // else if ( $install_step == 2) { page_header( $lang['EM_step2']) ; // confirm passwords match $em_pass_confirm = (isset($HTTP_POST_VARS['em_pass_confirm'])) ? htmlspecialchars( $HTTP_POST_VARS['em_pass_confirm']) : '' ; if ( $em_pass != $em_pass_confirm) { echo $lang['EM_err_pw_match'] . "
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } // // verify write access // echo '
' . $lang['EM_test_write'] . "
\n" ; $has_error = true ; // test writing to the server if ( $write == 'server') { // duh! they don't have write access! if (!$write_access) { echo $lang['EM_err_acc_write'] . "\n" ; } // they can't make dirs, so this is no good else if (!$mkdir_access) { echo $lang['EM_err_acc_mkdir'] . "\n" ; } // ok! else { $has_error = false ; } if ($has_error) { //////////// //////////// //////////// echo "

Write stuff about checking permissions and how to.
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } } // if buffer+ftp write we need to test FTP to make sure we can move the files into place else if ( $write == 'ftpb') { // test the FTP connection if (!test_ftp( $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_debug, $ftp_type, $ftp_cache)) { // FTP failed; print RESCAN button and then exit form_settings( $hidden, 3, '', true) ; exit ; } } // test to make sure the download feature will work; privmsg.php is the largest file so test with that else if ( $write == 'local') { // this will create a download button echo $lang['EM_confirm_download'] . "
\n" ; echo '
' . "\n" ; $button = '' . "\n" ; $button .= '' . "\n" ; echo $button ; echo "
\n" ; } else if ( $write == '') { //////// hard coded lang //////// also... what is the "3" in the error?? should be a defined constant echo "

Undefined write method.
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } echo '' . $lang['EM_confirm_write'] . "
\n" ; if ($write == 'server') { echo $lang['EM_confirm_write_server'] . "
\n" ; } else if ($write == 'ftpb') { echo $lang['EM_confirm_write_ftp'] . "
\n" ; } else if ($write == 'local') { echo $lang['EM_confirm_write_local'] . "
\n" ; } else if ($write == 'screen') { echo $lang['EM_confirm_write_screen'] . "
\n" ; } // // verify move access // echo '
' . $lang['EM_test_move'] . "
\n" ; $has_error = true ; // if they are doing an automated server move method, make sure they are writing to the server! if ( (($move == 'ftpa') || ($move == 'copy')) && !(($write == 'ftpb') || ($write == 'server')) ) { echo '

' . $lang['EM_err_no_write'] . "
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } // if they are using FTP to write the files, then make sure they are using it move as well else if (($write == 'ftpb') && ($move != 'ftpa')) { echo '

' . $lang['EM_ftp_sync1'] . "
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } else if (($write != 'ftpb') && ($move == 'ftpa')) { echo '

' . $lang['EM_ftp_sync2'] . "
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } // if they want automated FTP, make sure it works else if ( $move == 'ftpa') { // test the FTP connection if (!test_ftp( $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_debug, $ftp_type, $ftp_cache)) { // FTP failed; print RESCAN button and then exit form_settings( $hidden, 3, '', true) ; exit ; } } // if they selected copy access, make sure they actually have it (tards!!!) else if (( $move == 'copy') && ((!$copy_access) || (!$root_write))) { echo $lang['EM_err_copy'] . "
\n" ; //////////// //////////// //////////// //////////// echo "

Write stuff about checking permissions and how to.
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } else if ( $move == '') { //////// hard coded lang //////// also... what is the "3" in the error?? should be a defined constant echo "

Undefined move method.
\n" ; form_settings( $hidden, 3, '', true) ; exit ; } echo '' . $lang['EM_confirm_move'] . "
\n" ; if ($move == 'ftpa') { echo $lang['EM_confirm_move_ftp'] . "
\n" ; } else if ($move == 'copy') { echo $lang['EM_confirm_move_copy'] . "
\n" ; } else if ($move == 'exec') { echo $lang['EM_confirm_move_exec'] . "
\n" ; } else if ($move == 'ftpm') { echo $lang['EM_confirm_move_ftpm'] . "
\n" ; } $hidden = "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; form_settings( $hidden, 3, $lang['EM_install_EM'], true) ; page_footer() ; exit ; } /// /// process files /// else if ( $install_step == 3) { page_header( $lang['EM_step3'] ) ; echo "
" ; echo '
' . $lang['EM_processing_files'] . "
" ; // // setup the command file // // we will keep the command file as an array for now and then write it out later; we will reuse the settings data $command_file = new mod_io( 'post_process.sh', '', $read, $write, $move, $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_type, $ftp_cache) ; // // parse the admin language file and add module names // echo '' . $lang['EM_parsing'] . ': language/lang_english/lang_admin.php
' ; $file_list = array() ; // this is really more about moving the other files than is about the command file; establish the FTP connection // for moving files if necessary if (!$command_file->modio_prep('write', $ftp_debug)) { $command_file->err_msg = $lang['EM_trace'] . ': main[1]->' . $command_file->err_msg ; $error = '' . $lang['EM_err_critical_error'] . ':
' . $command_file->err_msg . "
\n" ; handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $error) ; } $result = open_files( 'lang_admin.'.$phpEx, 'language/lang_english/', $file_list, $command_file) ; // check for lang_german from Attachment MOD for ($i=0; $ierr_msg, 'lang_german')) { /// hard coded lang display_error('The file language/lang_german/lang_admin.php was not found. Do you have the German language pack installed? If not, then you should simply delete the language/lang_german directory and all the files inside of it. This problem is frequently caused by the popular Attachment MOD which can create a lang_german folder regardless of whether the language is present or not. If this is not the case, then visit our support forum for more help.') ; } } // bail if there is a problem handle_error($result, $file_list, false) ; ////////////// ////////////// once we get some translations, we can write the appropriate text per lang ////////////// $find_array = array() ; $search_array['module'] = array() ; $search_array['entries'] = array() ; $insert['module'] = array() ; $insert['entries'] = array() ; $inline_find = '' ; $inline_after = '' ; $fin = NULL ; // see if we need to add the main "MOD Center" module heading for the ACP if ( !find_lang_admin( '$lang[\'Modifications\']', $fin)) { $add_module = true ; $search_array['module'][] = "\$lang['Styles']" ; $insert['module'][] = '// EASYMOD-start' ; $insert['module'][] = "\$lang['Modifications'] = 'MOD Center';" ; $insert['module'][] = '// EASYMOD-end' ; $search_array['entries'][] = "\$lang['Restore_DB']" ; $insert['entries'][] = '// EASYMOD-start' ; $insert['entries'][] = "\$lang['MOD_ainstall'] = 'Install MODs';" ; $insert['entries'][] = "\$lang['MOD_settings'] = 'EasyMOD Settings';" ; $insert['entries'][] = "\$lang['MOD_history'] = 'EasyMOD History';" ; $insert['entries'][] = "\$lang['MOD_control_tag'] = '$easymod_install_version';" ; $insert['entries'][] = '// EASYMOD-end' ; } // we know at least the module entry exists; see which MOD Center options we need to add else { $fin = NULL ; // see if we need to add all the entires if (!find_lang_admin( '// EASYMOD-start', $fin)) { $search_array['entries'][0] = "\$lang['Restore_DB']" ; $insert['entries'][] = '// EASYMOD-start' ; $insert['entries'][] = "\$lang['MOD_ainstall'] = 'Install MODs';" ; $insert['entries'][] = "\$lang['MOD_settings'] = 'EasyMOD Settings';" ; $insert['entries'][] = "\$lang['MOD_history'] = 'EasyMOD History';" ; $insert['entries'][] = "\$lang['MOD_control_tag'] = '" . $easymod_install_version . "';" ; $insert['entries'][] = '// EASYMOD-end' ; } ////// ////// ////// check for subsquent lang_admin modifications here ////// ////// ////// // we know we have some entries, let's make sure the 0.0.8 ones are there else if (!find_lang_admin( '$lang[\'MOD_history\']', $fin)) { // didn't find the entry so add the four 0.0.8 entries (plus control tag) $search_array['entries'][0] = '// EASYMOD-start' ; $insert['entries'][] = "\$lang['MOD_ainstall'] = 'Install MODs';" ; $insert['entries'][] = "\$lang['MOD_settings'] = 'EasyMOD Settings';" ; $insert['entries'][] = "\$lang['MOD_history'] = 'EasyMOD History';" ; $insert['entries'][] = "\$lang['MOD_control_tag'] = '" . $easymod_install_version . "';" ; } // if the control tag is not there then add it else if (!find_lang_admin( '$lang[\'MOD_control_tag\']', $fin, true)) { $search_array['entries'][0] = '$lang[\'MOD_history\']' ; $insert['entries'][] = "\$lang['MOD_control_tag'] = '" . $easymod_install_version . "';" ; } // we'll modify the control to include this version else { $search_array['entries'][0] = '$lang[\'MOD_control_tag\']' ; $inline_find = '= \'' ; $inline_after = $easymod_install_version . ', ' ; } } // insert the module entry if necessary ("MOD Center") if (count($search_array['module']) > 0) { wrapper_find( $file_list, $find_array, $search_array['module']) ; wrapper_insert( $file_list, $find_array, $insert['module'], false) ; } echo "
\n" ; // insert the entries or atleast update the control tag $find_array = array() ; wrapper_find( $file_list, $find_array, $search_array['entries']) ; // add the lines if (count($insert['entries']) > 0) { wrapper_insert( $file_list, $find_array, $insert['entries'], false) ; } // update just the control tag line else { echo '' . $lang['EM_ifinding'] . ": $inline_find
\n" ; echo '' . $lang['EM_iafter'] . ": $inline_after
\n" ; $result = perform_inline_add( $find_array, $file_list, $inline_find, $inline_after, 'after'); handle_error($result, $file_list, true) ; write_find_array( $find_array, $file_list) ; } // finish writing the file if (!complete_file_reproduction( $file_list)) { // print an error and will halt processing; don't close files b/c we already have handle_error( OPEN_FAIL_CRITICAL, $file_list, false) ; } // create the admin/em_includes directory $command_file->modio_mkdirs_copy( 'admin/em_includes/') ; // terminate the FTP connection $command_file->modio_cleanup('write') ; echo "
" ; echo "
" ; echo '
' . $lang['EM_build_post'] . "
\n" ; $command_file->afile[] = 'copy includes/admin_easymod.php.txt ../../../admin/admin_easymod.php' ; $command_file->afile[] = 'copy em_includes/em_functions.php ../../../admin/em_includes/em_functions.php' ; $command_file->afile[] = 'copy em_includes/em_cipher.php ../../../admin/em_includes/em_cipher.php' ; $command_file->afile[] = 'copy em_includes/em_schema.php ../../../admin/em_includes/em_schema.php' ; $command_file->afile[] = 'copy em_includes/em_modio.php ../../../admin/em_includes/em_modio.php' ; $command_file->afile[] = 'copy em_includes/em_ftp.php ../../../admin/em_includes/em_ftp.php' ; $command_file->afile[] = 'copy em_includes/index.htm ../../../admin/em_includes/index.htm' ; ////////////// ////////////// once we get some translations, we can copy the proper files to where they should go ////////////// $lang_path = $phpbb_root_path . 'language/' ; $lang_files = get_lang_files( 'lang_main.' . $phpEx, 'language/lang_english/', $lang_path) ; for ($i=0; $iafile[] = "copy lang_easymod.$phpEx ../../../" . $lang_files[$i]['path'] . 'lang_easymod.' . $phpEx ; } $files = get_theme_files( 'index_body.tpl', 'templates/subSilver/admin/') ; $pics = get_theme_files( 'cellpic.gif', 'templates/subSilver/images/') ; for ($i=0; $iafile[] = 'copy includes/mod_complete.tpl ../../../' . $files[$i]['path'] . 'mod_complete.tpl' ; $command_file->afile[] = 'copy includes/mod_header.tpl ../../../' . $files[$i]['path'] . 'mod_header.tpl' ; $command_file->afile[] = 'copy includes/mod_history.tpl ../../../' . $files[$i]['path'] . 'mod_history.tpl' ; $command_file->afile[] = 'copy includes/mod_install.tpl ../../../' . $files[$i]['path'] . 'mod_install.tpl' ; $command_file->afile[] = 'copy includes/mod_login.tpl ../../../' . $files[$i]['path'] . 'mod_login.tpl' ; $command_file->afile[] = 'copy includes/mod_process.tpl ../../../' . $files[$i]['path'] . 'mod_process.tpl' ; $command_file->afile[] = 'copy includes/mod_settings.tpl ../../../' . $files[$i]['path'] . 'mod_settings.tpl' ; $command_file->afile[] = 'copy includes/mod_sql_body.tpl ../../../' . $files[$i]['path'] . 'mod_sql_body.tpl' ; $command_file->afile[] = 'copy includes/mod_preview.tpl ../../../' . $files[$i]['path'] . 'mod_preview.tpl' ; $command_file->afile[] = 'copy easymod.gif ../../../' . $pics[$i]['path'] . 'easymod.gif' ; $command_file->afile[] = 'copy includes/emc.gif ../../../' . $pics[$i]['path'] . 'emc.gif' ; } $hidden = "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; echo '' . $lang['EM_build_post_desc'] . ":\n" ; for ($i=0; $iafile); $i++) { echo $command_file->afile[$i] . "
\n" ; $hidden .= "afile[$i] . "\">\n" ; } $hidden .= "\n" ; form_settings( $hidden, 4, $lang['EM_complete_processing'], '') ; page_footer() ; } // // move the files into place and we are done! // else if ( $install_step == 4) { // if adding an option to a select field, get the field number $num_command_steps = ( isset($HTTP_POST_VARS['num_command_steps'])) ? intval($HTTP_POST_VARS['num_command_steps']) : 0 ; $command = array() ; for ( $i=0; $i<$num_command_steps; $i++) { $var_name = 'command_step' . $i ; if ( isset($HTTP_POST_VARS[$var_name])) { $command[] = htmlspecialchars( $HTTP_POST_VARS[$var_name]) ; } } page_header( $lang['EM_step4'] ) ; helpwin( 600, 500) ; /// /// Add the easymod table /// $sql = array(); switch ( SQL_LAYER ) { case 'mysql': case 'mysql4': $sql[] = "CREATE TABLE " . EASYMOD_TABLE . " ( mod_id mediumint(8) NOT NULL DEFAULT '0' auto_increment, mod_title varchar(50) NULL DEFAULT '', mod_file varchar(255) NULL DEFAULT '', mod_version varchar(15) NULL DEFAULT '', mod_author_handle varchar(25) NULL DEFAULT '', mod_author_email varchar(100) NULL DEFAULT '', mod_author_name varchar(100) NULL DEFAULT '', mod_author_url varchar(100) NULL DEFAULT '', mod_description text NULL DEFAULT '', mod_process_date int(11) NULL DEFAULT '0', mod_phpBB_version varchar(15) NULL DEFAULT '', mod_processed_themes varchar(200) NULL DEFAULT '', mod_processed_langs varchar(200) NULL DEFAULT '', mod_files_edited mediumint(8) NULL DEFAULT '0', mod_tables_added mediumint(8) NULL DEFAULT '0', mod_tables_altered mediumint(8) NULL DEFAULT '0', mod_rows_inserted mediumint(8) NULL DEFAULT '0', PRIMARY KEY (mod_id))" ; break ; case 'postgresql': $sql[] = "CREATE SEQUENCE " . EASYMOD_TABLE . "_mod_id_seq start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1" ; $sql[] = "CREATE TABLE " . EASYMOD_TABLE . " ( mod_id int4 NOT NULL DEFAULT nextval('phpbb_easymod_mod_id_seq'::text), CONSTRAINT PK_phpbb_easymod PRIMARY KEY (mod_id), mod_title varchar(50) NULL DEFAULT '', mod_file varchar(255) NULL DEFAULT '', mod_version varchar(15) NULL DEFAULT '', mod_author_handle varchar(25) NULL DEFAULT '', mod_author_email varchar(100) NULL DEFAULT '', mod_author_name varchar(100) NULL DEFAULT '', mod_author_url varchar(100) NULL DEFAULT '', mod_description text NULL DEFAULT '', mod_process_date int4 NULL DEFAULT '0', mod_phpBB_version varchar(15) NULL DEFAULT '', mod_processed_themes varchar(200) NULL DEFAULT '', mod_processed_langs varchar(200) NULL DEFAULT '', mod_files_edited int4 NULL DEFAULT '0', mod_tables_added int4 NULL DEFAULT '0', mod_tables_altered int4 NULL DEFAULT '0', mod_rows_inserted int4 NULL DEFAULT '0' )" ; break ; case 'mssql-odbc': case 'mssql': /* $sql[] = " BEGIN TRANSACTION GO" ; */ $sql[] = "CREATE TABLE [" . EASYMOD_TABLE . "] ( [mod_id] [int] IDENTITY (1, 1) NOT NULL, [mod_title] [varchar] (50) NULL, [mod_file] [varchar] (255) NULL, [mod_version] [varchar] (15) NULL, [mod_author_handle] [varchar] (25) NULL, [mod_author_email] [varchar] (100) NULL, [mod_author_name] [varchar] (100) NULL, [mod_author_url] [varchar] (100) NULL, [mod_description] [varchar] (255) NULL, [mod_process_date] [int] NULL, [mod_phpBB_version] [varchar] (15) NULL, [mod_processed_themes] [varchar] (200) NULL, [mod_processed_langs] [varchar] (200) NULL, [mod_files_edited] [int] NULL, [mod_tables_added] [int] NULL, [mod_tables_altered] [int] NULL, [mod_rows_inserted] [int] NULL ) ON [PRIMARY];" ; //GO" ; $sql[] = "ALTER TABLE [" . EASYMOD_TABLE . "] WITH NOCHECK ADD CONSTRAINT [PK_phpbb_easymod] PRIMARY KEY CLUSTERED ( [mod_id] ) ON [PRIMARY]" ; //GO" ; // CONSTRAINT [DF_phpbb_easymod_mod_id] DEFAULT ('0') FOR [mod_id], $sql[] = "ALTER TABLE [" . EASYMOD_TABLE . "] WITH NOCHECK ADD CONSTRAINT [DF_phpbb_easymod_mod_title] DEFAULT ('') FOR [mod_title], CONSTRAINT [DF_phpbb_easymod_mod_file] DEFAULT ('') FOR [mod_file], CONSTRAINT [DF_phpbb_easymod_mod_version] DEFAULT ('') FOR [mod_version], CONSTRAINT [DF_phpbb_easymod_mod_author_handle] DEFAULT ('') FOR [mod_author_handle], CONSTRAINT [DF_phpbb_easymod_mod_author_email] DEFAULT ('') FOR [mod_author_email], CONSTRAINT [DF_phpbb_easymod_mod_author_name] DEFAULT ('') FOR [mod_author_name], CONSTRAINT [DF_phpbb_easymod_mod_author_url] DEFAULT ('') FOR [mod_author_url], CONSTRAINT [DF_phpbb_easymod_mod_description] DEFAULT ('') FOR [mod_description], CONSTRAINT [DF_phpbb_easymod_mod_process_date] DEFAULT ('0') FOR [mod_process_date], CONSTRAINT [DF_phpbb_easymod_mod_phpBB_version] DEFAULT ('') FOR [mod_phpBB_version], CONSTRAINT [DF_phpbb_easymod_mod_processed_themes] DEFAULT ('') FOR [mod_processed_themes], CONSTRAINT [DF_phpbb_easymod_mod_processed_langs] DEFAULT ('') FOR [mod_processed_langs], CONSTRAINT [DF_phpbb_easymod_mod_files_edited] DEFAULT ('0') FOR [mod_files_edited], CONSTRAINT [DF_phpbb_easymod_mod_tables_added] DEFAULT ('0') FOR [mod_tables_added], CONSTRAINT [DF_phpbb_easymod_mod_tables_altered] DEFAULT ('0') FOR [mod_tables_altered], CONSTRAINT [DF_phpbb_easymod_mod_rows_inserted] DEFAULT ('0') FOR [mod_rows_inserted]" ; // GO" ; /* $sql[] = "COMMIT GO" ; */ break ; case 'msaccess': $sql[] = "CREATE TABLE " . EASYMOD_TABLE . " ( mod_id COUNTER NOT NULL CONSTRAINT PK_phpbb_easymod PRIMARY KEY, mod_title TEXT(50) NULL, mod_file TEXT(255) NULL, mod_version TEXT(15) NULL, mod_author_handle TEXT(25) NULL, mod_author_email TEXT(100) NULL, mod_author_name TEXT(100) NULL, mod_author_url TEXT(100) NULL, mod_description MEMO NULL, mod_process_date INTEGER NULL, mod_phpBB_version TEXT(15) NULL, mod_processed_themes TEXT(200) NULL, mod_processed_langs TEXT(200) NULL, mod_files_edited INTEGER NULL, mod_tables_added INTEGER NULL, mod_tables_altered INTEGER NULL, mod_rows_inserted INTEGER NULL )" ; break ; default: die("No DB LAYER found!"); break; } echo '
' . $lang['EM_add_db'] . "
\n"; // if the EM table already exists, then don't bother making it again $test_sql = "SELECT * FROM " . EASYMOD_TABLE ; if ( $result = $db->sql_query($test_sql)) { echo '

' . $lang['EM_progress'] . ' :: ' . $lang['EM_done'] . ' - ' . $lang['EM_already_exist'] . "
\n" ; } // we need to create the table else { echo '' . $lang['EM_exec_sql'] . ': ' ; for($i = 0; $i < count($sql); $i++) { echo "$sql[$i]
\n" ; } echo '

' . $lang['EM_progress'] . ' :: '; flush(); $error_ary = array(); $errored = false; for($i = 0; $i < count($sql); $i++) { _sql($sql[$i], $errored, $error_ary); } echo ' ' . $lang['EM_done'] . '
' . $lang['EM_result'] . "  :: \n"; if ( $errored ) { echo ' ' . $lang['EM_failed_sql'] . "\n

    * "; for($i = 0; $i < count($error_ary['sql']); $i++) { echo '' . $lang['EM_err_error'] . ' :: ' . $error_ary['error_code'][$i]['message'] . "
      \n"; echo "SQL  :: " . $error_ary['sql'][$i] . "

      \n"; } echo "

\n

" . $lang['EM_no_worry'] . "
\n"; } else { echo '' . $lang['EM_no_errors'] . "\n"; } } echo "
" ; echo "
" ; echo "
\n" ; // // move the files into place and create the manual post-process script // echo '
' . $lang['EM_complete_post'] . "
\n"; // we will keep the command file as an array for now and then write it out later; we will reuse the settings data $command_file = new mod_io( 'post_process.sh', '', $read, $write, $move, $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_type, $ftp_cache) ; $command_bat = new mod_io( 'post_process.bat', '', $read, $write, $move, $ftp_user, $ftp_pass, $ftp_dir, $ftp_host, $ftp_type, $ftp_cache) ; // open the command file: config=true,command=true if (( !$command_file->modio_open(true)) || ( !$command_bat->modio_open(true))) { $command_file->err_msg = $lang['EM_trace'] . ': main[1b]->' . $command_file->err_msg ; $error = '
' . $lang['EM_err_open_pp'] . '
' . $command_file->err_msg . "
\n" ; // handle_error( OPEN_FAIL_CRITICAL, $file_list, false, '
' . $lang['EM_err_open_pp'] . "
\n") ; handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $error) ; } // this is really more about moving the other files than is about the command file; establish the FTP connection // for moving files if necessary if (!$command_file->modio_prep('move', $ftp_debug)) { $command_file->err_msg = $lang['EM_trace'] . ': main[2]->' . $command_file->err_msg ; handle_error( OPEN_FAIL_CRITICAL, $file_list, false, '' . $lang['EM_err_critical_error'] . ':
' . $command_file->err_msg . "
\n") ; } // transfer FTP attributes to the bat file $command_bat->emftp = $command_file->emftp ; $bu_list = array() ; $mv_list = array() ; $mod_count = 0 ; // execute the move! for ($i=0; $i<$num_command_steps; $i++) { $parms = explode(' ', $command[$i]) ; if ( $parms[0] == 'copy') { // write to the post-process script $command_file->modio_write( 'cp ' . $parms[1] . ' ' . $parms[2] . "\n") ; $command_bat->modio_write( str_replace('/', "\\", $command[$i]) . "\r\n") ; $split_from = explode('/', $parms[1]) ; $split_to = explode('/', $parms[2]) ; // set vars depending if this is a backup or a download file if ($split_to[0] == 'backups') { $from = $parms[1] ; $to = $parms[2] ; $type = $lang['EM_pp_backup'] ; $is_backup = true ; $link = 'easymod_install.' . $phpEx . '?install_step=6&mode=backup&pw=' . $em_pass . '&file=' . $parms[1] ; } else { $from = (strstr($parms[1],$install_path . 'processed/')) ? substr($parms[1],strlen($install_path . 'processed/')) : $parms[1] ; $to = $parms[2] ; $type = $lang['EM_pp_download'] ; $is_backup = false ; $link = 'easymod_install.' . $phpEx . '?install_step=6&mode=file&pw=' . $em_pass . '&file=' . $parms[2] ; } /////////////////////// /////////////////////// using the $installer hack to get around a problem; need to fix correctly /////////////////////// // now the magic happens ;-) $ret_value = $command_file->modio_move( $parms[2], $parms[1], $mod_count, $link, $type, true) ; $mod_count++ ; // if there is no return value then that means it didn't work; print the err_msg and bail if ($ret_value == '') { $command_file->err_msg = $lang['EM_trace'] . ': main[3]->' . $command_file->err_msg ; // if this is the first file in the chain and it fails, then halt processing altogether if ($i == 1) { handle_error( OPEN_FAIL_CRITICAL, $file_list, false, '' . $lang['EM_err_critical_error'] . ':
' . $command_file->err_msg ) ; } // otherwise print and error and continue on else { echo '' . $lang['EM_err_critical_error'] . ':
' . $command_file->err_msg . '
' . $lang['EM_err_attempt_remainder'] . "


\n" ; } } // move was a success, display the output else { // if the destination is a backup, then list it as such if ($is_backup) { $ret_value .= '' . "\n" ; $bu_list[] = '' . $lang['EM_pp_backup'] . '' . $from . '' . $ret_value . "\n" ; } // list the file else { // we are only downloading modified files; not ones included with the MOD if (!(strstr($parms[1],$install_path . 'processed/')) && ($ret_value != '' . $lang['EM_pp_complete'] . '') && ($ret_value != '' . $lang['EM_pp_ready'] . '')) { $ret_value = '' . $lang['EM_pp_manual'] . '' ; } // if its a download then append the mode else if (strstr($ret_value, ''."\n" ; } $mv_list[] = '' . $from . '' . $to . '' . $ret_value . "\n" ; } } } } // setup the form (whether needed or not) echo '
' . "\n" ; // print the backup list echo '' . "\n" ; echo '' . "\n" ; for ($i=0; $i
' . sprintf( $lang['EM_pp_backups'], $install_path . 'backups/') . '

\n" ; // print the move list echo '' . "\n" ; echo '\n" ; for ($i=0; $i
' . sprintf( $lang['EM_pp_from'], $install_path . 'processed/') . ' ' . $lang['EM_pp_to'] . ' ' . $lang['EM_pp_status'] . "
\n" ; // finish the form echo '' . "\n" ; echo '' . "\n" ; echo "
\n" ; // finish the script generation if ((!$command_file->modio_close( true)) || (!$command_bat->modio_close( true))) { $command_file->err_msg = $lang['EM_trace'] . ': main[4]->' . $command_file->err_msg ; $error = '
' . $lang['EM_err_write_pp'] . '
' . $command_file->err_msg . "
\n" ; // handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $lang['EM_err_write_pp'] ) ; handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $error ) ; } // cleanup, this is really just for FTP so far $command_file->modio_cleanup('move') ; $hidden = "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; $hidden .= "\n" ; echo "
\n" ; // print a warning if they aren't using an automated move method if (($move != 'copy') && ($move != 'ftpa')) { echo $lang['EM_move_files'] . "
\n" ; } form_settings( $hidden, 7, $lang['EM_confirm'], false) ; page_footer() ; exit ; } // test download file capability else if ( $install_step == 5) { header('Content-Type: text/x-delimtext; name="privmsg.'.$phpEx . '"'); header('Content-disposition: attachment; filename="privmsg.'.$phpEx . '"'); $file_test = new mod_io( 'privmsg.'.$phpEx, '', 'server', 'local', 'ftpm', '', '', '', $ftp_host, $ftp_type, $ftp_cache) ; $file_test->modio_open() ; // replicate the file while (!feof($file_test->pread_file)) { echo fgets( $file_test->pread_file, 4096); } // close the file $file_test->modio_close() ; exit ; } // // download a file or backup // else if ( $install_step == 6) { $on_screen = false ; // if we have a proper mode through GET VAR, then we are displaying to screen if (($mode == 'backup') || ($mode == 'file')) { $file = ( isset($HTTP_GET_VARS['file'])) ? htmlspecialchars($HTTP_GET_VARS['file']) : '' ; $on_screen = true ; } // otherwise we are downloading a file else { // they clicked a form button; we need to figure out which one so we know what file they are looking for $num_files = ( isset($HTTP_POST_VARS['mod_count'])) ? intval($HTTP_POST_VARS['mod_count']) : 0 ; // loop through all the submit buttons to see which one was pressed for ( $i=0; $i<=$num_files; $i++) { // if this is the button that was pressed then we are all set! get the file name $var_name = 'submitfile' . $i ; if ( isset($HTTP_POST_VARS[$var_name])) { $file = ( isset($HTTP_POST_VARS['file'.$i])) ? htmlspecialchars($HTTP_POST_VARS['file'.$i]) : '' ; $mode = ( isset($HTTP_POST_VARS['mode'.$i])) ? htmlspecialchars($HTTP_POST_VARS['mode'.$i]) : '' ; break ; } } } // we'll need to look at the path and filename so split things up $split = explode('/', $file) ; // if a file, then make sure we have the filename correct if ($mode == 'file') { // by default the filename sent will match the one in the MOD script $process_file = (substr($file, 0, 9) == '../../../') ? substr($file, 9) : '' ; $orig_file = $process_file ; // handle the special cases of a template file to download; only subSilver will appear in the MOD script if (($split[3] == 'templates') && ($split[4] != 'subSilver')) { $process_file = str_replace( $split[4], 'subSilver', $process_file) ; } // handle the special cases of a language file to download; only english will appear in the MOD script else if (($split[3] == 'language') && ($split[4] != 'lang_english')) { $process_file = str_replace( $split[4], 'lang_english', $process_file) ; } } // if a backup then we can assume the filename is valid else { $process_file = $file ; $orig_file = $process_file ; } // if there is no file to process then we are in trouble! if ( $process_file == '') { // just print a Plain Jane error, not all the debug info echo $lang['EM_err_no_process_file'] . "\n" ; exit ; } // set up the screen for display if ($on_screen) { echo "

\n" ;
}

// set up the redirects so we will download a file, the contents of which we will echo out
else
{
  header('Content-Type: text/x-delimtext; name="' . $split[count($split)-1] . '"');
  header('Content-disposition: attachment; filename="' . $split[count($split)-1] . '"');
}


// for a backup just dump out the file
if ($mode == 'backup')
{
  // open the core file
  if (!$read_file = fopen ( $process_file, 'r'))
  {
  // gotta echo out the message since message_die is not an option
  echo sprintf( $lang['EM_err_backup_open'], $process_file) . "\n" ;
  exit ;
  }

  // write out the lines
  while (!feof($read_file))
  {
  $newline = fgets( $read_file, 4096);
  if ($on_screen)
  {
    echo htmlspecialchars($newline) ;
  }
  else
  {
    echo $newline ;
  }
  }
  fclose( $read_file) ;
}
else
{
  $command_file = new mod_io( 'temp.sh', '', 'server', 'local', 'ftpm', '', '', '', $ftp_host, $ftp_type, $ftp_cache) ;


  //
  // parse the admin language file and add module names
  //

  $file_list = array() ;
  $result = open_files( 'lang_admin.php', 'language/lang_english/', $file_list, $command_file) ;
  handle_error($result, $file_list, false) ;
//////////////
////////////// once we get some translations, we can write the appropriate text per lang
//////////////


  $find_array = array() ;
  $search_array = array() ;
  $search_array[] = "\$lang['Styles']" ;
  $result = perform_find( $file_list, $find_array, $search_array) ;
  handle_error($result, $file_list, true) ;

  $insert  = "// EASYMOD-start\n" ;
  $insert .= "\$lang['Modifications'] = 'MOD Center';\n" ;
  $insert .= "// EASYMOD-end\n" ;
  write_find_array( $find_array, $file_list) ;
  write_files( $file_list, $insert) ;


  $find_array = array() ;
  $search_array = array() ;
  $search_array[] = "\$lang['Restore_DB']" ;
  $result = perform_find( $file_list, $find_array, $search_array) ;
  handle_error($result, $file_list, true) ;

///////////////
/////////////// this should be doing all the checks done when building the lines
///////////////
  $insert  = "// EASYMOD-start\n" ;
  $insert .= "\$lang['MOD_ainstall'] = 'Install MODs';\n" ;
  $insert .= "\$lang['MOD_settings'] = 'EasyMOD Settings';\n" ;
  $insert .= "\$lang['MOD_history'] = 'EasyMOD History';\n" ;
  $insert .= "\$lang['MOD_control_tag'] = '" . $easymod_install_version . "';\n" ;
  $insert .= "// EASYMOD-end\n" ;
  write_find_array( $find_array, $file_list) ;
  write_files( $file_list, $insert) ;

  // unlikely that we will get a close error
  complete_file_reproduction( $file_list) ;

  // make sure we have the right file
  for ($file=0; $filepath . $file_list[$file]->filename))
  {
    continue ;
  }

  // write out the lines
  for ($i=0; $iafile); $i++)
  {
    if ($on_screen)
    {
    echo htmlspecialchars($file_list[$file]->afile[$i]) ;
    }
    else
    {
    echo $file_list[$file]->afile[$i] ;
    }
  }

  // done! done! done!
  exit ;
  }

  // didn't find the file!  OH CRAP!
  echo $lang['EM_err_modify'] . "\n" ;
}

// do a little clean up
if ($on_screen)
{
  echo "

\n" ; } exit ; } // confirmation else if ($install_step == 7) { page_header( $lang['EM_step5']) ; // if the error message is not empty after our tests, then we won't complete the install $error = '' ; // // confirm additions to lang_admin.php; the control tag ensures the changes from THIS version are present // echo '
' . $lang['EM_confirming_mod'] . "
\n"; // let 'em know what we are doing echo '' . $lang['EM_confirm_lang'] . ': $lang[\'MOD_control_tag\'] = \'' . $easymod_install_version . "
\n" ; // open lang_admin.php for reading $found = false ; if ($fin = fopen('../../../language/lang_english/lang_admin.'.$phpEx, 'r')) { // loop through file looking for key while (!feof( $fin)) { // read a line and see if it contains our key $line = fgets( $fin, 4096) ; if (strstr($line, '$lang[\'MOD_control_tag\'] = \'' . $easymod_install_version)) { // print success and break out $found = true ; echo '' . $lang['EM_confirmed'] . "
\n" ; break ; } } fclose( $fin) ; // if failed mark it and display error if (!$found) { $error = $lang['EM_err_find'] . ' $lang[\'MOD_control_tag\'] = \'' . $easymod_install_version . ' in [language/lang_english/lang_admin.php].' ; display_error( $error) ; } } else { $error = sprintf( $lang['EM_modio_open_read'], 'language/lang_english/lang_admin.php') ; display_error( $error) ; } // // confirm admin_easymod.php is in place and correct version // // let 'em know what we are doing echo '

' . $lang['EM_confirm_admin'] . ': admin_easymod.php,v ' . $easymod_install_version . "
\n" ; // open admin_easymod.php for reading $found = false ; if ($fin = fopen('../../admin_easymod.'.$phpEx, 'r')) { // loop through file looking for key while (!feof( $fin)) { // read a line and see if it contains our key $line = fgets( $fin, 4096) ; if (strstr($line, 'admin_easymod.php,v ' . $easymod_install_version)) { // print success and break out $found = true ; echo '' . $lang['EM_confirmed'] . "
\n" ; break ; } } fclose( $fin) ; // if failed mark it and display error if (!$found) { $error = $lang['EM_err_find'] . ' admin_easymod.php,v ' . $easymod_install_version . ' in [admin/admin_easymod.php].' ; display_error( $error) ; } } else { $error = sprintf( $lang['EM_modio_open_read'], 'admin/admin_easymod.php') ; display_error( $error) ; } // // confirm mod_install.tpl is in place // // let 'em know what we are doing echo '

mod_install.tpl: ' . $lang['EM_confirm_exist'] . "
\n" ; // see if the file exists if (file_exists('../../../templates/subSilver/admin/mod_install.tpl')) { // print success echo '' . $lang['EM_confirmed'] . "
\n" ; } else { // if failed mark it and display error $error = $lang['EM_err_find'] . ' [templates/subSilver/admin/mod_install.tpl].' ; display_error( $error) ; } // // if failed, display debug info and break out // if ($error != '') { // tell them that EM is not properly installed and they will need to fix the above errors echo '

' . $lang['EM_confirm_failed'] . "
\n" ; echo '' . $lang['EM_confirm_fix'] . "


\n" ; // display debug display_debug_info( $error) ; echo "
\n" ; // get us out of here! exit ; } // // if all in order, update the db to reflect that // echo "
\n" ; echo "
\n" ; echo "
\n" ; echo '
' . $lang['EM_update_db'] . "
\n"; // update our EM config info echo '' . $lang['EM_store_entries'] . ": " ; // see if we have already made the EM entries $sql = "SELECT * FROM " . CONFIG_TABLE . " WHERE config_name = 'EM_version'" ; if ( !($result = $db->sql_query($sql)) ) { handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $lang['EM_err_config_table']) ; } $rows = $db->sql_numrows($result); $db->sql_freeresult($result); // added security starting in 0.0.11, md5 the em pass $em_md5 = md5($em_pass) ; // added security starting in 0.0.11, blowfish encrypt the ftp_pass include($phpbb_root_path . $script_path . '/em_includes/em_cipher.php') ; $cipher = new Cipher_BlockMode_cbc(); $cipher->blowfish->setKey( $em_pass); $ftp_cipher = $cipher->encrypt($ftp_pass) ; // if not, add the fields if ( $rows == 0) { em_db_insert( 'EM_version', $easymod_install_version) ; em_db_insert( 'EM_password', $em_md5) ; em_db_insert( 'EM_read', $read) ; em_db_insert( 'EM_write', $write) ; em_db_insert( 'EM_move', $move) ; em_db_insert( 'EM_ftp_dir', $ftp_dir) ; em_db_insert( 'EM_ftp_user', $ftp_user) ; em_db_insert( 'EM_ftp_pass', $ftp_cipher) ; em_db_insert( 'EM_ftp_host', $ftp_host) ; em_db_insert( 'EM_ftp_type', $ftp_type) ; em_db_insert( 'EM_ftp_cache', $ftp_cache) ; } // if so, update the settings else { em_db_update( 'EM_version', $easymod_install_version) ; em_db_update( 'EM_password', $em_md5) ; em_db_update( 'EM_read', $read) ; em_db_update( 'EM_write', $write) ; em_db_update( 'EM_move', $move) ; em_db_update( 'EM_ftp_dir', $ftp_dir) ; em_db_update( 'EM_ftp_user', $ftp_user) ; em_db_update( 'EM_ftp_pass', $ftp_cipher) ; // 0.0.10a and later see if we have already made the EM_ftp_host field if (!add_new_config('EM_ftp_host', $ftp_host)) { handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $lang['EM_err_config_table']) ; } // 0.0.10c and later see if we have already made the EM_ftp_type field if (!add_new_config('EM_ftp_type', $ftp_type)) { handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $lang['EM_err_config_table']) ; } // 0.0.12 and later see if we have already made the EM_ftp_cache field if (!add_new_config('EM_ftp_cache', $ftp_cache)) { handle_error( OPEN_FAIL_CRITICAL, $file_list, false, $lang['EM_err_config_table']) ; } } echo '' . $lang['EM_done'] . "
\n" ; echo "
\n" ; /// /// Make an update to the EM table /// unset($sql); $error_ary = array(); $errored = false; $sql = 'INSERT INTO ' . EASYMOD_TABLE . " ( mod_title, mod_file, mod_version, mod_author_handle, mod_author_email, mod_author_name, mod_author_url, mod_description, mod_process_date, mod_phpBB_version, mod_processed_themes, mod_processed_langs, mod_files_edited, mod_tables_added, mod_tables_altered, mod_rows_inserted) VALUES ( 'EasyMOD', 'easymod/easymod_install." . $phpEx . "', '$easymod_install_version', 'Nuttzy', 'pktoolkit@blizzhackers.com', 'n/a', 'http://www.blizzhackers.com', 'EasyMOD automatically perfoms in seconds which previously required the tedious task of manually editing files.', " . time() . ", '$phpBB_version', '" . get_themes() . "', '" . get_languages( '../../../language') . "', 0, 1, 0, 1)"; echo '' . $lang['EM_exec_sql'] . ": $sql
\n" ; echo '

' . $lang['EM_progress'] . ' :: '; flush(); _sql($sql, $errored, $error_ary); echo ' ' . $lang['EM_done'] . '
' . $lang['EM_result'] . "  :: \n"; if ( $errored ) { echo ' ' . $lang['EM_failed_sql'] . "\n

    * "; for($i = 0; $i < count($error_ary['sql']); $i++) { echo '' . $lang['EM_err_error'] . ' :: ' . $error_ary['error_code'][$i]['message'] . "
      \n"; echo "SQL  :: " . $error_ary['sql'][$i] . "

      \n&q

 

 

 


Reply

mama_soap
Oops... I think the installation didn't quite go off as smoothly as it should have. I haven't gone through the entire error code yet, but perhaps you can elaborate on exactly what you did? Those easyMOD errors shouldn't show up unless you tried to install it - did you download and try to install easyMOD? If yes, then we probably need to know what exactly you did...

Reply

RUFIOKID
i did nothing it came with the server its like that for every intalltion php file

Reply

badinfluence
strange that you said! basic installation of phpbb shouldn't show those. you can see, there is bugging a lot of EasyMOD error.. pls provide more about your link and what you did it to till now. so that we can help you much more and effectively.

Reply

Latest Entries

badinfluence
still problem. two things now.

1st
this is your site address
CODE
http://mapmakers.trap17.com/

your phpbb should be in this manner
CODE
http://mapmakers.trap17.com/forum/


for the first time clean installation, you do not need to do anyting with mysql. just need to follow the steps in my second post.

2nd
if you have failed to install once(1st time) and wanna do clean installation again..

go to cpanel > preinstalled scripts > phpBB > Remove an existing Installation > press remove
go to cpanel > site management tools > MySQL Databases > {check if is there any phpbb database or user; if yes , delete all else back to cpanel index} follow the new installation procedure again.

this picture is for graphical explaination about basic phpBB setup by using preinstalled script..

user posted image

try again,
smile.gif

Reply

RUFIOKID
classic and its kinda wierd to explain why it wont work

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Similar Topics

Keywords : phpbb

  1. Phpbb Mods That You Should Get For Your Phpbb3 Forum - only for phpBB3.0.x though... (9)
  2. Got A Great Phpbb File With Mods Already Installed? - If you do put it here. (3)
    As the name implies, I think it would be a good idea to giving those who aren't really "mod
    savvy" a chance to look at what phpBB's could look like with some regular mods installed. If
    this thread is innappropriate I'll be glad to delete it away or rather, I give permission to
    have it deleted if it isn't appropriate....
  3. Can't Install Phpbb! - Help! (21)
    I am getting very frustrated as I cannot for the life of me figure out how to install phpbb
    completely. I've uploaded all the files using FTPSmart. I think clicked on the install.php
    fine, and was taken to the screen where I fill everything out. It says I successfully did all that:
    Your admin username has been created. At this point your basic installation is complete. You will
    now be taken to a screen which will allow you to administer your new installation. Please be sure to
    check the General Configuration details and make any required changes. Thank you for ch...
  4. Installing Phpbb Forum On My Site? - (5)
    Hello! I was just wondering how I go about installing the phpbb forum on my site. I assume I
    go somewhere from the CPanel? I think someone told me that the CPanel has something that installs
    it for me automatically. Thank you!...
  5. Installing Phpbb - database problem (0)
    Hey guy's, ive done as you said and tried to install my phpbb without fantastico. I have got to
    the the install page then i get a mysql error QUOTE Warning: mysql_error(): supplied argument
    is not a valid MySQL-Link resource in /home/tdm/public_html/forum/phpBB2/db/mysql4.php on line 330
    Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in
    /home/tdm/public_html/forum/phpBB2/db/mysql4.php on line 331 phpBB : Critical Error Could not
    connect to the database Im not sure why this has happened as i have never really used mysql for
    ...
  6. Help Installing Phpbb On My Site [resolved] - (6)
    Ok, i am hosted here and i am trying to get the phpBB2 forums installed on my site. I have made a
    database, i have uploaded all of the folders to the FTP. Now everytime i try to start the install,
    it either says that there is a critical error, and that i have configured something wrong. Does
    anybody know the Database Type i need to use? And any other help that you could tell me would be
    appreciated. Thanks....
  7. Subforums In Phpbb - (8)
    I want to create Subforums in PhpBB forum just like in IPB forums, but I didnt find any options
    please help me do that....
  8. Phpbb Forum Problem - (3)
    ok, well when i went to my forums here it says phpBB : Critical Error Could not connect to the
    database whats happened? it was working great last night. thanks...
  9. Phpbb Plus, How To Setup Mailing - I badly need help configurating it. (1)
    Hello, I woud like some support and advise how I need to configure the phpbb plus forum. I installd
    it and well basic mail function dusent work. And I saw you people give away stmp mail accounts. Now
    coud I use 1 of those adresses in the forum? Use SMTP Server for email Say yes if you want or have
    to send email via a named server instead of the local mail function Yes No SMTP Server Address
    SMTP Username Only enter a username if your SMTP server requires it SMTP Password Only enter a
    password if your SMTP server requires it Plz woud some 1 advise me on t...
  10. Unable To Change Style In Phpbb Forum - help me (6)
    I uploaded a new style for my PhpBB forum through FTP. Then I installed the style in the PhpBB
    Admin. Panel. But in the Style Management section I am not able to change the style. I can see both
    the syles listed there, but I cannot change the styles. Please help me....
  11. A Few Things - phpbb question as well as .zip question (4)
    First of all, I was wondering how i could go about creating a log-in section, and using the phpbb
    logins (forum names and passwords) and making it protect a certain area of my site, as i would hate
    to have 2 different logins for the forum and the site... basically, im looking for something that
    allows you to log into the forum without going to the forum, and when ur logged in on the forum, it
    also allows you to go to a different area, outside of the forum. Secondly, is it possible to
    create a .zip file with php directly on the hosting server?...
  12. Phpbb Forum Installation Problem - Update Database Error (4)
    Guys i was trying to install a phpbb modded forum, i followed this tutorial i had, and was about to
    install it fully when i got this error message An error occurred trying to update the database
    Table 'phpbb_admin_nav_module' already exists If anyone could tell me how to fix this it
    would be greatly appreciated. EDIT: I talked to a friend about the subject and he said i had to
    enter something after phpbb_ in the prefix for data tables or something, so then it came up with a
    file i had to download and ftp to the forum. So once i did that, i tried the forum ...
  13. Adding Smilies To Phpbb Plus - (1)
    I have Phpbb plus forums , they have some default smilies..I want to add other smilies packs..Can
    some one tell me , if i can add MSN emoticons in my phpbb plus forums ?? If yes, how i can put ?? If
    possible please give me the link of those emoticons/ smilies packs url .....
  14. Installing Shoutbox,poll And Recent Written Topics In Phpbb - (1)
    I just installed the FI theme for phpbb..on my forums... I want to install Poll , Recent written
    topics and a shoutbox in my forum's front page....I tried to install some shoutbox script but
    something goes wrong..even i m following the instructions very carefully.Could anyone help me
    regarding to this ??? thanks...
  15. Phpbb Forum Doesnt Ask To Sign-in For Posting - (4)
    I installed Phpbb forum on trap17 hosting with the help of Fantasico thing.Its very great but the
    problem is that , anyone can post there , i mean even Not registered members can post there and the
    forum doest even tell him/her that you need to sign in before you post , i want to remove this thing
    , i want that they should be a registered member and signed in , in order to post any reply or any
    new topic.I tried to find the option in admin area but i couldnt , can any one tell me how to enable
    that function.Thanks...
  16. Fast Reply Option In Phpbb - any way to turn it on? (9)
    Well i Got my forums working again however. I was wondering if there is any way to have a fast
    reply option with these pbpbb forums. I know I have seen it in other forums but i think they were
    ipb. Not sure though. Thanks in advance. Zach Topic title and description are VERY important.
    Edited. ...
  17. Phpbb File Size - How much is too much? (4)
    I have a phpbb running under the fantastico in my cpanel. The mySQL file is 5+megs. What size is
    considered typical? Do I have to worry about the size at all? Will the application run any faster
    if the forum is 'pruned'? Backups are performed weekly so I am not concerned about loss of
    data. I was just wondering about how efficient the phpbb code is. Will the forum run as quickly if
    the database is allowed to enlarge to twice the size? Or should I consider the auto-prune as an
    option. Also, is there a way to select which topics get pruned and which ones don'...
  18. Help With Phpbb Component Mambo1 - (0)
    I posted this in this thread: http://www.trap17.com/forums/upload-compon...led-t30338.html But
    nobody answers! /mad.gif' border='0' style='vertical-align:middle' alt='mad.gif' /> And
    then I draw it again: I cant login to the phpbb admin panel on my site (The Admin mambo panel
    works). I am a Super Administrator on the site, but not an admin on my phpbb installation (As you
    nŽknow they use the same database). Please Help! /ohmy.gif' border='0'
    style='vertical-align:middle' alt='ohmy.gif' /> ...
  19. How Do I Install Phpbb Forum? - Please list out... (6)
    Hey, guys. Well recently the website that had previously hosted my phpBB forum went down and I
    decided to look for alternatives for my forum hosting. I realized that both www.Trap17.com had it
    and the host that my friend has. I have searched through the many topics and posts on this forum
    and I still do not entirely understand the installation process of a phpBB forum. Both the
    Trap17.com account and my friend's account have Fantastico, Script Libraries and phpBB Bulletin
    buttons in the CPanel. I have attempted several times to go directly to one of these and tr...
  20. Enabling Html At A Phpbb - Can't get it going ... (7)
    I think I' ve done everything by the book. It was allowed on the forum ACP, it is allowed by
    user, it seems to be allowed on the posting form, the tag list has been added at the ACP, the
    preview accepts it , but the posts show the raw tags as part of the post. Is there anything else I
    need to do? Does the Admin have to allow it? Is it dis-allowed for the trap17 free hosted accounts?
    Your help is appreciated....
  21. Phpbb Forums - it wont work... (4)
    /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> I made new forums on phpbb
    and i tried to log into it and it wont work. I cant even do anything on it....
  22. Phpbb Directorie Problem - (9)
    Please ensure both the install/ and contrib/ directories are deleted which directorie are they
    in and were r they...
  23. Phpbb Installation Problem In Fantastico - (5)
    Install phpBB2(2/3) The installation can not be completed: - You cannot install more than one
    script in the root directory of a domain. Click on the browser's Back button to fix reported
    errors. how do i fix this...
  24. Is It Possible To Add Code To Phpbb - Adding HTML & What Not (3)
    I wanted to know if it is possible to add code to phpbb if so how. By adding code I mean adding html
    so I could add stuff like affialiates and stuff like that. Thanks for your help. I also wanted to
    know if that is allowed before anyone posts an answer, I figured it is if you leave the copyright
    because it is open source....
  25. Adding Moderators In Phpbb Forum - (3)
    Ok i currently installed phpBB and i learned how to add a Site admin, but how do i add moderaters?...
  26. Installing Phpbb Boards - How do I make them appear at my "index"? (3)
    I know how to install phpBB boards but I would like to know how to make them appear in the front
    page of my domain. My domain is www.brokecollegekidz.com (dns hasnt propagated yet) So for
    example: I don't want my boards at www.brokecollegekidz.com/phpBB I want my visitors to see the
    boards right when they go to www.brokecollegekidz.com I've never had the need to do this in the
    past but I would like to do it with this site. Thank you in advance for your help....
  27. Help With Phpbb And Phpchat - Hel with phpBB and Chat please (3)
    Hallo, just uploaded my site with help from some of u and now i have added the phpBB and phpchat
    into my account and linked it to my webpages. Now i have question on phpBB and php Chat HOW do u
    create link in BB and Chat to link BACK to my website page(home page) i worked with the admin
    settings in BB but didn't find any options to alter to add link. AND same goes with chat, i
    didn't even find a link to access admin control in php CHAT, and how do u add link to point back
    to my website. Also in phpBB how do u change the right hand top image, its defualy in phpB...
  28. Allowing Everyone To Post To Phpbb - Can this be done? (6)
    I was wondering, is there any way that allows anyone to post to phpbb? Even all the guests that come
    to the board? Is this even a good idea? I'm not sure what kind of things would happen if I did
    that. Like would I be facing lots of spam, or is there something that I should be worried about if
    I'm going to run my boards that way. Does anyone else have a board open to anyone or have you
    tried that before? And if so, how have you found it? I'd like to know what to expect a little
    more if I'm going to go about doing that sort of thing. I think it is the be...
  29. Manual Phpbb 1.0.13 Installation Error - "Could not connect to database" (2)
    Here is the error I received, I have installed phpBB's manually before, and never gotten this,
    can anyone help? Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in
    /home/gotya/public_html/phpBB2/db/mysql4.php on line 330 Warning: mysql_errno(): supplied argument
    is not a valid MySQL-Link resource in /home/gotya/public_html/phpBB2/db/mysql4.php on line 331 phpBB
    : Critical Error Could not connect to the database...
  30. Anyone Willing To Do A Phpbb Hack For Me? - A refferal hack for CashMod... (1)
    I was wondering if someone here could do me a large favor and program a referal system (or help me
    find one at least...) for the latest version of CashMod for phpBB, I would be very greatful if you
    helped me, and would be willing to credit you on my forums. PM me, or reply here if you are willing
    to take this project up......



Looking for phpbb

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for phpbb

*MORE FROM TRAP17.COM*
advertisement



Phpbb - need help



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE