Update site
This commit is contained in:
parent
e551e0df5e
commit
d6633930c9
1 changed files with 8 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
$local_file = false;
|
||||||
|
if( basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
|
||||||
|
$local_file = true;
|
||||||
|
}
|
||||||
|
|
||||||
function loadIndexesFromDir($output, $outputIndexes, $dir, $elementName, $mapNodes){
|
function loadIndexesFromDir($output, $outputIndexes, $dir, $elementName, $mapNodes){
|
||||||
if (is_dir($dir)) {
|
if (is_dir($dir)) {
|
||||||
|
@ -56,10 +59,9 @@ function loadIndexesFromDir($output, $outputIndexes, $dir, $elementName, $mapNod
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateGoogleCodeIndexes($update=false) {
|
function updateGoogleCodeIndexes($update=false) {
|
||||||
$local_file = false;
|
|
||||||
if( basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
|
if( $local_file) {
|
||||||
$update = true;
|
$update = true;
|
||||||
$local_file = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$localFileName='indexes.xml';
|
$localFileName='indexes.xml';
|
||||||
|
@ -68,7 +70,7 @@ function updateGoogleCodeIndexes($update=false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($local_file) {
|
if($local_file) {
|
||||||
echo '<h1>File update : </h1> <br>';
|
echo '<h1>File update : </h1> <br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$dom = new DomDocument();
|
$dom = new DomDocument();
|
||||||
|
|
Loading…
Reference in a new issue