Thread: [Phpslash-commit] CVS: phpslash-ft/contrib cronmail.php3,1.4,1.5
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-11-07 17:09:20
|
Update of /cvsroot/phpslash/phpslash-ft/contrib In directory usw-pr-cvs1:/tmp/cvs-serv23310/phpslash-ft/contrib Modified Files: cronmail.php3 Log Message: string translations in cronmail Index: cronmail.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/contrib/cronmail.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** cronmail.php3 13 Aug 2002 14:36:34 -0000 1.4 --- cronmail.php3 7 Nov 2002 17:09:11 -0000 1.5 *************** *** 1,4 **** - #!/usr/bin/php <?php // $Id$ // Written by 'Blake' --- 1,4 ---- <?php + // #!/usr/bin/php // $Id$ // Written by 'Blake' *************** *** 79,85 **** //.......................... ! ! require("../phplib/prepend.php3"); ! require("../phplib/config.php3"); $rightnow = date("Hi"); //figures out what time it is --- 79,85 ---- //.......................... ! //require("/path/to/prepend.php3"); ! require("/path/to/config.php3"); ! echo("Running<br>"); $rightnow = date("Hi"); //figures out what time it is *************** *** 93,97 **** $choplength = 600; ! //since you want to include a message daily, it's a seperate file //remember to make it HTML if you are using the HTML option. //tags are stripped for plain text --- 93,97 ---- $choplength = 600; ! //since you want to include a message daily, it's a separate file //remember to make it HTML if you are using the HTML option. //tags are stripped for plain text *************** *** 103,112 **** // comment this out if you don't care about it ! $header .= "\n"; ! $header .= `/usr/games/fortune -s` ; // a little bit of fun! ! $header .= "\n"; $sitename = $_PSL['site_name']; // used in the title, and subject, and body of mail ! $siteurl = $_PSL['rooturl']; if ($html==1){ --- 103,112 ---- // comment this out if you don't care about it ! //$header .= "\n"; ! //$header .= `/usr/games/fortune -s` ; // a little bit of fun! ! //$header .= "\n"; $sitename = $_PSL['site_name']; // used in the title, and subject, and body of mail ! $siteurl = $_PSL['rooturl']; if ($html==1){ *************** *** 123,127 **** // you may want to move this out to a file like // the header if you feel the need ! $footer = "<P><B>\n\t To add or remove yourself go to:\n<BR>".$siteurl."/mailinglist.php3</B><P></BODY></HTML>"; /********************************************************* --- 123,127 ---- // you may want to move this out to a file like // the header if you feel the need ! $footer = "<P><B>\n\t " . pslgetText("To add or remove yourself go to") . ": ".$siteurl."/mailinglist.php3</B><P></BODY></HTML>"; /********************************************************* *************** *** 406,410 **** // but, for the moment 2002-06-12 luis mondesi: $sql="SELECT story_id, title, dept, ". ! " date_format(time, \"%W %M %d %h %i %p\") as pretty_time, ". " intro_text FROM psl_story ". " WHERE time >= '$begdate' AND time <= '$enddate' ORDER BY time DESC"; --- 406,410 ---- // but, for the moment 2002-06-12 luis mondesi: $sql="SELECT story_id, title, dept, ". ! " UNIX_TIMESTAMP(time) as pretty_time, ". " intro_text FROM psl_story ". " WHERE time >= '$begdate' AND time <= '$enddate' ORDER BY time DESC"; *************** *** 417,424 **** while($slash_q->next_record()){ GLOBAL $siteurl; ! $headline = "\n".format_mail($slash_q->Record["title"],500,true) . "\n"; ! $headline .= " From the: \"" . $slash_q->Record["dept"] . "\" dept.\n"; ! $headline .= " Posted on: \"" . $slash_q->Record["pretty_time"] . "\n"; ! $headline .= " Story: " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; $headline .= " ".$siteurl."/article.php3?story_id=" . $slash_q->Record["story_id"]."\n"; $headline .= "---------------------------------------------------------------------------------------------\n\n"; --- 417,426 ---- while($slash_q->next_record()){ GLOBAL $siteurl; ! $headline = "\n" . pslgetText("Story") . ": ".format_mail($slash_q->Record["title"],500,true) . "\n"; ! // $headline = "\nStory: ".format_mail($slash_q->Record["title"],500,true) . "\n"; ! $headline .= " " . pslgetText("Written") . ": " . psl_dateTimeLong($slash_q->Record["pretty_time"]) . "\n"; ! // $headline .= " Written: " . psl_dateTimeLong($slash_q->Record["pretty_time"]) . "\n"; ! $headline .= " " . pslgetText("Intro") . ": " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; ! // $headline .= " Intro: " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; $headline .= " ".$siteurl."/article.php3?story_id=" . $slash_q->Record["story_id"]."\n"; $headline .= "---------------------------------------------------------------------------------------------\n\n"; *************** *** 547,549 **** --- 549,552 ---- */ }//closes the mail function + ?> |