Changeset 3687 for extensions/Random_Header
- Timestamp:
- Jul 27, 2009, 12:07:06 AM (15 years ago)
- Location:
- extensions/Random_Header
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Random_Header/admin/rh_admin.php
r3684 r3687 8 8 $template->assign( 'RH_VERSION' , RH_VERSION ); 9 9 10 foreach ( get_pwg_themes() as $pwg_template) {10 foreach (str_replace(" ", "_", get_pwg_themes()) as $pwg_template) { 11 11 if (isset($_POST['submit'])) { 12 12 $me->rh_config[$pwg_template]['selected_cat'] = $_POST[$pwg_template.'selected_cat']; … … 30 30 'CATSELECTED' => $me->rh_config[$pwg_template]['selected_cat'] 31 31 )); 32 } 32 33 33 34 35 }36 34 display_select_cat_wrapper( 37 35 'SELECT id,name,uppercats,global_rank FROM '.CATEGORIES_TABLE, -
extensions/Random_Header/main.inc.php
r3684 r3687 2 2 /* 3 3 Plugin Name: Random Header 4 Version: 2.0 4 Version: 2.0.b 5 5 Description: Random Header allow you to show in the header a random picture from the choosen categorie, as a normal image, or as a background 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=188 7 Author: Repié387 Author: repie38 8 8 Author URI: http://www.pierre-b.com 9 9 */ 10 10 11 11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 12 DEFINE('RH_VERSION','v2.0 ');12 DEFINE('RH_VERSION','v2.0.b'); 13 13 define('RH_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 14 14 class RandomHeader … … 21 21 $this->rh_config = unserialize($x); 22 22 23 foreach ( get_pwg_themes() as $pwg_template) {23 foreach (str_replace(" ", "_", get_pwg_themes()) as $pwg_template) { 24 24 if (empty($this->rh_config[$pwg_template]['selected_cat'])) { 25 25 … … 58 58 global $conf; 59 59 global $user; 60 $usertheme= $user['template'].'/'.$user['theme'];60 $usertheme=str_replace(" ", "_", $user['template'].'/'.$user['theme'] ); 61 61 if ( !defined('IN_ADMIN') && isset($page['body_id']) && ($page['body_id']!='thePicturePage' || $this->rh_config[$usertheme]['active_on_picture']=='on') ) { 62 62
Note: See TracChangeset
for help on using the changeset viewer.