FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » 2.5.0 RCx - Atomic theme rebuilds
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
2.5.0 RCx - Atomic theme rebuilds [message #10866] Thu, 12 June 2003 15:39 Go to previous message
Xodnizel   United States
Messages: 73
Registered: May 2003
Karma:
Member
A diff file for compiler.inc. It's useful for me because I have to rebuild semi-often as I try out new designs, and the PHP cache I use will sometimes cache the page as it is being rebuilt(which also means someone has viewed the incomplete page), resulting in a truncated page.

362c362
< 	if (!($fp = fopen($dir.$dst, 'wb'))) {
---
> 	if (!($fp = fopen($dir.$dst."fudtmp", 'wb'))) {
366a367
> 	rename($dir.$dst."fudtmp",$dir.$dst);
467,468c468,470
< 	copy($GLOBALS['DATA_DIR'].'sql/'.__dbtype__.'/db.inc', $GLOBALS['DATA_DIR'].'src/db.inc.t');
< 	
---
> 	copy($GLOBALS['DATA_DIR'].'sql/'.__dbtype__.'/db.inc', $GLOBALS['DATA_DIR'].'src/db.inc.tfudtmp');
> 	rename($GLOBALS['DATA_DIR'].'src/db.inc.tfudtmp',$GLOBALS['DATA_DIR'].'src/db.inc.t');
> 
584,585c586,589
< 			if (!@copy($path, $nd) && !@file_exists($nd)) {
< 				echo 'cannot copy "'.$path.'" to "'.$nd.'"<br>';
---
> 			if(!@copy($path, $nd."fudtmp")) {
> 				echo 'cannot copy "'.$path.'" to "'.$nd.'fudtmp"<br>';
> 			} else if(!@rename($nd."fudtmp",$nd)) {
> 				echo 'cannot rename "'.$nd.'fudtmp" to "'.$nd.'"<br>';
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Chinese(Japanese Korea.....) word segment
Next Topic: Postings - need to turn off posting count for one user
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 15:59:09 GMT 2024

Total time taken to generate the page: 0.04314 seconds