Login   Register  
PHP Classes
elePHPant
Icontem

File: page-render-index

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of J  >  Offline SEO Tools  >  page-render-index  >  Download  
File: page-render-index
Role: Auxiliary script
Content type: text/plain
Description: This is a index file for page content management system
Class: Offline SEO Tools
Generate reports about Web pages
Author: By
Last change:
Date: 7 years ago
Size: 1,373 bytes
 

Contents

Class file image Download
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Page Render Tool</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
    <table class="Table_Border_Gray" align="center">
        <tr>
            <td class="normal">
                <form action="page-render-index.php" method="POST">
                
                Enter urls one per line Like:  <b><i>http://www.website.com/page.html</i></b>:
                <br><textarea name="urls" cols="100" rows="10" ><?=$_REQUEST['urls']?></textarea><br><br>
                <br>
                <input type="submit" value="Go" name="submited">
                <input type="hidden" name="checkFlag" value="1">
                </form>
            </td>
        </tr>
    </table>
</body>
<?

if(isset($_REQUEST))
{
    
$checkFlag $_REQUEST['checkFlag'];
    
$urls=$_REQUEST['urls'];
    
$urls=explode("\n",$urls);
    
    switch (
$checkFlag)
    {
        case 
1:
        {
            if(
count($urls)==0
            {
                echo 
'<center><font class=Arial color=red><br>Please enter url<br></font></center>';
                break;
            }
        
            
//getting meta tags
            
$res=array();
            include 
'pageContent.php';
            
$meta=New getPageContents;
            foreach(
$urls as $k=>$url)
            {
                
$url=trim($url);
                if(
strlen($url)>0)
                {
                    
$url=str_replace('http://','',$url);
                    
$url='http://'.$url;
                    
$res[$url]=$meta->getValues($url);
                }
            }
            
            include 
'results.php';
        }
    }
}
?>

</html>