Location: PHPKode > projects > PhpWebDesk > phpWebDesk/update.php
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
       <title>phpWebDesk Browser Recognition update</title>
</head>
<body link="#336699"><font face="tahoma">
<div align="center"><img src="images/logo.png"></div>
<?php
require_once("config.inc.php");
if (($update)&&($password==$uppass)) {
print "<b>Downloading browscap.ini";
$fn = fopen($browscapurl, "r");
while(!feof($fn)) {
    $new_browscap.=fgets($fn, 1024);
    $ic++;
    if (!($ic%30)) {
        print ".";
    }
}
echo " Done. ".round(strlen($new_browscap)/1024)."KB downloaded.</b><br><br>";
fclose($fn);
print "<b>Writing browscap.ini...";
$fn = fopen($browscappath, "w");
$new_browscap.=fputs($fn, $new_browscap);
print " Done.</b><br><br>";
fclose($fn);
?>

<?php
} elseif(($password)&&(!($password=$uppass))) {
?>
<b>Incorrect password.</b>
<?php
} else {
?>
This program will update the browser recognition file. Please type in the correct password below to proceed.
<br><br>Note: This process could take up to a minute. Please wait; you may only see a loading bar.
<br><br>Your file was last updated on <?php echo (date("l dS of F Y \a\\t h:i:s A", (filemtime($browscappath)))); ?>
<br><br><form action="<?php echo $PHP_SELF; ?>" method="POST">
<input type="password" name="password"> <input type="hidden" name="update" value="1"><input type="submit" value="OK">
</form>
<?php } ?>
</body>
</html>
Return current item: PhpWebDesk