Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default Changing /admin/admin.php to somethingelse.php

    Because of "admin", "myphpadmin" and 20+ other someADMINthings I have renamed everyadmin to "somethingelse". Subdir and programs - everything. Then in .htaccess RewriteCond %{REQUEST_URI} /admin/* (etc) -> go suck'a egg.

    My problem is when I go to the ZC admin page and click Tools/Admin Settings it tries to go to admin.php - which doesn't exist anymore - it's now s_e_.php. I can not find where "admin.php" comes from. I've grepped every file and it's not there. Where does the code get "admin.php" for the href?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Changing admin.php to somethingelse.php

    You're engaging in serious overkill there.

    You'll probably need to edit your /includes/filenames.php and change FILENAME_ADMIN from 'admin' to "s_e_".

    And, if you'd upgrade to the latest version of Zen Cart then this wouldn't even be necessary because there's no "/admin/admin.php" file in v1.5.0 or newer.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v155 problem with admin/users.php and admin/profiles.php??
    By carlwhat in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 29 Mar 2016, 08:52 PM
  2. Replies: 1
    Last Post: 9 Sep 2009, 12:11 PM
  3. Replies: 1
    Last Post: 24 Aug 2009, 07:53 PM
  4. Lost my Admin! (By changing configure.php)
    By skyegospel in forum Basic Configuration
    Replies: 3
    Last Post: 26 Oct 2008, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg