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

} elseif(($password)&&(!($password=$uppass))) {
<b>Incorrect password.</b>
} 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">
<?php } ?>
Return current item: PhpWebDesk