|
From: <be...@us...> - 2014-09-14 10:05:58
|
Revision: 12779
http://sourceforge.net/p/xoops/svn/12779
Author: beckmi
Date: 2014-09-14 10:05:54 +0000 (Sun, 14 Sep 2014)
Log Message:
-----------
replacing relative links with absolute links
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/header.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/field.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/step.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/user.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/index.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/jquery.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/help.php
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/about.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -17,8 +17,8 @@
* @version $Id $
**/
-include_once __DIR__ . '/../../../include/cp_header.php';
-include_once __DIR__ . '/../../../class/xoopsformloader.php';
+include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
+include_once dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/header.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/header.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/admin/header.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -17,7 +17,7 @@
* @version $Id$
*/
-require_once '../../../include/cp_header.php';
+require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) {
include_once XOOPS_ROOT_PATH . '/class/template.php';
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/about.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -17,7 +17,7 @@
* @version $Id $
**/
-include_once __DIR__ . '/../../../include/cp_header.php';
+include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
include_once __DIR__ . '/admin_header.php';
xoops_cp_header();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -51,14 +51,14 @@
break;
case "new":
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$obj =& $handler->create();
$form = $obj->getForm();
$form->display();
break;
case "edit":
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$obj = $handler->get($_REQUEST['id']);
$form = $obj->getForm();
$form->display();
@@ -79,7 +79,7 @@
if ( $handler->insert($obj) ) {
redirect_header('category.php', 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_CATEGORY) );
}
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
echo $obj->getHtmlErrors();
$form =& $obj->getForm();
$form->display();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/field.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/field.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/field.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -100,7 +100,7 @@
break;
case "new":
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$obj =& $profilefield_handler->create();
$form = profile_getFieldForm($obj);
$form->display();
@@ -111,7 +111,7 @@
if (!$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit')) { //If no configs exist
redirect_header('field.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE);
}
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$form = profile_getFieldForm($obj);
$form->display();
break;
@@ -278,7 +278,7 @@
$url = $redirect_to_edit ? 'field.php?op=edit&id=' . $obj->getVar('field_id') : 'field.php';
redirect_header($url, 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELD));
}
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
echo $obj->getHtmlErrors();
$form = profile_getFieldForm($obj);
$form->display();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/step.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/step.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/step.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -36,14 +36,14 @@
case "new":
$obj =& $handler->create();
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$form = profile_getStepForm($obj);;
$form->display();
break;
case "edit":
$obj =& $handler->get($_REQUEST['id']);
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$form = profile_getStepForm($obj);;
$form->display();
break;
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/user.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/user.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/user.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -43,7 +43,7 @@
break;
case "new":
xoops_loadLanguage("main", $GLOBALS['xoopsModule']->getVar('dirname', 'n') );
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$obj =& $handler->createUser();
$obj->setGroups(array(XOOPS_GROUP_USERS) );
$form = profile_getUserForm($obj);
@@ -57,7 +57,7 @@
// If not webmaster trying to edit a webmaster - disallow
redirect_header("user.php", 3, _US_NOEDITRIGHT);
}
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
$form = profile_getUserForm($obj);
$form->display();
break;
@@ -174,7 +174,7 @@
}
}
$user->setGroups($new_groups);
- include_once '../include/forms.php';
+ include_once dirname(__DIR__) . '/include/forms.php';
echo $user->getHtmlErrors();
$form = profile_getUserForm($user, $profile);
$form->display();
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/index.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/index.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/index.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -49,7 +49,7 @@
$GLOBALS['xoopsTpl']->assign('lang_youremail', _US_YOUREMAIL);
$GLOBALS['xoopsTpl']->assign('lang_sendpassword', _US_SENDPASSWORD);
$GLOBALS['xoopsTpl']->assign('mailpasswd_token', $GLOBALS['xoopsSecurity']->createToken());
- include 'footer.php';
+ include __DIR__ . '/footer.php';
exit();
}
if (!empty($_GET['xoops_redirect']) ) {
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -25,7 +25,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
-include '../../../../mainfile.php';
+include dirname(dirname(dirname(dirname(__DIR__)))) . '/mainfile.php';
include $GLOBALS['xoops']->path('/include/cp_functions.php');
if (is_object($xoopsUser)) {
$module_handler =& xoops_gethandler('module');
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groupperm.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -1,7 +1,7 @@
<?php
// $Id$
-include_once __DIR__ . '/../../../include/cp_header.php';
+include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
$modid = isset($_POST['modid']) ? intval($_POST['modid']) : 0;
// we don't want system module permissions to be changed here
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/jquery.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/jquery.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/jquery.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -17,7 +17,7 @@
* @version $Id$
*/
-require '../../../../mainfile.php';
+require dirname(dirname(dirname(dirname(__DIR__)))) . '/mainfile.php';
require(XOOPS_ROOT_PATH.'/header.php');
// defined("XOOPS_ROOT_PATH") || die("XOOPS root path not defined");
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -31,7 +31,7 @@
// Include header
-include 'header.php';
+include __DIR__ . '/header.php';
if ( isset($fct) && $fct == 'users' ) {
$xoopsOption['pagetype'] = 'user';
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/help.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/help.php 2014-09-14 10:03:01 UTC (rev 12778)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/help.php 2014-09-14 10:05:54 UTC (rev 12779)
@@ -16,7 +16,7 @@
*/
// Include header
-include 'header.php';
+include __DIR__ . '/header.php';
$page = system_CleanVars($_REQUEST, 'page', '', 'string');
$mid = system_CleanVars($_REQUEST, 'mid', 0, 'int');
|