Crash & Burn Crash & Burn
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Crash & Burn

Started by The Grand Pooh-Bah, July 18, 2007, 05:55:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The Grand Pooh-Bah

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
"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

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

The Grand Pooh-Bah

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
"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

Reupload all the php files, one or more are corrupted.