Jake Vickers wrote:
If you'll put all of it into a script I'll include it in the next
version of QTP.
Here is a patch:
diff -Naur /usr/share/toaster/include/admin.inc.php.orig
/usr/share/toaster/include/admin.inc.php
--- /usr/share/toaster/include/admin.inc.php.orig 2008-05-30
14:19:45.000000000 -0400
+++ /usr/share/toaster/include/admin.inc.php 2008-05-30
14:20:36.000000000 -0400
@@ -7,7 +7,7 @@
function read_file($file) {
if ( is_readable ( $file ) ) {
- $fd = fopen ( $file, r ) ;
+ $fd = fopen ( $file, "r" ) ;
$contents = fread ( $fd, filesize( $file ) ) ;
fclose ( $fd ) ;
$contents = ereg_replace("\n", "", $contents ) ;
@@ -22,7 +22,7 @@
function write_file($contents="", $file) {
if ( is_writable ( $file ) && strlen( $contents ) >= 1 ) {
- $fd = fopen ( $file, w ) ;
+ $fd = fopen ( $file, "w" ) ;
fwrite ( $fd, $contents ) ;
fclose ( $fd ) ;
return true ;
@@ -134,7 +134,7 @@
if ( substr ( $file, -7 ) == ".module" ) {
- $fd = fopen ( $file, r ) ;
+ $fd = fopen ( $file, "r" ) ;
$html .= fread ( $fd, filesize ( $file ) ) ;
fclose ( $fd ) ;
--
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]