[wpkg_web] / upcheck.php Repository:
ViewVC logotype

View of /upcheck.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (download) (annotate)
Mon Jan 8 19:39:22 2007 UTC (11 years, 8 months ago) by linuxkidd
File size: 512 byte(s)
Modifying to use external language packs

<?php
$sql
="show tables like 'wpkg_web'";
$sql_h=mysql_query($sql) or die("Cannot: $sql --- " mysql_error());
list(
$table)=mysql_fetch_array($sql_h);
if(isset(
$table)) {
  
$sql="select * from wpkg_web order by uptime desc limit 0,1";
  
$sql_h=mysql_query($sql) or die("Cannot: $sql --- " mysql_error());
  
$version_data=mysql_fetch_array($sql_h);

  list(
$file_version)=file('VERSION');
  if(
$version_data['version']<rtrim($file_version)) {
    include 
"update.php";
  }
} else {
  include 
"update.php";
}
?>

ViewVC Help
Powered by ViewVC 1.0.3