Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Crash & Burn  (Read 3183 times)

0 Members and 1 Guest are viewing this topic.

The Grand Pooh-Bah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
    • GrandCherokeePhotos
Crash & Burn
« on: July 18, 2007, 05:55:45 am »

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; } ?>
Parse error: syntax error, unexpected '}' in /home/ar15phot/public_html/photos/include/themes.inc.php on line 2576

Album went down ( got critical error message} so I tried to update and now this is what I get
www.ar15photos.com/photos
Logged
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Crash & Burn
« Reply #1 on: July 18, 2007, 07:32:49 am »

re-upload themes.inc.php
Logged
‍I don't answer to PM with support question
Please post your issue to related board

The Grand Pooh-Bah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
    • GrandCherokeePhotos
Re: Crash & Burn
« Reply #2 on: July 18, 2007, 02:59:41 pm »

Now it says this:

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; } ?>

Critical error     
   
There was an error while processing a database query
Logged
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Nibbler

  • Guest
Re: Crash & Burn
« Reply #3 on: July 18, 2007, 03:29:16 pm »

Reupload all the php files, one or more are corrupted.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.