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
re-upload themes.inc.php
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
Reupload all the php files, one or more are corrupted.