Changeset 95 for trunk/wp-content/plugins/xpressme/xpressme_class.php
- Timestamp:
- Mar 3, 2009, 8:33:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/xpressme_class.php
r88 r95 120 120 $insert_sql .= "'" . $groupe->description . "' , "; 121 121 $insert_sql .= "'" . $groupe->group_type . "' , "; 122 $insert_sql .= "'" . $role . "' , ";123 $insert_sql .= $login_all . " )";122 $insert_sql .= "'" . $role . "' , '"; 123 $insert_sql .= $login_all . "')"; 124 124 $xoops_db->query($insert_sql); 125 125 } … … 331 331 function xpress_upload_filter($uploads) 332 332 { 333 global $xoops_config; 333 334 if ($this->is_use_xoops_upload_path){ 334 if (!defined("XOOPS_UPLOAD_PATH"))335 define("XOOPS_UPLOAD_PATH", XOOPS_ROOT_PATH."/uploads");336 if (!defined("XOOPS_UPLOAD_URL"))337 define("XOOPS_UPLOAD_URL", XOOPS_URL."/uploads");338 339 335 $wordpress_dir = ABSPATH ; 340 $xoops_dir = XOOPS_UPLOAD_PATH. '/';336 $xoops_dir = $xoops_config->xoops_upload_path . '/'; 341 337 $wordpress_base_url = get_option( 'siteurl' ); 342 $xoops_upload_url = XOOPS_UPLOAD_URL;338 $xoops_upload_url = $xoops_config->xoops_upload_url; 343 339 344 340 $uploads[path] = str_replace ($wordpress_dir, $xoops_dir, $uploads[path]); … … 355 351 global $current_user; 356 352 353 if (!is_object($current_user)) return false; 357 354 if ($this->is_sql_debug && ($current_user->user_level >= 10)) 358 355 return true; … … 377 374 $content .= '<meta http-equiv="content-language" content="'._LANGCODE.'" />' ; 378 375 $content .= '<title>XPressME SQL DEBUG</title>' ; 379 $content .= '<link rel="stylesheet" type="text/css" media="all" href="'.getcss($GLOBALS['xoopsConfig']['theme_set']).'" />';380 376 $content .= '</head><body>'; 381 377 $content .= $GLOBALS['XPress_SQL_Query'];
Note: See TracChangeset
for help on using the changeset viewer.