Link to home
Start Free TrialLog in
Avatar of northernknight
northernknightFlag for United States of America

asked on

Editing PHP

I am trying to edit the login page at www.topmodelcolorcontacts.com/admin 

The login box has HCC and I want to change it to TMCC but I can't find what page has the text.  I was able to change the footer and the logo, but I can't find the text in the box.
topmodellogin.JPG
Avatar of arnold
arnold
Flag of United States of America image

Look at any page to see where it redirects/reacts to a login prompt, it might be part of an include file. Not sure what options you have, bcc might be part of the configuration file where you setup your company name.  Or it us an entry in the database backend.
If you use an IDE or a good text editor such a Notepad++, you can just use the Search function to find all occurreneces of HCC in all files of projects or within the project's folder. Be ure to check the option to do the seach in all subfolders too. It should be easy to find it...
Is this part of a framework or CMS?  (WordPress, CodeIgniter, etc) If so you may want to look in the database.  Some of those things do not put much clear text into the HTML documents, preferring instead to use the database for all of the customizable data.
Avatar of northernknight

ASKER

I believe it is a custom cms.  It does have a database named HCC.  Do I have to change the database name?  I just don't want to break any links.  The customer just doesn't want to see the word HCC on the login page because his other site is named that.
OU might be able to track down where the prompt is coming from. And once you identify that, you can look at whether it is changeable.
What page do you go to to get this prompt? You then need to locate where that construct is what is evaluated, it might be that it can not be changed.
This is the page that has the login box, http://www.topmodelcolorcontacts.com/admin 
I have looked at the page and have looked through tons of include pages and can't find anything referencing the HCC text.
If you look at the page to which you directed me, where is it getting the variable data for h4?

The data is likely in the database.  Does the VMs have a configuration interface where it is possible to see the application name hcc and which can be changed.

Include files.
...
I don't know where it is getting the H4 table information.  If I can find this I could edit it.
 /div>
<div id="login">
<form name="login" method="post">
<table id="login_table" cellspacing="7">
   <tr>
      <td colspan="2"><h4>Welcome to HCC Admin.  Please enter your username and password to login!</h4></td>
   </tr>
   <tr>
I found a file called login.tpl that has the div id and shows an H4 code, but has no text value to edit.
<div id="login">
<form name="login" method="post">
<table id="login_table" cellspacing="7">
   <tr>
      <td colspan="2"><h4><?php print $LANG['login_welcome']; ?></h4></td>
   </tr>
   <tr>
      <td><?php print $LANG['login_username'] . ":"; ?></td>
      <td><input class="flat1" type="text" name="username" value="<?php print $username; ?>" /></td>
   </tr>
Codes it have an include file where $LANG is language based output.
Try this, replace the $LANG in a copy of the template where you say what you want to appear as a. Example to confirm this is the correct item. Then look for the file that has include login.tpl file.

There has to be a file where the different language parameters are.
ASKER CERTIFIED SOLUTION
Avatar of northernknight
northernknight
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nothing from the comments worked.  I have done searches through every file on the website and there is no HCC to edit.  It must be coming from the database name itself.