Author Topic: How to chage admin path?  (Read 3617 times)

0 Members and 1 Guest are viewing this topic.

Offline raghunadhreddys

  • Newbie
  • *
  • Posts: 46
    • View Profile
How to chage admin path?
« on: December 24, 2009, 05:03:23 AM »
for security reason i would like to change the admin path.how to do it?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to chage admin path?
« Reply #1 on: December 24, 2009, 07:16:50 AM »
4images doesn't support that, however you can try change it but then you'll need search for ROOT_PATH."admin/ and replace it there.
In default v1.7.7 there are 11 files and quiet a few lines to change:
Code: (Search in files with UEStudio) [Select]
----------------------------------------
Find 'ROOT_PATH."admin/' in 'details.php':
details.php(418):         $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
details.php(419):         $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
details.php(500):   $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
details.php(501):   $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>";
Found 'ROOT_PATH."admin/' 4 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'admin\admin_functions.php':
admin\admin_functions.php(635):   echo "<tr><td bgcolor=\"#FFFFFF\"><img src=\"".ROOT_PATH."admin/images/spacer.gif\"></td></tr>\n";
admin\admin_functions.php(645):   echo "<tr><td bgcolor=\"#FFFFFF\"><img src=\"".ROOT_PATH."admin/images/spacer.gif\"></td></tr>\n";
Found 'ROOT_PATH."admin/' 2 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'admin\admin_global.php':
admin\admin_global.php(147): <form action="<?php echo $site_sess->url(ROOT_PATH."admin/index.php"); ?>" method="post">
admin\admin_global.php(149): <input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">
Found 'ROOT_PATH."admin/' 2 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'admin\categories.php':
admin\categories.php(228):     echo "<img src=\"".ROOT_PATH."admin/images/folder.gif\" alt=\"\"><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$cats['cat_id'])."\" target=\"_blank\">".format_text($cats['cat_name'], 2)."</a>\n</b> (ID: ".$cats['cat_id'].")&nbsp;&nbsp;&nbsp;&nbsp;";
Found 'ROOT_PATH."admin/' 1 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'admin\index.php':
admin\index.php(74):         <td align="right"><b><a href="<?php echo $site_sess->url(ROOT_PATH."index.php"); ?>" target="_blank"><?php echo $lang['goto_homepage']; ?></a>&nbsp;|&nbsp;<a href="<?php echo $site_sess->url(ROOT_PATH."admin/index.php?logout=1"); ?>" target="_top"><?php echo $lang['logout']; ?></a>&nbsp;&nbsp;</b></TD>
Found 'ROOT_PATH."admin/' 1 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'admin\settings.php':
admin\settings.php(223):     top.head.location = '<?php echo $site_sess->url(ROOT_PATH."admin/index.php?action=head"); ?>';
admin\settings.php(224):     top.nav.location = '<?php echo $site_sess->url(ROOT_PATH."admin/index.php?action=nav"); ?>';
admin\settings.php(225):     top.main.location = '<?php echo $site_sess->url(ROOT_PATH."admin/settings.php?action=modifysettings&settings_msg=".urlencode($lang['save_settings_success'])); ?>';
Found 'ROOT_PATH."admin/' 3 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'includes\page_header.php':
includes\page_header.php(111):   "cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Admin Control Panel</a>]</p>\n",
Found 'ROOT_PATH."admin/' 1 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'lang\deutsch\install.php':
lang\deutsch\install.php(44): $lang['install_success_login'] = "Ihr Administor Benutzername und Passwort wurde erstellt. Die Basis Konfiguration ist nun beendet. Sie kцnnen Sich jetzt in Ihren Administrationsbereich einloggen und weitere Einstellungen vornehmen.<br /><b>&raquo; <a href=\"".ROOT_PATH."admin/index.php\">Zum Adminstrationsbereich</a></b>";
Found 'ROOT_PATH."admin/' 1 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'lang\english\install.php':
lang\english\install.php(50): $lang['install_success_login'] = "The basic installation is now complete and your admin account has been created. You should now log in to your <a href=\"".ROOT_PATH."admin/index.php\">4images Control Panel</a> and check the general configuration for any required changes.</b>";
Found 'ROOT_PATH."admin/' 1 time(s).
----------------------------------------
Find 'ROOT_PATH."admin/' in 'lang\spanish\install.php':
lang\spanish\install.php(44): $lang['install_success_login'] = "Su nombre de administrador ha sido creado. En este punto, la instalaciСѓn bР±sica ha sido completada. Por favor, asegСЉrese de comprobar los detalles de la configuraciСѓn general y realice todos los cambios necesarios en su Panel de Control.<br /><b>&raquo; <a href=\"".ROOT_PATH."admin/index.php\">4images Panel de Control</a></b>";
Found 'ROOT_PATH."admin/' 1 time(s).
Search complete, found 'ROOT_PATH."admin/' 17 time(s). (10 file(s)).
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)