Changeset 1604
- Timestamp:
- Nov 10, 2006, 2:10:42 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_plugins.inc.php
r1590 r1604 42 42 ) 43 43 { 44 $plugin = array('name'=> '?', 'version'=>'0', 'uri'=>'', 'description'=>'');44 $plugin = array('name'=>$file, 'version'=>'0', 'uri'=>'', 'description'=>''); 45 45 $plg_data = implode( '', file($path.'/main.inc.php') ); 46 46 -
trunk/admin/rating.php
r1548 r1604 213 213 $images = array(); 214 214 $result = pwg_query($query); 215 while ($row = mysql_fetch_a rray($result))215 while ($row = mysql_fetch_assoc($result)) 216 216 { 217 217 array_push($images, $row); … … 220 220 foreach ($images as $image) 221 221 { 222 $thumbnail_src = get_thumbnail_src($image['path'], $image['tn_ext']); 223 224 /*$image_url = make_picture_url( 225 array( 226 'category' => $image['storage_category_id'], 227 'image_id' => $image['id'], 228 'image_file' => $image['file'], 229 ) 230 );*/ 222 $thumbnail_src = get_thumbnail_url($image); 223 231 224 $image_url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. 232 225 '&image_id='.$image['id']; -
trunk/feed.php
r1550 r1604 127 127 include_once(PHPWG_ROOT_PATH.'include/feedcreator.class.php'); 128 128 129 $base_url = 'http://'.$_SERVER["HTTP_HOST"].cookie_path();129 $base_url = get_host_url().cookie_path(); 130 130 if ( strrpos($base_url, '/') !== strlen($base_url)-1 ) 131 131 { … … 190 190 $result = pwg_query($query); 191 191 $dates = array(); 192 while ($row = mysql_fetch_a rray($result))192 while ($row = mysql_fetch_assoc($result)) 193 193 { 194 194 array_push($dates, $row); … … 233 233 ;'; 234 234 $result = pwg_query($query); 235 while ($row = mysql_fetch_a rray($result))235 while ($row = mysql_fetch_assoc($result)) 236 236 { 237 $tn_src = get_thumbnail_ src($row['path'], @$row['tn_ext']);237 $tn_src = get_thumbnail_url($row); 238 238 $item->description .= '<img src="'.$tn_src.'"/>'; 239 239 } -
trunk/include/functions_plugins.inc.php
r1590 r1604 55 55 if ( $handler['function'] == $func ) 56 56 { 57 return true;57 return false; 58 58 } 59 59 } … … 231 231 232 232 233 function load_plugin($plugin) 234 { 235 $file_name = PHPWG_PLUGINS_PATH.$plugin['id'].'/main.inc.php'; 236 if ( file_exists($file_name) ) 237 { 238 include_once( $file_name ); 239 } 240 } 241 233 242 /*loads all the plugins on startup*/ 234 243 function load_plugins() … … 242 251 $plugins = get_db_plugins('active'); 243 252 foreach( $plugins as $plugin) 244 { 245 $file_name = PHPWG_PLUGINS_PATH.$plugin['id'].'/main.inc.php'; 246 if ( file_exists($file_name) ) 247 { 248 include_once( $file_name ); 249 } 253 {// include main from a function to avoid using same function context 254 load_plugin($plugin); 250 255 } 251 256 trigger_action('plugins_loaded'); -
trunk/include/section_init.inc.php
r1597 r1604 653 653 } 654 654 } 655 656 trigger_action('loc_end_section_init'); 655 657 ?> -
trunk/index.php
r1537 r1604 30 30 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); 31 31 include(PHPWG_ROOT_PATH.'include/section_init.inc.php'); 32 33 trigger_action('loc_begin_index'); 32 34 33 35 // +-----------------------------------------------------------------------+ … … 240 242 } 241 243 //------------------------------------------------------- category informations 242 if ( 243 $page['navigation_bar'] != '' 244 or (isset($page['comment']) and $page['comment'] != '') 245 ) 246 { 247 $template->assign_block_vars('cat_infos',array()); 248 } 244 249 245 // navigation bar 250 246 if ($page['navigation_bar'] != '') … … 287 283 } 288 284 289 if (isset($page['category'])) 290 { 291 // category comment 292 if (isset($page['comment']) and $page['comment'] != '') 293 { 294 $template->assign_block_vars( 295 'cat_infos.comment', 296 array( 297 'COMMENTS' => $page['comment'] 298 ) 299 ); 300 } 285 // category comment 286 if (isset($page['comment']) and $page['comment'] != '') 287 { 288 $template->assign_block_vars( 289 'cat_infos.comment', 290 array( 291 'COMMENTS' => $page['comment'] 292 ) 293 ); 301 294 } 302 295 //------------------------------------------------------------ log informations 303 296 pwg_log('category', $page['title']); 304 297 298 trigger_action('loc_end_index'); 305 299 $template->parse('index'); 306 300 include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset
for help on using the changeset viewer.