coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: The Grand Pooh-Bah on August 19, 2007, 07:43:20 PM

Title: Error on Home Page
Post by: The Grand Pooh-Bah on August 19, 2007, 07:43:20 PM
http://www.AR15Photos.com

Getting the following message on the main page.  I have tried re-installing the updated files for the latest version and nothing changes.  HELP!

This is the message:

he given pid * * @param int or array $pid **/ function resetDetailVotes($pid) { global $CONFIG; if (is_array($pid)) { if (!count($pid)) { return; } else { $clause = "pid IN (".implode(',', $pid).")"; } } else { $clause = "pid = '$pid'"; } $query = "DELETE FROM {$CONFIG['TABLE_VOTE_STATS']} WHERE $clause"; cpg_db_query($query); } ?>function& cpg_get_scope( $plugin_id = null ) { global $CPG_PLUGINS,$thisplugin; if (!is_null($plugin_id)) { return $CPG_PLUGINS[$plugin_id]; } else { $plugin_id = (int) $_GET['scope']; $thisplugin =& $CPG_PLUGINS[$plugin_id]; return $CPG_PLUGINS[$plugin_id]; } } /** * cpg_action_page_end() * * Executes page_end action on all plugins * * @param null * @return N/A **/ function cpg_action_page_end() { CPGPluginAPI::action('page_end',null); } /** * cpg_filter_page_html() * * Executes page_html filter on all plugins * * @param string HTML * @return string HTML **/ function& cpg_filter_page_html( &$html ) { return CPGPluginAPI::filter('page_html',$html); } /** * cpg_get_dir_list() * * Returns all the subdirecties in a given folder * * @param string $path_to_folder * @return array $subdirectories **/ function& cpg_get_dir_list($folder) { global $CONFIG; $dirs = array(); $dir = opendir($folder); while (($file = readdir($dir)) !== false) { if (is_dir($folder . $file) && $file != '.' && $file != '..') { $dirs[] = $file; } } closedir($dir); natcasesort($dirs); return $dirs; } ?> cpg1.4 ); } ?>user is logged in, but is not gallery admin and not in admin mode $USER['am'] = 1; pageheader($lang_info, ""); msg_box($lang_info, 'Sending you to admin mode', $lang_continue, $referer); pagefooter(); ob_end_flush(); die(); } ?>
Title: Re: Error on Home Page
Post by: Nibbler on August 19, 2007, 08:03:39 PM
That's not a message. It's random code due to corrupted files. Re-upload clean copies from the package.