PHP Classes

File: inc/cron/check_site.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   PHP Website Informer Tools   inc/cron/check_site.php   Download  
File: inc/cron/check_site.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Website Informer Tools
Tool to show relevant information about Web sites
Author: By
Last change:
Date: 9 months ago
Size: 819 bytes
 

Contents

Class file image Download
<?php

 
/**
 * Useful functions
 *
 * @package Get Meta Tools
 * @author SORIA Pierre-Henry
 * @email pierrehs@hotmail.com
 * @link http://github.com/pH-7
 * @copyright Copyright pH7 Script All Rights Reserved.
 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
 * @version : dataUri.php 2012-02-2 pierrehs $
 */
namespace PH7\Seo\Meta;
defined('PH7') or exit('Restricted access');

$oFile = new File;
foreach(
$oFile->getAllSites() as $sSite) {
  
$sSite = checkProtocol($sSite);
  
   if(!
isValidSite($sSite)) {
       
$sHtml = '<p class="red"><strong>' . $sSite . '</strong> ' . t('does not exist or is no longer available, so we remove.') . '</p>';
       
$oFile->removeSite($sSite);
    } else {
       
$sHtml = '<p class="red">' . t('No site deleted.') . '</p>';
    }
}
unset(
$oFile);