| | #1 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Perrysburg, Ohio
Posts: 236
Thanks: 63
Thanked 24 Times in 22 Posts
| where is this file in my site directory I right clicked and opened the source in notepad and below is what it shows from my home page, It says index.html at the top but I can not find this file anywhere, I opened every index, php, and css file I found and can not see this coding anywhere. I also opened the files in FrontPage and none of them look like this, also the Google ads don't show up on the site. I would like to edit the meta tags if I can find it. any help would be appreciated. |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
|
it's probably included content. Post the code when you open your index file in the root public_html (www) directory. The client side source doesn't help. We need the code before it does all the server side stuff. |
| | |
| |
| | #3 |
| HyperActive Warrior Join Date: 2010
Posts: 131
Thanks: 0
Thanked 8 Times in 8 Posts
|
You need to find the parser which generated this html for you and puts as index.html or any other related forum. This code could be easily found if you will tell me what cms you are using...
|
| | |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Perrysburg, Ohio
Posts: 236
Thanks: 63
Thanked 24 Times in 22 Posts
|
here is all the code in the index.php in my root dir in cPanel. <?php session_start(); include("includes/config.inc"); include("includes/func.php"); include("query.php"); include("header.php"); if ($_GET["page"]=='') if ($_GET["pagedb"]!='') { $sql="SELECT * FROM document_master where doc_title='".$_GET["pagedb"]."'"; $cmd = mysql_query($sql); $rs = mysql_fetch_array($cmd);?> <br><?=getsettings(8,"",2);?><br><br> <?echo $rs["doc_content"]; } else { include("home.php"); } else { if (strtolower($_GET["page"])=="forgetpassword" || strtolower($_GET["page"])=="allcategory" || strtolower($_GET["page"])=="register" || strtolower($_GET["page"])=="category" || strtolower($_GET["page"])=="submitarticle" || strtolower($_GET["page"])=="rss" || strtolower($_GET["page"])=="userarticles" || strtolower($_GET["page"])=="topauthor" || strtolower($_GET["page"])=="search" || strtolower($_GET["page"])=="mostpopulararticles" || strtolower($_GET["page"])=="login" || strtolower($_GET["page"])=="article" || strtolower($_GET["page"])=="author" || strtolower($_GET["page"])=="personal" ) { include(basename($_GET["page"]).".php"); } } ?> <? include("footer.php"); ?> |
| |
| | #5 |
| Active Warrior War Room Member Join Date: 2009 Location: Charlotte, NC, USA
Posts: 30
Thanks: 2
Thanked 4 Times in 3 Posts
|
Your meta tags will most likely be located in the "header.php" file - assuming that the other three ".php" files above that line are most likely support files. As a PHP file is a text file, any text editor will help you make changes. As a side note, the "$sql=" line takes an argument from the submitted URL without checking the validity of the "pagedb" variable from the URL. This can open you up to an SQL Injection attack. See this link for more information: PHP: SQL Injection - Manual |
| Mike P Smith Internet Business on 2 Hours a Night Check back in a year - we'll see if it works. http://www.2hoursanight.com Last edited on 19th Apr 2010 at 06:36 AM. Reason: Bad Grammar | |
| |
| | #6 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
|
The code you are looking for is located in the included files: include("includes/config.inc"); Located in Include Directory include("includes/func.php"); Located in Include Directory include("query.php"); located in same as Index (root) include("header.php"); located in same as Index (root) include("home.php"); located in same as Index (root) <? include("footer.php"); ?> located in same as Index (root) Of course you may also have content stored in the database. |
| | |
| |
|
| Bookmarks |
| Tags |
| directory, file, site |
| |