[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 // ## $Id: wpkglist.php 6764 2012-01-15 16:47:32Z olikin $ ## 3 include "inc/wpkg.auth.php"; 4 //header("Pragma: no-cache"); 5 //header("Cache-Control: no-cache, must-revalidate"); 6 if ( $_GET['refresh'] == "1" ) { 7 if(is_file("$wpkgwebdir/se3_wpkglist.php?branch=testing")) { 8 unlink("$wpkgwebdir/se3_wpkglist.php?branch=testing"); 9 } 10 if(is_file("$wpkgwebdir/se3_wpkglist.php")) { 11 unlink("$wpkgwebdir/se3_wpkglist.php"); 12 } 13 } 14 $ErreurWget=false; 15 $url='http://wawadeb.crdp.ac-caen.fr/unattended/se3_wpkglist.php'; 16 $urlTest='http://wawadeb.crdp.ac-caen.fr/unattended/se3_wpkglist.php?branch=testing'; 17 exec ( "cd $wpkgwebdir;wget -N --timeout=15 --tries=3 '$url' 2>&1", $output, $return_value); 18 if ( $return_value != 0 ) { 19 $ErreurWget=true; 20 } else { 21 exec ( "cd $wpkgwebdir;wget -N --timeout=15 --tries=3 '$urlTest' 2>&1", $output, $return_value); 22 if ( $return_value != 0 ) { 23 $ErreurWget=true; 24 } else { 25 // Concatenation des deux fichiers 26 exec ( "xsltproc -o $wpkgwebdir/forum.xml $wpkgwebdir/bin/mergeForum.xsl $wpkgwebdir/se3_wpkglist.php", $output, $return_value); 27 } 28 29 } 30 if ( $ErreurWget ) { 31 header("HTTP/1.1 404 Not found"); 32 header("Status: 404 Erreur d'acces a '$url'"); 33 echo '<pre>'; 34 foreach($output as $key => $value) { 35 echo " $value\n"; 36 } 37 //print_r($output); 38 echo '</pre>'; 39 } else { 40 if ( $return_value != 0 ) { 41 header("HTTP/1.1 500 Internal Server Error"); 42 header("Status: 500 Internal Server Error"); 43 header("Pragma: no-cache"); 44 header("Cache-Control: max-age=5, s-maxage=5, no-cache, must-revalidate"); 45 //echo "$last_line\n"; 46 echo '<pre>'; 47 echo "Erreur : xsltproc -o $wpkgwebdir/forum.xml $wpkgwebdir/bin/mergeForum.xsl $wpkgwebdir/se3_wpkglist.php\n"; 48 echo "return_value=$return_value\n"; 49 echo "\n"; 50 foreach($output as $key => $value) { 51 echo " $value\n"; 52 } 53 echo '</pre>'; 54 } else { 55 get_xml('../../../../www/se3/wpkg/forum.xml'); 56 } 57 } 58 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |