Changeset 706171
- Timestamp:
- 04/30/2013 09:48:10 PM (13 years ago)
- File:
-
- 1 edited
-
really-static/trunk/sonstiges/install_rs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
really-static/trunk/sonstiges/install_rs.php
r700705 r706171 74 74 foreach ( $transport as $v) call_user_func_array ( $v [11],array(get_option ( 'rs_firstTime')) ); 75 75 RS_LOG("init defaults done"); 76 77 $fh = fopen ( REALLYSTATICHOME ."settings.dat", "r" );78 while (($b = fgets($fh, 4096)) !== false) {76 $buffer=""; 77 $fh = @fopen ( REALLYSTATICHOME ."settings.dat", "r" ); 78 while (($b = @fgets($fh, 4096)) !== false) { 79 79 $buffer.=$b; 80 80 } 81 fclose ( $fh ); 81 @fclose ( $fh ); 82 if($buffer!=""){ 82 83 $b=unserialize($buffer); 83 84 if($b [autoinstall]==1)importsettings($buffer);84 } 85 if($buffer!="" && $b[autoinstall]==1)importsettings($buffer); 85 86 else rs_addmessage( 0, sprintf ( __ ( "You need to configure your Really-Static plugin. Use our <a href='%s'>quick setup</a> or click <a href='%s'>here</a> to jump into the settingsmenu.", 'reallystatic' ), "options-general.php?page=" . REALLYSTATICBASE . "&menu=123", "options-general.php?page=" . REALLYSTATICBASE ) ,1,"page",REALLYSTATICBASE); 86 87
Note: See TracChangeset
for help on using the changeset viewer.