Changeset 420
- Timestamp:
- 07/02/06 18:18:46 (2 years ago)
- Files:
-
- devel/_files/download.php (modified) (1 diff)
- devel/_files/icon.php (modified) (2 diffs)
- devel/config-dist.php (modified) (1 diff)
- devel/content/general/main.php (modified) (1 diff)
- devel/content/mainindex/main.php (modified) (1 diff)
- devel/content/userdetails/main.php (modified) (1 diff)
- devel/content/users/main.php (modified) (1 diff)
- devel/help/mainindex/main.php (modified) (1 diff)
- devel/lib/dbsetup.php (modified) (2 diffs)
- devel/lib/displaylib.php (modified) (3 diffs)
- devel/lib/elgglib.php (modified) (11 diffs)
- devel/lib/filelib.php (modified) (1 diff)
- devel/lib/lmslib.php (modified) (1 diff)
- devel/lib/setup.php (modified) (6 diffs)
- devel/lib/textlib.class.php (modified) (2 diffs)
- devel/lib/uploadlib.php (modified) (2 diffs)
- devel/profile/edit.php (modified) (1 diff)
- devel/profile/index.php (modified) (1 diff)
- devel/profile/profile.class.php (modified) (1 diff)
- devel/units/display/function_log_on_pane.php (modified) (3 diffs)
- devel/units/files/files_actions.php (modified) (1 diff)
- devel/units/files/files_links_make.php (modified) (1 diff)
- devel/units/files/folder_view.php (modified) (1 diff)
- devel/units/files/function_rss_getitems.php (modified) (1 diff)
- devel/units/files/function_rss_publish.php (modified) (1 diff)
- devel/units/files/function_search_rss.php (modified) (1 diff)
- devel/units/icons/function_actions.php (modified) (1 diff)
- devel/units/profile/function_rss_publish.php (modified) (1 diff)
- devel/units/search/search_suggest_rss.php (modified) (1 diff)
- devel/units/weblogs/function_rss_publish.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_files/download.php
r296 r420 45 45 46 46 // Then output some appropriate headers and send the file data! 47 require_once($CFG->dirroot .'/lib/filelib.php');47 require_once($CFG->dirroot . 'lib/filelib.php'); 48 48 $mimetype = mimeinfo('type',$file->location); 49 49 devel/_files/icon.php
r296 r420 20 20 $if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']); 21 21 22 $tstamp = filemtime($CFG->dataroot . $file->location);22 $tstamp = filemtime($CFG->dataroot . $file->location); 23 23 $lm = gmdate("D, d M Y H:i:s", $tstamp) . " GMT"; 24 24 … … 34 34 35 35 // Then output some appropriate headers and send the file data! 36 require_once($CFG->dirroot .'/lib/filelib.php');36 require_once($CFG->dirroot . 'lib/filelib.php'); 37 37 $mimetype = mimeinfo('type',$file->originalname); 38 38 if ($mimetype == "image/jpeg" || $mimetype == "image/png") { devel/config-dist.php
r419 r420 118 118 // This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up. 119 119 120 121 // Some other $CFG variables found in codebase 122 123 // $CFG->admin 124 // $CFG->allowobjectembed 125 // $CFG->aspellpath 126 // $CFG->auth 127 // $CFG->cachetext 128 // $CFG->currenttextiscacheable 129 // $CFG->dbsessions 130 // $CFG->detect_unchecked_vars 131 // $CFG->editorbackgroundcolor 132 // $CFG->editorfontfamily 133 // $CFG->editorfontlist 134 // $CFG->editorfontsize 135 // $CFG->editorhidebuttons 136 // $CFG->editorkillword 137 // $CFG->editorspelling 138 // $CFG->filterall 139 // $CFG->framename 140 // $CFG->handlebounces 141 // $CFG->ignoresesskey 142 // $CFG->lang 143 // $CFG->lastcron 144 // $CFG->libdir 145 // $CFG->logsql 146 // $CFG->maxbytes 147 // $CFG->newsclient_lastcron 148 // $CFG->openid_comments_allowed 149 // $CFG->opentogoogle 150 // $CFG->pathtodu 151 // $CFG->perfdebug 152 // $CFG->pixpath 153 // $CFG->plugins->editor 154 // $CFG->plugins->tinymce 155 // $CFG->release 156 // $CFG->respectsessionsettings 157 // $CFG->secureforms 158 // $CFG->session_error_counter 159 // $CFG->sessioncookie 160 // $CFG->sessiontimeout 161 // $CFG->templatedir 162 // $CFG->tracksessionip 163 // $CFG->unzip 164 // $CFG->userlocale 165 // $CFG->version 166 // $CFG->zip 167 120 168 ?> devel/content/general/main.php
r269 r420 3 3 // General content tags 4 4 5 $function['content:copyright'][] = path . " /content/general/content_copyright.php";5 $function['content:copyright'][] = path . "content/general/content_copyright.php"; 6 6 7 7 ?> devel/content/mainindex/main.php
r320 r420 5 5 // with this commented out, units/users/content_main_index.php 6 6 // is used instead -- which makes more sense... 7 // $function['content:mainindex'][] = path . " /content/mainindex/content_main_index.php";7 // $function['content:mainindex'][] = path . "content/mainindex/content_main_index.php"; 8 8 9 $function['content:about'][] = path . " /content/mainindex/content_main_about.php";10 $function['content:run_your_own'][] = path . " /content/mainindex/content_main_run_your_own.php";11 $function['content:faq'][] = path . " /content/mainindex/content_main_faq.php";12 $function['content:privacy'][] = path . " /content/mainindex/content_main_privacy.php";13 $function['content:terms'][] = path . " /content/mainindex/content_main_terms.php";14 $function['content:mainindex:loggedout'][] = path . " /content/mainindex/content_loggedout.php";9 $function['content:about'][] = path . "content/mainindex/content_main_about.php"; 10 $function['content:run_your_own'][] = path . "content/mainindex/content_main_run_your_own.php"; 11 $function['content:faq'][] = path . "content/mainindex/content_main_faq.php"; 12 $function['content:privacy'][] = path . "content/mainindex/content_main_privacy.php"; 13 $function['content:terms'][] = path . "content/mainindex/content_main_terms.php"; 14 $function['content:mainindex:loggedout'][] = path . "content/mainindex/content_loggedout.php"; 15 15 16 16 devel/content/userdetails/main.php
r269 r420 3 3 // User details content 4 4 5 $function['content:userdetails:edit'][] = path . " /content/mainindex/content_userdetails_edit.php";5 $function['content:userdetails:edit'][] = path . "content/mainindex/content_userdetails_edit.php"; 6 6 7 7 ?> devel/content/users/main.php
r269 r420 4 4 5 5 // Blurb for editing your user details 6 $function['content:userdetails:edit'][] = path . " /content/users/content_userdetails_edit.php";6 $function['content:userdetails:edit'][] = path . "content/users/content_userdetails_edit.php"; 7 7 8 8 ?> devel/help/mainindex/main.php
r269 r420 3 3 // Main index functions 4 4 5 $function['help:profile'][] = path . " /help/mainindex/profile_help_page.php";6 $function['help:files'][] = path . " /help/mainindex/file_help_page.php";7 $function['help:blogs'][] = path . " /help/mainindex/blogs_help_page.php";8 $function['help:network'][] = path . " /help/mainindex/network_help_page.php";5 $function['help:profile'][] = path . "help/mainindex/profile_help_page.php"; 6 $function['help:files'][] = path . "help/mainindex/file_help_page.php"; 7 $function['help:blogs'][] = path . "help/mainindex/blogs_help_page.php"; 8 $function['help:network'][] = path . "help/mainindex/network_help_page.php"; 9 9 10 10 devel/lib/dbsetup.php
r269 r420 19 19 20 20 if (!$maintables) { 21 if (file_exists( "$CFG->dirroot/lib/db/$CFG->dbtype.sql")) {21 if (file_exists($CFG->dirroot . "lib/db/$CFG->dbtype.sql")) { 22 22 $db->debug = true; 23 if (modify_database( "$CFG->dirroot/lib/db/$CFG->dbtype.sql")) {24 include_once( "$CFG->dirroot/version.php");23 if (modify_database($CFG->dirroot . "lib/db/$CFG->dbtype.sql")) { 24 include_once($CFG->dirroot . "version.php"); 25 25 set_config('version', $version); 26 26 $db->debug = false; … … 48 48 49 49 /// Upgrades 50 include_once( "$CFG->dirroot/version.php"); # defines $version51 include_once( "$CFG->dirroot/lib/db/$CFG->dbtype.php"); # defines upgrades50 include_once($CFG->dirroot . "version.php"); # defines $version 51 include_once($CFG->dirroot . "lib/db/$CFG->dbtype.php"); # defines upgrades 52 52 53 53 if ($CFG->version) { devel/lib/displaylib.php
r359 r420 173 173 174 174 global $page_owner; 175 $url = url;176 175 177 176 // If this is someone else's portfolio, display the user's icon … … 182 181 if ((!defined("logged_on") || logged_on == 0) && $page_owner == -1) { 183 182 184 $body = '<form action="'.url.' /login/index.php" method="post">';183 $body = '<form action="'.url.'login/index.php" method="post">'; 185 184 186 185 if (public_reg == true) { 187 $reg_link = '<a href="' . $url . '_invite/register.php">'. gettext("Register") .'</a> |';186 $reg_link = '<a href="' . url . '_invite/register.php">'. gettext("Register") .'</a> |'; 188 187 } else { 189 188 $reg_link = ""; … … 212 211 <small> 213 212 ' . $reg_link . ' 214 <a href="' . $url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a>213 <a href="' . url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> 215 214 </small></p> 216 215 </td> devel/lib/elgglib.php
r408 r420 222 222 if ($options & PARAM_URL) { // allow safe ftp, http, mailto urls 223 223 224 include_once($CFG->dirroot . ' /lib/validateurlsyntax.php');224 include_once($CFG->dirroot . 'lib/validateurlsyntax.php'); 225 225 226 226 // … … 290 290 global $CFG; 291 291 292 $basedir = opendir($CFG->dirroot . '/'.$plugin);292 $basedir = opendir($CFG->dirroot . $plugin); 293 293 while (false !== ($dir = readdir($basedir))) { 294 294 $firstchar = substr($dir, 0, 1); … … 296 296 continue; 297 297 } 298 if (filetype($CFG->dirroot . '/'.$plugin .'/'. $dir) != 'dir') {298 if (filetype($CFG->dirroot . $plugin .'/'. $dir) != 'dir') { 299 299 continue; 300 300 } … … 1440 1440 $referer = get_referer(); 1441 1441 1442 return (($referer == $goodreferer) or ($referer == $CFG->wwwroot .'/') or ($referer == $CFG->wwwroot .'/index.php'));1442 return (($referer == $goodreferer) or ($referer == $CFG->wwwroot) or ($referer == $CFG->wwwroot .'index.php')); 1443 1443 } 1444 1444 … … 2852 2852 2853 2853 if (!empty($courseid) and isteacher($courseid)) { 2854 echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .' /lib/editor/htmlarea.php?id='. $courseid .'"></script>'."\n" : '';2854 echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'lib/editor/htmlarea.php?id='. $courseid .'"></script>'."\n" : ''; 2855 2855 } else { 2856 echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .' /lib/editor/htmlarea.php"></script>'."\n" : '';2857 } 2858 echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .' /lib/editor/lang/en.php"></script>'."\n" : '';2856 echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'lib/editor/htmlarea.php"></script>'."\n" : ''; 2857 } 2858 echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'lib/editor/lang/en.php"></script>'."\n" : ''; 2859 2859 $scriptcount++; 2860 2860 … … 3027 3027 unset($SESSION->fromurl); 3028 3028 } else { 3029 $link = $CFG->wwwroot .'/';3029 $link = $CFG->wwwroot; 3030 3030 } 3031 3031 } … … 3072 3072 $link = $_SERVER['HTTP_REFERER']; 3073 3073 } else { 3074 $link = $CFG->wwwroot .'/';3074 $link = $CFG->wwwroot; 3075 3075 } 3076 3076 } … … 3265 3265 echo 'function openSpellChecker() {'."\n"; 3266 3266 echo "\tvar speller = new spellChecker();\n"; 3267 echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ." /lib/speller/spellchecker.html\";\n";3268 echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ." /lib/speller/server-scripts/spellchecker.php\";\n";3267 echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ."lib/speller/spellchecker.html\";\n"; 3268 echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ."lib/speller/server-scripts/spellchecker.php\";\n"; 3269 3269 echo "\tspeller.spellCheckAll();\n"; 3270 3270 echo '}'."\n"; … … 3274 3274 echo "\teditor._textArea.value = editor.getHTML();\n"; 3275 3275 echo "\tvar speller = new spellChecker( editor._textArea );\n"; 3276 echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ." /lib/speller/spellchecker.html\";\n";3277 echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ." /lib/speller/server-scripts/spellchecker.php\";\n";3276 echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ."lib/speller/spellchecker.html\";\n"; 3277 echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ."lib/speller/server-scripts/spellchecker.php\";\n"; 3278 3278 echo "\tspeller._moogle_edit=1;\n"; 3279 3279 echo "\tspeller._editor=editor;\n"; … … 3369 3369 $CFG->auth = 'internal'; 3370 3370 } 3371 if (!file_exists($CFG->dirroot .'auth/'.$CFG->auth.'/lib.php')) {3371 if (!file_exists($CFG->dirroot . 'auth/' . $CFG->auth . '/lib.php')) { 3372 3372 $CFG->auth = 'internal'; 3373 3373 } 3374 3374 3375 require_once($CFG->dirroot .'auth/'.$CFG->auth.'/lib.php');3375 require_once($CFG->dirroot . 'auth/' . $CFG->auth . '/lib.php'); 3376 3376 3377 3377 if (!$user = authenticate_user_login($username,$password)) { … … 3436 3436 } 3437 3437 $USER = NULL; 3438 redirect($CFG->wwwroot .' /login/index.php');3438 redirect($CFG->wwwroot .'login/index.php'); 3439 3439 exit; 3440 3440 } devel/lib/filelib.php
r269 r420 361 361 echo "x"; 362 362 363 if(!($fp = @fopen($CFG->dataroot .'/temp/'.$file, 'w'))) {363 if(!($fp = @fopen($CFG->dataroot . 'temp/'.$file, 'w'))) { 364 364 error('put_records_csv failed to open '.$file); 365 365 } devel/lib/lmslib.php
r269 r420 10 10 define('LMS_SNOOPY_USER_AGENT','Elgg/LMS integration'); 11 11 12 require_once($CFG->dirroot .'/lib/snoopy/Snoopy.class.inc');12 require_once($CFG->dirroot . 'lib/snoopy/Snoopy.class.inc'); 13 13 14 14 function find_lms_user($installid,$username,$signature,$confirmaction=null,$firstname=null,$lastname=null,$email=null) { devel/lib/setup.php
r408 r420 29 29 } 30 30 31 $CFG->libdir = $CFG->dirroot .'/lib';31 $CFG->libdir = $CFG->dirroot . 'lib'; 32 32 33 33 // set up our database connection 34 34 if ($CFG->debug & E_USER_ERROR) { 35 require_once($CFG->dirroot .'/lib/adodb/adodb-errorhandler.inc.php');36 } 37 require_once($CFG->dirroot .'/lib/adodb/adodb.inc.php'); // Database access functions35 require_once($CFG->dirroot . 'lib/adodb/adodb-errorhandler.inc.php'); 36 } 37 require_once($CFG->dirroot . 'lib/adodb/adodb.inc.php'); // Database access functions 38 38 39 39 $db = &ADONewConnection($CFG->dbtype); … … 121 121 122 122 if (!file_exists($CFG->dataroot .'sessions')) { 123 require_once($CFG->dirroot .'lib/uploadlib.php');123 require_once($CFG->dirroot . 'lib/uploadlib.php'); 124 124 make_upload_directory('sessions'); 125 125 } … … 145 145 146 146 // for phpthumb 147 require_once($CFG->dirroot .'lib/uploadlib.php');147 require_once($CFG->dirroot . 'lib/uploadlib.php'); 148 148 make_upload_directory('cache/phpThumb'); 149 149 // for magpie rss … … 219 219 220 220 // Load textlib 221 require_once($CFG->dirroot .'lib/textlib.class.php');221 require_once($CFG->dirroot . 'lib/textlib.class.php'); 222 222 223 223 if (defined('FULLME')) { // Usually in command-line scripts like admin/cron.php … … 274 274 ////// Load some core libraries 275 275 ////// 276 require_once( "{$CFG->dirroot}/lib/templates.php");277 require_once( "{$CFG->dirroot}/lib/displaylib.php");276 require_once($CFG->dirroot . "lib/templates.php"); 277 require_once($CFG->dirroot . "lib/displaylib.php"); 278 278 279 279 ////// … … 295 295 if ($allmods = get_list_of_plugins('mod') ) { 296 296 foreach ($allmods as $mod) { 297 $modfile = $CFG->dirroot . '/mod/'.$mod .'/lib.php';297 $modfile = $CFG->dirroot . 'mod/'.$mod .'/lib.php'; 298 298 if (file_exists($modfile)) { 299 299 include_once($modfile); devel/lib/textlib.class.php
r300 r420 26 26 27 27 /// Required files 28 require_once($CFG->dirroot . ' /lib/typo3/class.t3lib_cs.php');29 require_once($CFG->dirroot . ' /lib/typo3/class.t3lib_div.php');28 require_once($CFG->dirroot . 'lib/typo3/class.t3lib_cs.php'); 29 require_once($CFG->dirroot . 'lib/typo3/class.t3lib_div.php'); 30 30 31 31 /// If ICONV is available, lets Typo3 library use it for convert … … 56 56 /// This full path constants must be defined too, transforming backslashes 57 57 /// to forward slashed beacuse Typo3 requires it. 58 define ('PATH_t3lib', str_replace('\\','/', $CFG->dirroot.'/lib/typo3/'));59 define ('PATH_typo3', str_replace('\\','/', $CFG->dirroot.'/lib/typo3/'));60 define ('PATH_site', str_replace('\\','/', $CFG->dataroot.'/temp/'));58 define ('PATH_t3lib', str_replace('\\','/', $CFG->dirroot.'lib/typo3/')); 59 define ('PATH_typo3', str_replace('\\','/', $CFG->dirroot.'lib/typo3/')); 60 define ('PATH_site', str_replace('\\','/', $CFG->dataroot.'temp/')); 61 61 define ('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':''); 62 62 devel/lib/uploadlib.php
r361 r420 197 197 } 198 198 199 $destination = $CFG->dataroot . '/'.$destination; // now add it back in so we have a full path199 $destination = $CFG->dataroot . $destination; // now add it back in so we have a full path 200 200 201 201 $exceptions = array(); //need this later if we're deleting other files. … … 717 717 $newfilepath = preg_replace('/\/\//', '/', $newfilepath); 718 718 if (strpos($newfilepath, $CFG->dataroot) === false) { 719 $newfilepath = $CFG->dataroot . '/'.$newfilepath;719 $newfilepath = $CFG->dataroot . $newfilepath; 720 720 } 721 721 $courseid = 0; devel/profile/edit.php
r333 r420 5 5 // Run includes 6 6 require_once(dirname(dirname(__FILE__))."/includes.php"); 7 require ("{$CFG->dirroot}/profile/profile.class.php");7 require_once($CFG->dirroot . "profile/profile.class.php"); 8 8 9 9 // define what profile to show devel/profile/index.php
r332 r420 5 5 // Run includes 6 6 require_once(dirname(dirname(__FILE__)) . '/includes.php'); 7 require_once($CFG->dirroot . ' /profile/profile.class.php');7 require_once($CFG->dirroot . 'profile/profile.class.php'); 8 8 9 9 // define what profile to show devel/profile/profile.class.php
r357 r420 534 534 require_once($CFG->dirroot.'lib/uploadlib.php'); 535 535 $um = new upload_manager('foaf_file',false,true,0,true); 536 $dir = $CFG->dataroot .'/tmp/foaf/';536 $dir = $CFG->dataroot . 'tmp/foaf/'; 537 537 if (!$um->process_file_uploads($dir)) { 538 538 $messages[] = gettext("There was an error uploading the file. Possibly the file was too large, or the upload was interrupted."); devel/units/display/function_log_on_pane.php
r359 r420 2 2 3 3 global $page_owner; 4 $url = url;5 4 6 5 // If this is someone else's portfolio, display the user's icon … … 12 11 13 12 $body = '<li>'; 14 $body .= '<form action="'.url.' /login/index.php" method="post">';13 $body .= '<form action="'.url.'login/index.php" method="post">'; 15 14 16 15 if (public_reg == true) { 17 $reg_link = '<a href="' . $url . '_invite/register.php">'. gettext("Register") .'</a> |';16 $reg_link = '<a href="' . url . '_invite/register.php">'. gettext("Register") .'</a> |'; 18 17 } else { 19 18 $reg_link = ""; … … 42 41 <small> 43 42 ' . $reg_link . ' 44 <a href="' . $url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a>43 <a href="' . url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> 45 44 </small></p> 46 45 </td> devel/units/files/files_actions.php
r333 r420 50 50 $ul_username = run("users:id_to_name", $page_owner); 51 51 $upload_folder = $textlib->substr($ul_username,0,1); 52 require_once($CFG->dirroot.' /lib/uploadlib.php');52 require_once($CFG->dirroot.'lib/uploadlib.php'); 53 53 $total_quota = get_field_sql('SELECT sum(size) FROM '.$CFG->prefix.'files WHERE owner = ?',array($page_owner)); 54 54 $max_quota = get_field('users','file_quota','ident',$page_owner); devel/units/files/files_links_make.php
r387 r420 9 9 if (run("users:access_level_check",$file->access) || $file->owner == $_SESSION['userid']) { 10 10 if (!in_array(run("files:mimetype:inline",$CFG->dataroot.$file->location), $data['mimetype:inline'])) { 11 require_once($CFG->dirroot.' /lib/filelib.php');11 require_once($CFG->dirroot.'lib/filelib.php'); 12 12 $mimeinfo = mimeinfo('type',$file->location); 13 13 if ($mimeinfo == "audio/mpeg" || $mimeinfo == "audio/mp3") { devel/units/files/folder_view.php
r388 r420 117 117 $icon = $url . "_files/icon.php?id=" . $file->ident; 118 118 $filepath = $url . "$username/files/$folder/$ident/$originalname"; 119 require_once($CFG->dirroot.' /lib/filelib.php');119 require_once($CFG->dirroot.'lib/filelib.php'); 120 120 $mimetype = mimeinfo('type',$file->originalname); 121 121 if ($mimetype == "audio/mpeg" || $mimetype == "audio/mp3") { devel/units/files/function_rss_getitems.php
r375 r420 39 39 40 40 if (is_array($files) && sizeof($files) > 0) { 41 require_once($CFG->dirroot .'/lib/filelib.php');41 require_once($CFG->dirroot . 'lib/filelib.php'); 42 42 foreach($files as $file) { 43 43 $title = (stripslashes($file->title)); devel/units/files/function_rss_publish.php
r396 r420 1 1 <?php 2 2 global $CFG; 3 require_once($CFG->dirroot.' /lib/uploadlib.php');3 require_once($CFG->dirroot.'lib/uploadlib.php'); 4 4 /* 5 5 * Function to publish weblog posts as RSS, either a static file or return output devel/units/files/function_search_rss.php
r269 r420 36 36 } 37 37 if (!empty($file_refs)) { 38 require_once($CFG->dirroot.' /lib/filelib.php');38 require_once($CFG->dirroot.'lib/filelib.php'); 39 39 foreach($file_refs as $file) { 40 40 $mimetype = mimeinfo('type',$file->location); devel/units/icons/function_actions.php
r415 r420 71 71 } 72 72 } 73 require_once($CFG->dirroot.' /lib/uploadlib.php');73 require_once($CFG->dirroot.'lib/uploadlib.php'); 74 74 // TODO passing 0 as maxbytes here as icon_quota is based on number of icons 75 75 // so upload_manager will look at PHP settings instead. devel/units/profile/function_rss_publish.php
r396 r420 1 1 <?php 2 2 global $CFG; 3 require_once($CFG->dirroot.' /lib/uploadlib.php');3 require_once($CFG->dirroot.'lib/uploadlib.php'); 4 4 /* 5 5 * Function to publish weblog posts and files as RSS, either a static file or return output devel/units/search/search_suggest_rss.php
r269 r420 7 7 $run_result .= "<p><a href=\"".url."search/rss.php?tag=$tag\">" . gettext("RSS feed for this tag") . "</a></p>"; 8 8 global $metatags; 9 $metatags .= "\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$tag :: RSS\" href=\"".url." /search/rss.php?tag=$tag\" />\n";9 $metatags .= "\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$tag :: RSS\" href=\"".url."search/rss.php?tag=$tag\" />\n"; 10 10 11 11 } devel/units/weblogs/function_rss_publish.php
r396 r420 1 1 <?php 2 2 global $CFG; 3 require_once($CFG->dirroot.' /lib/uploadlib.php');3 require_once($CFG->dirroot.'lib/uploadlib.php'); 4 4 /* 5 5 * Function to publish weblog posts as RSS, either a static file or return output
