You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:41
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/weblogs/templates/Infinity/lang_english Added Files: icon_aim.gif icon_edit.gif icon_email.gif icon_icq_add.gif icon_ip.gif icon_msnm.gif icon_pm.gif icon_profile.gif icon_quote.gif icon_search.gif icon_weblog.gif icon_www.gif icon_yim.gif newentry.gif reply-locked.gif reply.gif Log Message: mx_blogs, Initial checkin --- NEW FILE: icon_edit.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_email.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_quote.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newentry.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_icq_add.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_yim.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_pm.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_profile.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_search.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_aim.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: reply-locked.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_msnm.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: reply.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_www.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_weblog.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_ip.gif --- (This appears to be a binary file; contents omitted.) |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:41
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/weblogs/templates/Infinity/images Added Files: delete.gif edit.gif lock.gif quotes.gif trackback.gif Log Message: mx_blogs, Initial checkin --- NEW FILE: edit.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: trackback.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: delete.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: quotes.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lock.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/weblogs/templates/Infinity Added Files: Copy of weblog_header.htm Infinity.cfg Infinity.css InfinityBlue.css InfinityGreen.css InfinityOrange.css InfinityRed.css entry.gif entry_hot.gif entry_locked.gif entry_locked_new.gif entry_memorable.gif entry_memorable_locked.gif entry_memorable_locked_new.gif entry_memorable_new.gif entry_new.gif entry_new_hot.gif icon_delete.gif icon_latest_reply.gif icon_newest_reply.gif preview_img.gif print.css styleswitcher.js weblog_allentries_body.htm weblog_blocked_body.htm weblog_body.htm weblog_confirm_body.htm weblog_contributors_body.htm weblog_entry_body.htm weblog_faceplate_body.htm weblog_footer.htm weblog_friends_body.htm weblog_header.20060504.htm weblog_header.htm weblog_login_body.htm weblog_message_body.htm weblog_mini_box.htm weblog_posting_body.htm weblog_s_body.htm Log Message: mx_blogs, Initial checkin --- NEW FILE: weblog_s_body.htm --- <div class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a></div> <div id="loggedInList">{LOGGED_IN_USER_LIST}</div> <!-- BEGIN switch_contributor_only --> <a href="{U_POST_ENTRY}" class="specialLink"><img src="{PHPURL}weblogs/templates/orangeBlue/images/edit.gif" alt="{L_POST_NEW_ENTRY}" />{L_POST_NEW_ENTRY}</a> <!-- END switch_contributor_only --> <div id="mainColumn"> <!-- BEGIN entryrow --> <div class="entry"> <h1>{entryrow.SUBJECT}</h1> <h2>{entryrow.TIME_DATE}</h2> <div class="entryContent"> <div class="entryTop"><a href="{entryrow.U_TRACKBACKS}">{entryrow.TRACKBACK_IMG} {entryrow.NUM_TRACKBACKS}</a> [ <a href="{entryrow.U_PERMALINK}">{L_PERMALINK}</a> ] <a href="{entryrow.U_EDIT}">{entryrow.EDIT_IMG}</a> <a href="{entryrow.U_DELETE}">{entryrow.DELETE_IMG}</a></div> <div class="entryCategory">{entryrow.CATEGORY}</div> <div class="entryMood">{entryrow.MOOD}</div> <div class="entryCurrently">{entryrow.CURRENTLY}</div> <div>{entryrow.LOCKED_ICON}</div> <div class="contents">{entryrow.ENTRY}</div> <div class="entryBottom"> <div class="postedby">{entryrow.POSTED_BY}</div> <div class="comments"><a href="{entryrow.U_VIEW_COMMENTS}" title="{L_VIEW_COMMENTS}">{entryrow.REPLIES}</a> <a href="{entryrow.U_POST_COMMENT}"{entryrow.OPEN_NEW_WINDOW} rel="nofollow" title="{L_COMMENT_ON_ENTRY}">{entryrow.POST_COMMENT}</a></div> </div> </div> </div> <!-- END entryrow --> </div> <div id="rightColumn"> <div class="block"> <div class="blockHeader"></div> <div class="blockContent"> <div id="avatar">{AVATAR_IMG}</div> <div id="blog_desc">{WEBLOG_DESCRIPTION}</div> <table> <tr> <th>{L_WEBLOG_OWNER}:</th> <td>[ <a href="{U_PROFILE}">{WEBLOG_OWNER}</a> ]</td> </tr> <tr> <th>{L_CONTRIBUTORS}:</th> <td>[ {CONTRIBUTORS} ]</td> </tr> <!-- BEGIN switch_owner_only --> <tr> <th></th> <td>[ <a href="{U_CONTRIBUTORS}">{L_EDIT_CONTRIBUTORS}</a> ]</td> </tr> <!-- END switch_owner_only --> <tr> <th>{L_WEBLOG}:</th> <td>[ <a href="{U_ALL_ENTRIES}">{L_VIEW_ALL_ENTRIES}</a> ]</td> </tr> <tr> <th></th> <td>[ <a href="{U_FRIENDS_LIST}">{L_FRIENDS_LIST}</a> ]</td> </tr> <!-- BEGIN switch_contributor_only --> <tr> <th></th> <td>[ <a href="{U_BLOCKED_LIST}">{L_BLOCKED_LIST}</a> ]</td> </tr> <!-- END switch_contributor_only --> <!-- BEGIN switch_owner_only --> <tr> <th></th> <td>[ <a href="{U_WEBLOG_CP}">{L_WEBLOG_CP}</a> ]</td> </tr> <!-- END switch_owner_only --> <tr> <th>{L_GO}:</th> <td>[ <strong>{U_BACK}/{U_FORWARD}</strong> ]</td> </tr> </table> </div> </div> <!-- BEGIN switch_show_calendar --> <div class="block"> <div class="blockHeader">{L_CALENDAR}</div> <div class="blockContent"> <form action="{S_FORM_ACTION}" method="get">{DATE_SELECT}{S_HIDDEN_FIELD} <input type="submit" accesskey="c" name="submit" value="{L_GO}" /> </form> <table id="calendar" cellspacing="0"> <tr> <th><a href="{U_PREVIOUS_YEAR}" id="yearLeft">«</a></th> <th><a href="{U_PREVIOUS_MONTH}" id="monthLeft"><</a></th> <th colspan="3">{MONTH} {YEAR}</th> <th><a href="{U_NEXT_MONTH}" id="yearRight">></a></th> <th><a href="{U_NEXT_YEAR}" id="monthRight">»</a></th> </tr> <tr> <!-- BEGIN no_day --> <td class="nodaycell"></td> <!-- END no_day --> <!-- BEGIN day_cell --> <td class="{switch_show_calendar.day_cell.DAY_CLASS}">{switch_show_calendar.day_cell.NUM_DAY}</td>{switch_show_calendar.day_cell.WEEK_ROW} <!-- END day_cell --> <!-- BEGIN no_day2 --> <td class="nodaycell"></td> <!-- END no_day2 --> </tr> </table> </div> </div> <!-- END switch_show_calendar --> <!-- BEGIN switch_shoutbox --> <div class="block"> <div class="blockHeader">{L_SHOUTBOX}</div> <div class="blockContent"> <div id="shoutbox"> <!-- BEGIN shoutrow --> <div{switch_shoutbox.shoutrow.ROW_CLASS}> <div class="shoutdelete"><a href="{switch_shoutbox.shoutrow.U_DELETE}">{switch_shoutbox.shoutrow.DELETE_IMG}</a></div> <div class="shoutboxPoster">{switch_shoutbox.shoutrow.POSTER}</div> <div class="shoutboxTimeDate">{switch_shoutbox.shoutrow.TIME_DATE}</div> <div class="shout">{switch_shoutbox.shoutrow.MESSAGE}</div> </div> <!-- END shoutrow --> <!-- BEGIN switch_no_shouts --> <div class="noshouts">{L_NO_SHOUTS}</div> <!-- END switch_no_shouts --> </div> <form action="{S_FORM_ACTION}" method="post" name="post"> <!-- BEGIN switch_user_logged_out --> <label for="username">{L_NAME}:</label><input type="text" name="username" id="username" /> <label for="www">{L_WEBSITE}:</label><input type="text" name="www" id="www" /> <!-- END switch_user_logged_out --> <label for="message">{L_SHOUT}:</label><textarea name="message" id="message" rows="6" cols="10"></textarea> <div><a href="{U_VIEW_SMILIES}" onclick="window.open('{U_VIEW_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_VIEW_SMILIES}</a></div> <div class="submit"><input type="submit" accesskey="s" name="submit" class="mainoption" value="{L_SUBMIT}" /><input type="reset" name="reset" class="liteoption" value="{L_RESET}" /></div> </form> </div> </div> <!-- END switch_shoutbox --> <!-- BEGIN custom_block --> <div class="block"> <div class="blockHeader">{CUSTOM_BLOCK_TITLE}</div> <div class="blockContent"> {S_CUSTOM_BLOCK} </div> </div> <!-- END custom_block --> <!-- BEGIN switch_contact_user --> <div class="block"> <div class="blockHeader">{CONTACT_OWNER}</div> <div class="blockContent"> <div class="infoTitle">{L_EMAIL_ADDRESS}</div> <div class="info"><a href="{U_SEND_EMAIL}">{EMAIL}</a></div> <div class="infoTitle">{L_PRIVATE_MESSAGE}</div> <div class="info"><a href="{U_SEND_PRIVATE_MESSAGE}">{L_SEND_PM}</a></div> <div class="infoTitle">{L_MSN_MESSENGER}</div> <div class="info">{MSN_MESSENGER}</div> <div class="infoTitle">{L_YAHOO_MESSENGER}</div> <div class="info"><a href="{U_YIM}">{YAHOO_MESSENGER}</a></div> <div class="infoTitle">{L_AIM_ADDRESS}</div> <div class="info"><a href="{U_AIM}">{AOL_MESSENGER}</a></div> <div class="infoTitle">{L_ICQ_NUMBER}</div> <div class="info"><a href="{U_ICQ}">{ICQ_NUMBER}</a></div> </div> </div> <!-- END switch_contact_user --> <!-- BEGIN switch_show_profile --> <div class="block"> <div class="blockHeader">{ABOUT_OWNER}</div> <div class="blockContent"> <div class="infoTitle">{L_JOINED}</div> <div class="info">{JOINED_DATE}</div> <div class="infoTitle">{L_LOCATION}</div> <div class="info">{LOCATION}</div> <div class="infoTitle">{L_OCCUPATION}</div> <div class="info">{OCCUPATION}</div> <div class="infoTitle">{L_INTERESTS}</div> <div class="info">{INTERESTS}</div> </div> </div> <!-- END switch_show_profile --> <!-- BEGIN switch_show_info --> <div class="block"> <div class="blockHeader">{L_WEBLOG}</div> <div class="blockContent"> <div class="infoTitle">{L_WEBLOG_STARTED}</div> <div class="info">{STARTED_DATE}</div> <div class="infoTitle">{L_TOTAL_ENTRIES}</div> <div class="info">{NUMBER_OF_ENTRIES}</div> <div class="infoTitle">{L_WEBLOG_AGE}</div> <div class="info">{WEBLOG_AGE}</div> <div class="infoTitle">{L_TOTAL_REPLIES}</div> <div class="info">{NUMBER_OF_REPLIES}</div> <div class="infoTitle">{L_VISITS}</div> <div class="info">{NUMBER_OF_VISITS}</div> </div> </div> <!-- END switch_show_info --> <div class="block"> <div class="blockHeader">RSS</div> <div class="blockContent"> <a href="{U_RSS_FEED}"><img src="{PHPURL}images/xml.gif" alt="{L_RSS}" border="0" /></a> </div> </div> </div> --- NEW FILE: weblog_blocked_body.htm --- <h1>{L_BLOCKED_USERS}</h1> <div class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a></div> <div>{L_BLOCKED_USERS}: <!-- BEGIN blockedrow --> <a href="{blockedrow.U_PROFILE}">{blockedrow.BLOCKED_USER}</a> <!-- END blockedrow --> </div> <form action="{S_BLOCK_ACTION}" method="post" style="text-align: center"> <div class="entryExpanded"> <input type="text" name="blockeduser" maxlength="255" tabindex="1" size="20" /> <input type="submit" name="blockuser" value="{L_BLOCK_USER}" class="mainoption" tabindex="2" /> <input type="submit" name="removeuser" value="{L_REMOVE_USER}" tabindex="3" /> <br /> {L_BLOCK_USERS_EXPLAIN} </div> <div class="entryExpanded"> {S_GROUP_SELECT} <input type="submit" name="blockgroup" value="{L_BLOCK_GROUP}" class="mainoption" tabindex="5" /> <input type="submit" name="removegroup" value="{L_REMOVE_GROUP}" tabindex="6" /> </div> </form> --- NEW FILE: icon_newest_reply.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weblog_allentries_body.htm --- <div id="loggedInList">{LOGGED_IN_USER_LIST}</div> <div class="middleBar"> <div id="page_numer">{PAGE_NUMBER}</div> <div id="pagination">{PAGINATION}</div> </div> <!-- BEGIN switch_weblog_owner --> <a href="{U_POST_NEW_ENTRY}" class="specialLink"><img src="weblogs/templates/orangeBlue/images/edit.gif" alt="{L_POST_NEW_ENTRY}" />{L_POST_NEW_ENTRY}</a> <!-- END switch_weblog_owner --> <div class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a> </div> <table cellspacing="0" id="allentries"> <tr> <th colspan="3">{L_ENTRIES}</th> <th>{L_REPLIES}</th> <th>{L_VIEWS}</th> <th>{L_LASTREPLY}</th> </tr> <!-- BEGIN entryrow --> <tr> <td class="entryIcon"><img src="{entryrow.ENTRY_ICON}" alt="{entryrow.L_ENTRY_ICON_ALT}" title="{entryrow.L_ENTRY_ICON_ALT}" /></td> <td class="entryState"><div>{entryrow.MOOD}</div><div>{entryrow.ACTION}</div></td> <td class="entryDetails">{entryrow.NEWEST_ENTRY_IMG}{entryrow.MEMORABLE}<a href="{entryrow.U_VIEW_ENTRY}">{entryrow.ENTRY_SUBJECT}</a> <br />{entryrow.GOTO_PAGE}</td> <td class="entryReplies" style="text-align: center">{entryrow.REPLIES}</td> <td class="entryViews" style="text-align: center">{entryrow.VIEWS}</td> <td class="entryLastPost" style="text-align: center; white-space: nowrap">{entryrow.LAST_POST_TIME}<br />{entryrow.LAST_POST_AUTHOR} {entryrow.LAST_POST_IMG}</td> </tr> <!-- END entryrow --> <!-- BEGIN switch_no_entries --> <tr> <td class="rowMessage" colspan="6">{L_NO_ENTRIES}</td> </tr> <!-- END switch_no_entries --> <tr> <td class="tdBottom" colspan="6"> <form action="{S_POST_DAYS_ACTION}" action="post"> {L_DISPLAY_ENTRIES}:{S_SELECT_ENTRY_DAYS} <input type="submit" value="{L_GO}" name="submit" /> </form> </td> </tr> </table> <!-- BEGIN switch_weblog_owner --> <a href="{U_POST_NEW_ENTRY}" class="specialLink"><img src="weblogs/templates/orangeBlue/images/edit.gif" alt="{L_POST_NEW_ENTRY}" />{L_POST_NEW_ENTRY}</a> <!-- END switch_weblog_owner --> <div class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a> </div> --- NEW FILE: entry.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: entry_locked.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: print.css --- body { color: black; background: white } #rightColumn, #loggedInList, .nav, .entryTop, .comments { display: none } .entryContent { border: none } #title { font-size: 18pt } h1 { font-size: 14pt } h2 { font-size: 12pt } h3 { font-size: 11pt } #footer { font-size: 8pt; margin-top: 1em; text-align: center } .postedby { font-size: 8pt } --- NEW FILE: icon_latest_reply.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: InfinityGreen.css --- /* COLOR */ @import "Infinity.css"; body { color: black; background: #F0FFF0 } hr { border: 0; border-top: 1px green solid; } #wrapper { background: white; border: 1px green solid } a:link { color: green; } a:active { color: #33FF33; } a:visited { color: #009900; } a:hover { color: #77CC77; } h1 { color: green; } h2 { color: #009900; } textarea { color: green; border: 1px green solid;} .blockHeader{ color: green; } .infoTitle { color: green; } #header { background: green; border: 3px green double; } #title { color: white; } input { border: 1px green solid; background: white } input:hover { color: green; font-weight: bold } .specialLink{ background: #F0FFF0; border: 1px green solid; } .specialLink:hover { background: green; color: white; text-decoration: none } #footer { border-top: 1px green dashed; } .blockContent { background: #F0FFF0; border: 1px green solid; } .entryContent, .entryExpanded { background: #F0FFF0; border: 1px green solid; } #calendar { background: #F0FFF0; border: 1px green solid; } #calendar th { background: green; color: #FFEFEF } #calendar th a { color: #FFEFEF } .daycell a { background: #CCFFCC; } .daycell { border: 1px; } #calendar a:hover { background: white; border: 1px green solid; color: green } .row1, .entryIcon, .entryState, .entryDetails, .rowMessage { background: #F0FFF0; } .row2, .entryReplies, .entryViews, .entryLastPost, .tdBottom { background: #E5FFE5; } #shoutbox { border: 1px green solid } #allentries th { background: green; color: white; padding: 5px; } #allentries td { padding: 5px; } #allentries { border: 1px green solid; background: white } #allreplies th { background: green; color: white; padding: 5px } #allreplies td { padding: 5px; } #allreplies { border: 1px green solid; background: white } .selectedBBCode, .bbcode:hover { background: green; color: white; font-weight: normal } .selectedBBCode:hover, .bbcode { background: white; color: green; font-weight: normal } #postTable th { background: green; padding: 5px; color: white} #postTable { border: 1px green solid; } --- NEW FILE: weblog_header.htm --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="author" content="{WEBLOG_OWNER}" /> <meta name="description" content="{WEBLOG_DESCRIPTION}" /> {META} <link rel="alternate" type="application/rss+xml" title="{PAGE_TITLE} - RSS 2.0" href="{U_RSS_FEED}" /> <link rel="alternate" type="application/rss+xml" title="{L_LATEST_WEBLOGS} RSS" href="{U_RSS}" /> <link rel="stylesheet" href="weblogs/templates/Infinity/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="weblogs/templates/Infinity/InfinityOrange.css" title="InfinityOrange" media="screen" /> <link rel="alternate stylesheet" href="weblogs/templates/Infinity/InfinityBlue.css" title="InfinityBlue" media="screen" /> <link rel="alternate stylesheet" href="weblogs/templates/Infinity/InfinityGreen.css" title="InfinityGreen" media="screen" /> <link rel="alternate stylesheet" href="weblogs/templates/Infinity/InfinityRed.css" title="InfinityRed" media="screen" /> <title>{PAGE_TITLE}</title> <style type="text/css"> <!-- body { background-image: {BACKGROUND_IMAGE}; background-attachment: {BACKGROUND_IMAGE_FIXED}; background-repeat: {BACKGROUND_REPEAT}; background-position: {BACKGROUND_POSITION}; font-family: {FONT}; color: #{FONT_COLOR}; scrollbar-face-color: #{SB_FACE_COLOR}; scrollbar-highlight-color: #{SB_HIGHLIGHT_COLOR}; scrollbar-shadow-color: #{SB_SHADOW_COLOR}; scrollbar-3dlight-color: #{SB_3DLIGHT_COLOR}; scrollbar-arrow-color: #{SB_ARROW_COLOR}; scrollbar-track-color: #{SB_TRACK_COLOR}; scrollbar-darkshadow-color: #{SB_DARKSHADOW_COLOR}; } a.nav { font-family: {FONT}; } a:link { text-decoration: {NORMAL_LINK_UNDERLINED}; } a:active { text-decoration: {ACTIVE_LINK_UNDERLINED}; } a:visited { text-decoration: {VISITED_LINK_UNDERLINED}; } a:hover { text-decoration: {HOVER_LINK_UNDERLINED}; } h1 { font-size: {ENTRY_TITLE_FONT_SIZE}pt; } h2 { font-size: {DATE_TIME_FONT_SIZE}pt; } #styleSwitcher { overflow: auto; float: right } a.switchOrange, a.switchGreen, a.switchBlue, a.switchRed { margin: 0 3px; display: block; width: 1.5em; height: 1.5em; float: left; } a.switchOrange { background: #FFCC80; } a.switchGreen { background: #80FF80; } a.switchBlue { background: #8080FF; } a.switchRed { background: #FF8080; } a.switchOrange:hover { background: orange; } a.switchGreen:hover { background: lime; } a.switchBlue:hover { background: blue; } a.switchRed:hover { background: red; } --> </style> <script language="JavaScript" type="text/javascript"> <!-- function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; } function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") ) return a.getAttribute("title"); } return null; } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } window.onload = function(e) { var cookie = readCookie("weblog{WEBLOG_ID}"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); } window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("weblog{WEBLOG_ID}", title, 365); } var cookie = readCookie("weblog{WEBLOG_ID}"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); --> </script> </head> <body> <script language="JavaScript" type="text/javascript"> <!-- function emoticon(text) { var txtarea = document.post.message; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } --> </script> <div id="wrapper"> <div id="header"> <div id="title">{WEBLOG_NAME}</div> </div> <div id="styleSwitcher"> <a href="#" onclick="setActiveStyleSheet('InfinityOrange'); return false;" class="switchOrange"></a> <a href="#" onclick="setActiveStyleSheet('InfinityBlue'); return false;" class="switchBlue"></a> <a href="#" onclick="setActiveStyleSheet('InfinityGreen'); return false;" class="switchGreen"></a> <a href="#" onclick="setActiveStyleSheet('InfinityRed'); return false;" class="switchRed"></a> </div> --- NEW FILE: entry_memorable_new.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weblog_footer.htm --- <!-- We request you retain the full copyright notice below including the link to www.phpbb.com. This not only gives respect to the large amount of time given freely by the developers but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good reason) retain the full copyright we request you at least leave in place the Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to www.phpbb.com. If you refuse to include even this then support on our forums may be affected. The phpBB Group : 2002 // --> <div id="footer"> <div>{L_POWERED_BY}</div> <div>Powered by <a href="http://www.phpbb.com/" target="_phpbb">phpBB</a> {PHPBB_VERSION} © 2001, 2002 phpBB Group</div> <div>Weblog Template by <a href="http://www.theblogmod.com/community/viewforum.php?f=6" target=_blank>Hyperion & TheBlogMod.com</a></div> </div> </div> </body> </html> --- NEW FILE: preview_img.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weblog_header.20060504.htm --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="author" content="{WEBLOG_OWNER}" /> <meta name="description" content="{WEBLOG_DESCRIPTION}" /> {META} <link rel="alternate" type="application/rss+xml" title="{PAGE_TITLE} - RSS 2.0" href="{U_RSS_FEED}" /> <link rel="alternate" type="application/rss+xml" title="{L_LATEST_WEBLOGS} RSS" href="{U_RSS}" /> <link rel="stylesheet" href="weblogs/templates/Infinity/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="weblogs/templates/Infinity/InfinityOrange.css" title="InfinityOrange" media="screen" /> <link rel="alternate stylesheet" href="weblogs/templates/Infinity/InfinityBlue.css" title="InfinityBlue" media="screen" /> <link rel="alternate stylesheet" href="weblogs/templates/Infinity/InfinityGreen.css" title="InfinityGreen" media="screen" /> <link rel="alternate stylesheet" href="weblogs/templates/Infinity/InfinityRed.css" title="InfinityRed" media="screen" /> <title>{PAGE_TITLE}</title> <style type="text/css"> <!-- body { background-image: {BACKGROUND_IMAGE}; background-attachment: {BACKGROUND_IMAGE_FIXED}; background-repeat: {BACKGROUND_REPEAT}; background-position: {BACKGROUND_POSITION}; font-family: {FONT}; color: #{FONT_COLOR}; scrollbar-face-color: #{SB_FACE_COLOR}; scrollbar-highlight-color: #{SB_HIGHLIGHT_COLOR}; scrollbar-shadow-color: #{SB_SHADOW_COLOR}; scrollbar-3dlight-color: #{SB_3DLIGHT_COLOR}; scrollbar-arrow-color: #{SB_ARROW_COLOR}; scrollbar-track-color: #{SB_TRACK_COLOR}; scrollbar-darkshadow-color: #{SB_DARKSHADOW_COLOR}; } a.nav { font-family: {FONT}; } a:link { text-decoration: {NORMAL_LINK_UNDERLINED}; } a:active { text-decoration: {ACTIVE_LINK_UNDERLINED}; } a:visited { text-decoration: {VISITED_LINK_UNDERLINED}; } a:hover { text-decoration: {HOVER_LINK_UNDERLINED}; } h1 { font-size: {ENTRY_TITLE_FONT_SIZE}pt; } h2 { font-size: {DATE_TIME_FONT_SIZE}pt; } #styleSwitcher { overflow: auto; float: right } a.switchOrange, a.switchGreen, a.switchBlue, a.switchRed { margin: 0 3px; display: block; width: 1.5em; height: 1.5em; float: left; } a.switchOrange { background: #FFCC80; } a.switchGreen { background: #80FF80; } a.switchBlue { background: #8080FF; } a.switchRed { background: #FF8080; } a.switchOrange:hover { background: orange; } a.switchGreen:hover { background: lime; } a.switchBlue:hover { background: blue; } a.switchRed:hover { background: red; } --> </style> <script language="JavaScript" type="text/javascript"> <!-- function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; } function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") ) return a.getAttribute("title"); } return null; } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } window.onload = function(e) { var cookie = readCookie("weblog{WEBLOG_ID}"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); } window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("weblog{WEBLOG_ID}", title, 365); } var cookie = readCookie("weblog{WEBLOG_ID}"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); --> </script> <BASE HREF="http://theblogmod.com/community/"> </head> <body> <script language="JavaScript" type="text/javascript"> <!-- function emoticon(text) { var txtarea = document.post.message; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } --> </script> <div id="wrapper"> <div id="header"> <div id="title">{WEBLOG_NAME}</div> </div> <div id="styleSwitcher"> <a href="#" onclick="setActiveStyleSheet('InfinityOrange'); return false;" class="switchOrange"></a> <a href="#" onclick="setActiveStyleSheet('InfinityBlue'); return false;" class="switchBlue"></a> <a href="#" onclick="setActiveStyleSheet('InfinityGreen'); return false;" class="switchGreen"></a> <a href="#" onclick="setActiveStyleSheet('InfinityRed'); return false;" class="switchRed"></a> </div> --- NEW FILE: weblog_friends_body.htm --- <h1>{L_WEBLOG_FRIENDS}</h1> <div class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a></div> <div>{L_FRIENDS}: <!-- BEGIN friendrow --> <a href="{friendrow.U_PROFILE}">{friendrow.FRIEND}</a> <!-- END friendrow --> </div> <div>{L_FRIEND_OF}: <!-- BEGIN friendofrow --> <a href="{friendofrow.U_PROFILE}">{friendofrow.FRIEND}</a> <!-- END friendofrow --> </div> <!-- BEGIN switch_owner --> <form action="{S_ADDFRIENDS_ACTION}" method="post" style="text-align: center"> <div class="entryExpanded"> <input type="text" name="friend" maxlength="255" tabindex="1" size="20" /> <input type="submit" name="addfriend" value="{L_ADD_FRIEND}" class="mainoption" tabindex="2" /> <input type="submit" name="removeuser" value="{L_REMOVE_USER}" tabindex="3" /> <br /> {L_ADD_FRIEND_EXPLAIN} </div> <div class="entryExpanded"> {S_GROUP_SELECT} <input type="submit" name="addgroup" value="{L_ADD_GROUP}" class="mainoption" tabindex="5" /> <input type="submit" name="removegroup" value="{L_REMOVE_GROUP}" tabindex="6" /> </div> </form> <!-- END switch_owner --> <!-- BEGIN friendsrow --> <style type="text/css"> <!-- #{friendsrow.ID} { width: 100%; } #{friendsrow.ID} td { background-color: #{friendsrow.BLOCK_BG_COLOR}; border: 1px #{friendsrow.BLOCK_BORDER_COLOR} solid; font-family: {friendsrow.FONT}; font-size: {friendsrow.FONT_SIZE}pt; color: #{friendsrow.FONT_COLOR}; } #{friendsrow.ID} a:link { text-decoration: {friendsrow.NORMAL_LINK_UNDERLINED}; color : #{friendsrow.NORMAL_LINK_COLOR}; font-weight: bold; } #{friendsrow.ID} a:active { text-decoration: {friendsrow.ACTIVE_LINK_UNDERLINED}; color : #{friendsrow.ACTIVE_LINK_COLOR}; font-weight: bold; } #{friendsrow.ID} a:visited { text-decoration: {friendsrow.VISITED_LINK_UNDERLINED}; color : #{friendsrow.VISITED_LINK_COLOR}; font-weight: bold; } #{friendsrow.ID} a:hover { text-decoration: {friendsrow.HOVER_LINK_UNDERLINED}; color : #{friendsrow.HOVER_LINK_COLOR}; } #{friendsrow.ID} h1 { font-size: {friendsrow.ENTRY_TITLE_FONT_SIZE}pt; font-weight: bold; color: #{friendsrow.ENTRY_TITLE_COLOR}; padding: 0; margin: 0 } #{friendsrow.ID} h2 { font-size: {friendsrow.DATE_TIME_FONT_SIZE}pt; color: #{friendsrow.DATE_TIME_COLOR}; padding: 0; margin: 0 } #{friendsrow.ID} hr { height: 1px; border: 1px #{friendsrow.BORDER_COLOR} solid; } --> </style> <table id="{friendsrow.ID}"> <tr> <td width="20%" align="center"> <a href="{friendsrow.U_WEBLOG}">{friendsrow.WEBLOG_NAME}</a><br /> <a href="{friendsrow.U_PROFILE}">{friendsrow.AVATAR_IMG}<br />{friendsrow.FRIEND}</a> </td> <td> <h1>{friendsrow.SUBJECT}</h1> <h2>{friendsrow.TIME_DATE}</h2> <div class="padding"> <div>{friendsrow.MOOD}</div> <div>{friendsrow.CURRENTLY}</div> <p>{friendsrow.ENTRY}</p> <div style="float: right"><a href="{friendsrow.U_VIEW_COMMENTS}">{friendsrow.REPLIES}</a> <a href="{friendsrow.U_POST_COMMENT}">{friendsrow.POST_COMMENT}</a></div> </div> </td> </tr> </table> <!-- END friendsrow --> --- NEW FILE: weblog_posting_body.htm --- <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_moz = 0; var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.message.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { var txtarea = document.post.message; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.message; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); } function bbstyle(bbnumber) { var txtarea = document.post.message; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode'+butnumber+'.className = "bbcode"'); } imageTag = false; // All tags are closed including image tags :D txtarea.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode'+bbnumber+'.className = "bbcode"'); imageTag = false; } txtarea.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.className = "selectedBBCode"'); txtarea.focus(); return; } storeCaret(txtarea); } // From http://www.massless.org/mozedit/ function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; return; } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } function update_mood(newimage) { document.mood_image.src = "{PHPURL}images/weblogs/" + newimage; } function update_currently(newimage) { document.action_image.src = "{PHPURL}images/weblogs/" + newimage; } function update_category(newcategory) { document.post.category.value = newcategory; } //--> </script> <!-- BEGIN switch_preview --> <div class="entry"> <h1>{PREVIEW_SUBJECT}</h1> <div class="entryContent"> <div class="entryMood">{PREVIEW_MOOD}</div> <div class="entryCurrently">{PREVIEW_ACTION}</div> <div class="entryCategory">{PREVIEW_CATEGORY}</div> <div class="contents">{PREVIEW_MESSAGE}</div> </div> </div> <!-- END switch_preview --> <!-- BEGIN switch_post_reply --> <table cellspacing="0" id="allreplies"> <tr> <th id="thAuthor">{L_AUTHOR}</th> <th>{L_MESSAGE}</th> </tr> <!-- BEGIN postrow --> <tr> <td class="{switch_post_reply.postrow.ROW_CLASS}"><a name="{switch_post_reply.postrow.U_REPLY_ID}"></a><strong>{switch_post_reply.postrow.POSTER_NAME}</strong> </td> <td class="{switch_post_reply.postrow.ROW_CLASS}">{switch_post_reply.postrow.MESSAGE}</td> </tr> <!-- END postrow --> <!-- BEGIN switch_no_replies --> <tr> <td colspan="2" class="tdBottom">{L_ENTRY_NO_REPLIES}</td> </tr> <!-- END switch_no_replies --> </table> <!-- END switch_post_reply --> <!-- BEGIN switch_not_popup --> <div class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a></div> <!-- END switch_not_popup --> <form action="{S_POST_ACTION}" method="post" name="post" enctype="multipart/form-data"> <table cellspacing="0" id="postTable"> <tr> <th colspan="2">{MODE}</th> </tr> <!-- BEGIN switch_username_select --> <tr> <td class="row1"><label for="username">{L_USERNAME}</label></td> <td class="row2"> <input type="text" class="textField" tabindex="1" name="username" id="username" size="25" maxlength="25" value="{USERNAME}" /> </td> </tr> <!-- END switch_username_select --> <!-- BEGIN switch_post_entry --> <tr> <td class="row1"><label for="subject">{L_SUBJECT}</label></td> <td class="row2"> <input type="text" class="textField" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" /> </td> </tr> <tr> <td class="row1"><label for="mood">{L_MOOD}</label></td> <td class="row2">{SELECT_MOOD}<img name="mood_image" src="{PHPURL}images/weblogs/{MOOD_IMG}" alt="{L_MOOD}" /></td> </tr> <tr> <td class="row1"><label for="action">{L_ACTION}</label></td> <td class="row2"> {ACTION_SELECT}<img name="action_image" src="{PHPURL}images/weblogs/{ACTION_IMG}" alt="{L_ACTION}" /><br /><input type="text" class="textField" name="action_text" id="action_text" size="45" maxlength="100" tabindex="5" value="{ACTION_TEXT}" /> </td> </tr> <tr> <td class="row1"><label for="category">{L_CATEGORY}</label></td> <td class="row2"> {CATEGORY_SELECT}<br /><input type="text" class="textField" name="category" id="category" size="45" maxlength="100" tabindex="7" value="{CATEGORY}" /> </td> </tr> <!-- END switch_post_entry --> <tr> <td class="row1"> <label for="message">{L_MESSAGE_BODY}</label> <table cellspacing="0" id="smiliesTable"> <tr> <th colspan="{S_SMILIES_COLSPAN}">{L_EMOTICONS}</th> </tr> <!-- BEGIN smilies_row --> <tr> <!-- BEGIN smilies_col --> <td><img src="{smilies_row.smilies_col.SMILEY_IMG}" class="smiley" onclick="emoticon('{smilies_row.smilies_col.SMILEY_CODE}');" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></td> <!-- END smilies_col --> </tr> <!-- END smilies_row --> <!-- BEGIN switch_smilies_extra --> <tr> <td colspan="{S_SMILIES_COLSPAN}"><a href="{U_MORE_SMILIES}" id="smiliesExtra" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies">{L_MORE_SMILIES}</a></td> </tr> <!-- END switch_smilies_extra --> </table> </td> <td class="row2"> <div id="bbcodeButtons"> <input type="button" class="bbcode" accesskey="b" name="addbbcode0" value="B" onclick="bbstyle(0)" onmouseover="helpline('b')" style="font-weight: bold" /> <input type="button" class="bbcode" accesskey="i" name="addbbcode2" value="i" onclick="bbstyle(2)" onmouseover="helpline('i')" style="font-style: italic" /> <input type="button" class="bbcode" accesskey="u" name="addbbcode4" value="u" onclick="bbstyle(4)" onmouseover="helpline('u')" style="text-decoration: underline" /> <input type="button" class="bbcode" accesskey="q" name="addbbcode6" value="Quote" onclick="bbstyle(6)" onmouseover="helpline('q')" /> <input type="button" class="bbcode" accesskey="c" name="addbbcode8" value="Code" onclick="bbstyle(8)" onmouseover="helpline('c')" /> <input type="button" class="bbcode" accesskey="l" name="addbbcode10" value="List" onclick="bbstyle(10)" onmouseover="helpline('l')" /> <input type="button" class="bbcode" accesskey="o" name="addbbcode12" value="List=" onclick="bbstyle(12)" onmouseover="helpline('o')" /> <input type="button" class="bbcode" accesskey="p" name="addbbcode14" value="Img" onclick="bbstyle(14)" onmouseover="helpline('p')" /> <input type="button" class="bbcode" accesskey="w" name="addbbcode16" value="URL" onclick="bbstyle(16)" onmouseover="helpline('w')" /> </div> <div id="fontStyles"> <a href="javascript:bbstyle(-1)" class="closeTags" onmouseover="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a> <label for="font_color">{L_FONT_COLOR}:</label> <select name="addbbcode18" id="font_color" onchange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onmouseover="helpline('s')"> <option style="color:black;" value="black">{L_COLOR_DEFAULT}</option> <option style="color:darkred;" value="darkred">{L_COLOR_DARK_RED}</option> <option style="color:red;" value="red">{L_COLOR_RED}</option> <option style="color:orange;" value="orange">{L_COLOR_ORANGE}</option> <option style="color:brown;" value="brown">{L_COLOR_BROWN}</option> <option style="color:yellow;" value="yellow">{L_COLOR_YELLOW}</option> <option style="color:green;" value="green">{L_COLOR_GREEN}</option> <option style="color:olive;" value="olive">{L_COLOR_OLIVE}</option> <option style="color:cyan;" value="cyan">{L_COLOR_CYAN}</option> <option style="color:blue;" value="blue">{L_COLOR_BLUE}</option> <option style="color:darkblue;" value="darkblue">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo;" value="indigo">{L_COLOR_INDIGO}</option> <option style="color:violet;" value="violet">{L_COLOR_VIOLET}</option> <option style="color:white;" value="white">{L_COLOR_WHITE}</option> <option style="color:black;" value="black">{L_COLOR_BLACK}</option> </select> <label for="font_size">{L_FONT_SIZE}:</label> <select name="addbbcode20" id="font_size" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onmouseover="helpline('f')"> <option value="7">{L_FONT_TINY}</option> <option value="9">{L_FONT_SMALL}</option> <option value="12" selected="selected">{L_FONT_NORMAL}</option> <option value="18">{L_FONT_LARGE}</option> <option value="24">{L_FONT_HUGE}</option> </select> </div> <div id="helpline"><input type="text" name="helpbox" size="45" maxlength="100" disabled="disabled" value="{L_STYLES_TIP}" /></div> <div id="messageBody"> <textarea name="message" id="message" rows="15" cols="45" tabindex="6" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea> </div> </td> </tr> <tr> <td class="row1"> <label>{L_OPTIONS}</label> <div class="status">{HTML_STATUS}</div> <div class="status">{BBCODE_STATUS}</div> <div class="status">{SMILIES_STATUS}</div> </td> <td class="row2"> <!-- BEGIN switch_post_entry --> <div id="dateSelect">{DATE_SELECT}</div> <div id="entryAccess"><label for="entry_access">{L_ENTRY_ACCESS}</label>{ENTRY_AUTH_SELECT}</div> <!-- END switch_post_entry --> <!-- BEGIN switch_html_checkbox --> <div id="useHtml"><input type="checkbox" name="disable_html" id="disable_html" {S_HTML_CHECKED} /><label for="disable_html">{L_DISABLE_HTML}</label></div> <!-- END switch_html_checkbox --> <!-- BEGIN switch_bbcode_checkbox --> <div id="useBBCode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode" {S_BBCODE_CHECKED} /><label for="disable_bbcode">{L_DISABLE_BBCODE}</label></div> <!-- END switch_bbcode_checkbox --> <!-- BEGIN switch_smilies_checkbox --> <div id="useSmilies"><input type="checkbox" name="disable_smilies" id="disable_smilies" {S_SMILIES_CHECKED} /><label for="disable_smilies">{L_DISABLE_SMILIES}</label></div> <!-- END switch_smilies_checkbox --> <!-- BEGIN switch_signature_checkbox --> <div id="attachSignature"><input type="checkbox" name="attach_sig" id="attach_sig" {S_SIGNATURE_CHECKED} /><label for="attach_sig">{L_ATTACH_SIGNATURE}</label></div> <!-- END switch_signature_checkbox --> <!-- BEGIN switch_post_entry --> <div id="memorableEntry"><input type="checkbox" name="memorable" id="memorable" {S_MEMORABLE_CHECKED} /><label for="memorable">{L_MEMORABLE_ENTRY}</label></div> <div id="disableReplies"><input type="checkbox" name="disable_replies" id="disable_replies" {S_DISABLE_REPLIES_CHECKED} /><label for="disable_replies">{L_DISABLE_REPLIES}</label></div> <!-- END switch_post_entry --> </td> </tr> <!-- BEGIN switch_post_entry --> <tr> <th colspan="2">{L_ENTRY_ADD_IMAGE}</th> </tr> <tr> <td class="row1" colspan="2">{L_ENTRY_ADD_IMAGE_EXPLAIN} <div>{L_MAX_PIC_SIZE}: <strong>{MAX_PIC_SIZE}</strong> {L_BYTES}</div> <div>{L_MAX_PIC_HEIGHT}: <strong>{MAX_PIC_HEIGHT}</strong> {L_PIXELS}</div> <div>{L_MAX_PIC_WIDTH}: <strong>{MAX_PIC_WIDTH}</strong> {L_PIXELS}</div> </td> </tr> <tr> <td class="row1"><b>{L_FILENAME}</b></td> <td class="row2" nowrap="nowrap"><input type="file" {UPLOAD_DISABLED}name="image" /><input type="submit" {UPLOAD_DISABLED}name="upload_image" value="{L_UPLOAD_IMAGE}" /></td> </tr> <!-- BEGIN imagerow --> <tr> <td class="row1"><a href="{switch_post_entry.imagerow.IMAGE}" target="_blank"><img src="{switch_post_entry.imagerow.IMAGE}" height="100" width="100" alt="" /></a></td> <td class="row2" nowrap="nowrap"><b>{L_BBCODE}:</b><br />{switch_post_entry.imagerow.BBCODE}</td> </tr> <!-- END imagerow --> <tr> <th class="thHead" colspan="2">{L_TRACKBACK}</th> </tr> <tr> <td class="row1">{L_TRACKBACK_EXPLAIN}</td> <td class="row2"><strong> {L_TRACKBACK_EXCERPT}:<br /> <textarea name="tb_excerpt" rows="12" cols="30">{TRACKBACK_EXCERPT}</textarea><br /> {L_TRACKBACK_URLS}:<br /> <textarea name="tb_urls" rows="12" cols="30">{TRACKBACK_URLS}</textarea> </strong></td> </tr> <!-- END switch_post_entry --> <tr> <td class="row2" colspan="2" style="text-align: center"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="7" name="preview" class="liteoption" value="{L_PREVIEW}" /> <input type="submit" tabindex="8" accesskey="s" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> </tr> </table> <div class="padding" style="float: right">{S_TIMEZONE}</div> </form> </div> --- NEW FILE: Copy of weblog_header.htm --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="author" content="{WEBLOG_OWNER}" /> <meta name="description" content="{WEBLOG_DESCRIPTION}" /> {META} <link rel="alternate" type="application/rss+xml" title="{PAGE_TITLE} - RSS 2.0" href="{U_RSS_FEED}" /> <link rel="alternate" type="application/rss+xml" title="{L_LATEST_WEBLOGS} RSS" href="{U_RSS}" /> <link rel="stylesheet" href="weblogs/templates/Infinity/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="weblogs/templates/Infinity/Infinity.css" title="Infinity" media="screen" /> <title>{PAGE_TITLE}</title> <style type="text/css"> <!-- body { background-image: {BACKGROUND_IMAGE}; background-attachment: {BACKGROUND_IMAGE_FIXED}; background-repeat: {BACKGROUND_REPEAT}; background-position: {BACKGROUND_POSITION}; background-color: #{BACKGROUND_COLOR}; font-family: {FONT}; color: #{FONT_COLOR}; scrollbar-face-color: #{SB_FACE_COLOR}; scrollbar-highlight-color: #{SB_HIGHLIGHT_COLOR}; scrollbar-shadow-color: #{SB_SHADOW_COLOR}; scrollbar-3dlight-color: #{SB_3DLIGHT_COLOR}; scrollbar-arrow-color: #{SB_ARROW_COLOR}; scrollbar-track-color: #{SB_TRACK_COLOR}; scrollbar-darkshadow-color: #{SB_DARKSHADOW_COLOR}; } a.nav { font-family: {FONT}; } a:link { text-decoration: {NORMAL_LINK_UNDERLINED}; color: #{NORMAL_LINK_COLOR}; } a:active { text-decoration: {ACTIVE_LINK_UNDERLINED}; color: #{ACTIVE_LINK_COLOR}; } a:visited { text-decoration: {VISITED_LINK_UNDERLINED}; color: #{VISITED_LINK_COLOR}; } a:hover { text-decoration: {HOVER_LINK_UNDERLINED}; color: #{HOVER_LINK_COLOR}; } h1 { font-size: {ENTRY_TITLE_FONT_SIZE}pt; color: #{ENTRY_TITLE_COLOR}; } h2 { font-size: {DATE_TIME_FONT_SIZE}pt; color: #{DATE_TIME_COLOR}; } #footer { border-top: 1px #{BORDER_COLOR} dashed; } .blockContent { background: #{BLOCK_BG_COLOR}; border: 1px #{BLOCK_BORDER_COLOR} solid; } .entryContent { background: #{ENTRY_BG_COLOR}; } .entry { border-bottom: 1px #{BORDER_COLOR} dashed } #calendar { background: #{ENTRY_BG_COLOR}; border: 1px #{BORDER_COLOR} solid; } #calendar th { background: #{BORDER_COLOR}; color: #{BLOCK_BG_COLOR} } #calendar th a { color: #{BLOCK_BG_COLOR} } .daycell a { background: #{BLOCK_BG_COLOR}; } #calendar a:hover { background: #{BLOCK_BG_COLOR}; border: 1px #{BLOCK_BORDER_COLOR} solid; color: #{FONT_COLOR} } .row1 { background: #{ENTRY_BG_COLOR}; vertical-align: top; } .row2 { background: #{BLOCK_BG_COLOR}; vertical-align: top; } #shoutbox { border: 1px #{BORDER_COLOR} solid } --> </style> </head> --- NEW FILE: entry_new.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weblog_login_body.htm --- <form action="{S_LOGIN_ACTION}" method="post"> <div id="loginMessage">{L_LOGIN_MESSAGE}</div> <div>{L_USERNAME}:<input type="text" name="username" size="25" maxlength="40" value="{USERNAME}" /></div> <div>{L_PASSWORD}:<input type="password" name="password" size="25" maxlength="32" /></div> <div><input type="submit" name="login" class="mainoption" value="{L_LOGIN}" /></div> </form> --- NEW FILE: InfinityRed.css --- /* COLOR */ @import "Infinity.css"; body { color: black; background: #FFF0F0 } hr { border: 0; border-top: 1px red solid; } #wrapper { background: white; border: 1px red solid } a:link { color: red; } a:active { color: #FF3333; } a:visited { color: #990000; } a:hover { color: #FFAAAA; } h1 { color: red; } h2 { color: #FF6666; } textarea { color: red; border: 1px red solid; } .blockHeader{ color: red; } .infoTitle { color: red; } #header { background: red; border: 3px red double; } #title { color: white; } input { border: 1px red solid; background: white } input:hover { color: red; font-weight: bold } .specialLink{ background: #FFF0F0; border: 1px red solid; } .specialLink:hover { background: red; color: white; text-decoration: none } #footer { border-top: 1px red dashed; } .blockContent { background: #FFF0F0; border: 1px red solid; } .entryContent, .entryExpanded { background: #FFF0F0; border: 1px red solid; } #calendar { background: #FFF0F0; border: 1px red solid; } #calendar th { background: red; color: #FFEFEF } #calendar th a { color: #FFEFEF } .daycell a { background: #FFCCCC; } .daycell { border: 1px; } #calendar a:hover { background: white; border: 1px red solid; color: red } .row1, .entryIcon, .entryState, .entryDetails, .rowMessage { background: #FFF0F0; } .row2, .entryReplies, .entryViews, .entryLastPost, .tdBottom { background: #FFE5E5; } #shoutbox { border: 1px red solid } #allentries th { background: red; color: white; padding: 5px; } #allentries td { padding: 5px; } #allentries { border: 1px red solid; background: white } #allreplies th { background: red; color: white; padding: 5px } #allreplies td { padding: 5px; } #allreplies { border: 1px red solid; background: white } .selectedBBCode, .bbcode:hover { background: red; color: white; font-weight: normal } .selectedBBCode:hover, .bbcode { background: white; color: red; font-weight: normal } #postTable th { background: red; padding: 5px; color: white} #postTable { border: 1px red solid; } #smiliesTable { border: 1px red solid; } .smiley:hover { background: #FFE5E5; border: 1px red solid } --- NEW FILE: weblog_contributors_body.htm --- <h1>{L_CONTRIBUTORS}</h1> <div class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> -> <a href="{U_WEBLOG}" class="nav">{WEBLOG_NAME}</a></div> <p> {L_CURRENT_CONTRIBUTORS}: <!-- BEGIN contribrow --> <a href="{contribrow.U_PROFILE}">{contribrow.CONTRIBUTOR}</a> <!-- END contribrow --> </p> <form action="{S_CONTRIBUTOR_ACTION}" method="post"> <div class="center"><div class="entryContent"> <input type="text" name="contributoruser" maxlength="255" tabindex="1" size="20" /> <input type="submit" name="addcontributor" value="{L_ADD_CONTRIBUTOR}" class="mainoption" tabindex="2" /> <input type="submit" name="removecontributor" value="{L_REMOVE_CONTRIBUTOR}" tabindex="3" /> </div></div> </form> </div> <!-- End main content --> --- NEW FILE: weblog_mini_box.htm --- <body> <div style="background: white"> <!-- Begin header --> <div id="header"> <div id="topBG"><div id="title"> {WEBLOG_NAME} </div></div> </div> <!-- End header --> <div class="paddingColumn"> <div class="entry"> <h1>{MESSAGE_TITLE}</h1> <div class="entryContent" style="text-align: center"> <p>{MESSAGE_TEXT}</p> </div> </div> </div> --- NEW FILE: weblog_faceplate_body.htm --- <style type="text/css"> <!-- #{ID} { border: 1px orange solid; background: #FFFAEB; overflow: auto; -moz-border-radius: 10px; } #{ID} table { font-family: Verdana, Arial, Helvetica, sans-serif;} #{ID} a { color: orange; text-decoration: none; } #{ID} a:active { color: #FFB13D; } #{ID} a:visited { color: #946300; text-decoration: none; } #{ID} a:hover { color: #FFCA7A; text-decoration: underline; } #{ID} table table td { color: #2188E0; } #{ID} table table b { color: #FF6600; } #{ID} td { font-size: {FONT_SIZE}pt; } --> </style> <table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top: 10px; margin-bottom: 10px"><tr><td> <table width="100%" id="{ID}"> <tr> <td width="20%" align="center"> <a href="{U_VIEW_WEBLOG}">{WEBLOG_NAME}</a><br /> {AVATAR_IMG}<br /> <b>{WEBLOG_OWNER}</b> </td> <td align="center"> <table width="100%" id="{ID}2"> <tr> <td align="left"><b>{L_WEBLOG_DESCRIPTION}:</b></td> <td align="right">[ {WEBLOG_DESCRIPTION} ]</td> </tr> <tr> <td align="left"><b>{L_LAST_ENTRY}:</b></td> <td align="right">[ {LAST_ENTRY} ]</td> </tr> <tr> <td align="left"><b>{L_LATEST_MOOD}:</b></td> <td align="right">[ {LATEST_MOOD} ]</td> </tr> <tr> <td align="left"><b>{L_LAST_SEEN}:</b></td> <td align="right">[ {LAST_SEEN} ]</td> </tr> <tr> <td align="left"><b>{L_RSS}:</b></td> <td align="right">[ <a href="{U_WEBLOG_RSS}"><img src="images/xml.gif" alt="RSS 2.0" border="0" /></a> ]</td> </tr> </table> </td> </tr> </table> </td></tr></table> --- NEW FILE: InfinityOrange.css --- /* COLOR */ @import "Infinity.css"; body { color: black; background: #FFFAEB } hr { border: 0; border-top: 1px orange solid; } #wrapper { background: white; border: 1px orange solid } a:link { color: orange; } a:active { color: #FFB13D; } a:visited { color: #946300; } a:hover { color: #FFCA7A; } h1 { color: orange; } h2 { color: #F5B800; } textarea { color: orange; border: 1px orange solid; } .blockHeader{ color: orange; } .infoTitle { color: orange; } #header { background: orange; border: 3px orange double; } #title { color: white; } input { border: 1px orange solid; background: white } input:hover { color: orange; font-weight: bold } .specialLink{ background: #FFFAEB; border: 1px orange solid; } .specialLink:hover { background: orange; color: white; text-decoration: none } #footer { border-top: 1px orange dashed; } .blockContent { background: #FFFAEB; border: 1px orange solid; } .entryContent, .entryExpanded { background: #FFFAEB; border: 1px orange solid; } .entry { border-bottom: 1px #{BORDER_COLOR} dashed } #calendar { background: #FFFAEB; border: 1px orange solid; } #calendar th { background: orange; color: #FFFAEB } #calendar th a { color: #FFFAEB } .daycell a { background: #FFEBCC; } .daycell { border: 1px; } #calendar a:hover { background: white; border: 1px orange solid; color: black } .row1, .entryIcon, .entryState, .entryDetails, .rowMessage { background: #FFF5E5; } .row2, .entryReplies, .entryViews, .entryLastPost, .tdBottom { background: #FFF0D6; } #shoutbox { border: 1px orange solid } #allentries th { background: orange; color: white } #allentries td { padding: 5px; } #allentries th { padding: 5px; } #allentries { border: 1px orange solid; background: white } #allentries th { background: orange; color: white; padding: 5px; } #allentries td { padding: 5px; } #allentries { border: 1px orange solid; background: white } #allreplies th { background: orange; color: white; padding: 5px } #allreplies td { padding: 5px; } #allreplies { border: 1px orange solid; background: white } .selectedBBCode, .bbcode:hover { background: orange; color: white; font-weight: normal } .selectedBBCode:hover, .bbcode { background: white; color: orange; font-weight: normal } #postTable th { background: orange; padding: 5px; color: white} #postTable { border: 1px o... [truncated message content] |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:39
|
Update of /cvsroot/mxbb/mx_blogs/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/language/lang_english Added Files: lang_weblog_admin.php lang_weblog_main.php Log Message: mx_blogs, Initial checkin --- NEW FILE: lang_weblog_admin.php --- <?php /*************************************************************************** * lang_weblog_admin.php [English] * ------------------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: lang_weblog_admin.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ $lang['Click_return_weblog_config'] = 'Click %sHere%s to return to The Blog Module Configuration'; $lang['Weblog_configuration'] = 'The Blog Module Configuration'; $lang['Weblog_configuration_explain'] = 'Here you can set various options of The Blog Module, such as whether or not ' . $lang['Weblogs'] . ' are censored.'; $lang['General_settings'] = 'General Settings'; $lang['Enable_blog_mod'] = 'Enable The Blog Module'; $lang['Condense_index'] = 'Condense Index'; $lang['Condense_index_explain'] = 'Choose yes if you want to ignore ' . $lang['Weblog'] . ' faceplates and instead list all the ' . $lang['Weblogs'] . ' in a table format.<br />This will allow many ' . $lang['Weblogs'] . ' to be shown on the ' . $lang['Weblog'] . ' Index.'; $lang['Censor_weblogs'] = 'Censor ' . $lang['Weblogs']; $lang['Default_settings'] = 'Default Settings'; $lang['Default_weblog_name'] = 'Default ' . $lang['Weblog'] . ' Name'; $lang['Default_weblog_name_explain'] = 'Using "%s" will replace itself with the owner\'s name instead'; $lang['Default_weblog_desc'] = 'Default ' . $lang['Weblog'] . ' Description'; $lang['Index_weblogs_per_page'] = 'Number of ' . $lang['Weblogs'] . ' per page on the ' . $lang['Weblog'] . ' Index'; $lang['Index_sort_type'] = 'Default ' . $lang['Weblog'] . ' Sort Method on the ' . $lang['Weblog'] . ' Index'; $lang['Index_sort_order'] = 'Default ' . $lang['Weblog'] . ' Sort Order on the ' . $lang['Weblog'] . ' Index'; $lang['Default_accessibility'] = 'Default Access Requirements'; $lang['Default_reply_auth'] = 'Default Reply Access Requirements'; $lang['Default_entries_per_page'] = 'Default Entries Per Page'; $lang['Default_post_reply_text'] = 'Default "Post a Reply" Text'; $lang['Default_replies_text'] = 'Default "Replies" Text'; $lang['Weblog_config_updated'] = 'The Blog Module Configuration Updated Successfully'; $lang['Require_authentication'] = 'Require Authentication'; $lang['Require_authentication_explain'] = 'If set to yes, then users must belong in a group designated to allow ' . $lang['Weblogs'] . '. You can designate groups by going to the Group Administration (on the left).'; $lang['Censor_weblogs_explain'] = 'Enabling this option will censor entries and replies, just like in the forums.<br />Be cautious with this, as it may or may not anger your members.'; $lang['Picture_uploading'] = 'Picture Uploading'; $lang['Picture_uploading_enabled'] = 'Picture Uploading Enabled'; $lang['Use_default_faceplates'] = 'Use Default Faceplates (based on viewer\'s template)'; $lang['Use_default_faceplates_explain'] = 'Choose yes if you want all the faceplates on the ' . $lang['Weblog'] . ' Index to look like each other and the rest of the site.'; $lang['Shoutbox_flood_delay'] = 'Shoutbox Flood Delay (in seconds)'; $lang['Index_list_by_username'] = 'Sort Recent ' . $lang['Weblog'] . ' List on Index...'; $lang['By_owner_name'] = 'By Owner\'s Name'; $lang['By_weblog_name'] = 'By ' . $lang['Weblog'] . ' Name'; $lang['Weblog_currently'] = 'Entry "Actions"'; $lang['Weblog_currently_add'] = 'Add a new Action'; $lang['Weblog_currently_config'] = 'Actions Configuration'; $lang['Weblog_currently_url'] = 'Action Image File'; $lang['Weblog_currently_currently'] = 'Action Text'; $lang['Weblog_currently_del_success'] = 'The Action was successfully removed.'; $lang['Weblog_currently_edit_success'] = 'The Action was successfully updated.'; $lang['Weblog_currently_add_success'] = 'The Action was successfully added.'; $lang['Click_return_currentlyadmin'] = 'Click %sHere%s to return to Entry Actions Administration'; $lang['Weblog_currently_explain'] = 'From this page you can add, remove and edit the "actions" that your ' . $lang['Weblog'] . ' users can use in their entries (shown as "Currently x"). <br /><b r/>Remember not to add a space at the end.'; $lang['Weblog_currently_title'] = 'Action Editing Utility'; $lang['Weblog_mood'] = 'Mood'; $lang['Weblog_image'] = 'Image'; $lang['Weblog_mood_add'] = 'Add a new Mood'; $lang['Weblog_mood_set_add'] = 'Add a new Mood Set'; $lang['Weblog_mood_config'] = 'Mood Configuration'; $lang['Weblog_mood_url'] = 'Mood Image File'; $lang['Weblog_mood_mood'] = 'Mood Text'; $lang['Weblog_mood_del_success'] = 'The Mood was successfully removed.'; $lang['Weblog_mood_edit_success'] = 'The Mood was successfully updated.'; $lang['Weblog_mood_add_success'] = 'The Mood was successfully added.'; $lang['Click_return_moodadmin'] = 'Click %sHere%s to return to Mood Administration'; $lang['Weblog_mood_explain'] = 'From this page you can add, remove and edit the moods your ' . $lang['Weblog'] . ' users can use in their entries and posts.'; $lang['Weblog_mood_title'] = 'Mood Editing Utility'; $lang['Weblog_mood_set_explain'] = 'From this page you can add, remove and edit the mood sets that your ' . $lang['Weblog'] . ' users can use in their entries and posts.'; $lang['Weblog_mood_set_title'] = 'Mood Set Editing Utility'; $lang['Weblog_mood_set_config'] = 'Mood Set Configuration'; $lang['Weblog_mood_set_del_success'] = 'The Mood Set was successfully removed.'; $lang['Weblog_mood_set_edit_success'] = 'The Mood Set was successfully updated.'; $lang['Weblog_mood_set_add_success'] = 'The Mood Set was successfully added.'; $lang['Add_mood'] = 'Add Mood'; $lang['Weblog_template'] = 'Template'; $lang['Weblog_template_title'] = $lang['Weblog'] . ' Template Editing Utility'; $lang['Weblog_template_explain'] = 'From this page you can add, remove and edit the ' . $lang['Weblog'] . ' templates that your weblog users can use'; $lang['Weblog_template_config'] = $lang['Weblog'] . ' Templates Configuration'; $lang['Weblog_template_add'] = 'Add a new Template'; $lang['Weblog_template_name'] = 'Name'; $lang['Weblog_template_dir'] = 'Template Directory'; $lang['Weblog_template_weblog'] = 'Weblog File'; $lang['Weblog_template_face'] = 'Face File'; $lang['Weblog_template_weblog_s'] = $lang['Weblog'] . ' File (Easy Mode)'; $lang['Weblog_template_preview'] = 'Preview Image'; $lang['Weblog_template_relative_body'] = 'Relative to: forumroot/weblogs/body/'; $lang['Weblog_template_relative_face'] = 'Relative to: forumroot/weblogs/face/'; $lang['Weblog_template_del_success'] = 'The ' . $lang['Weblog'] . ' template was successfully removed.'; $lang['Weblog_template_edit_success'] = 'The ' . $lang['Weblog'] . ' template was successfully updated.'; $lang['Weblog_template_add_success'] = 'The ' . $lang['Weblog'] . ' template was successfully added.'; $lang['Click_return_templateadmin'] = 'Click %sHere%s to return to ' . $lang['Weblog'] . ' Templates Administration'; $lang['Template_private'] = 'Private'; $lang['Weblog_config_title'] = $lang['Weblog_name'] .' Configuration'; $lang['Weblog_config_explain'] = 'Here you can set various aspects of the Forum Weblogs Module.'; $lang['Weblog_main'] = 'Weblog Index Page'; $lang['Weblog_display_stats'] = 'Display Stats'; $lang['Weblog_display_stats_explain'] = 'Choosing "No" will improve performance on the weblog index page.'; $lang['Weblog_num_per_page'] = 'Weblogs per Page'; $lang['Weblog_sort'] = 'Default Sorting Method'; $lang['Weblog_order'] = 'Default Ordering'; $lang['Weblog_create'] = 'Weblog Creation Auth'; $lang['Weblog_create_explain'] = 'This controls whether or not users will need to sign up in a <a href="' . append_sid("admin_weblog_groups.$phpEx") . '" class="genmed">Weblog Group</a> before <br />they will be allowed to create a weblog.'; $lang['Weblog_create_group'] = 'Require subscription in a Weblog Group'; $lang['Weblog_create_all'] = 'Allow all users to create a Weblog.'; $lang['Weblog_myweblog'] = 'Weblog CP'; $lang['Weblog_access'] = 'Default Access Level'; $lang['Weblog_entries'] = 'Default Number of Entries'; $lang['Weblog_name'] = 'Default Weblog Name'; $lang['Weblog_name_explain'] = 'If you use "%s", it will replace it with the user\'s username.'; $lang['Weblog_desc'] = 'Default Weblog Description'; $lang['Weblog_desc_explain'] = 'If you use "%s", it will replace it with the user\'s username.'; $lang['Weblog_comment'] = 'Default Comment Label'; $lang['Weblog_post_comment'] = 'Default Post a Comment Label'; $lang['Weblog_advanced_explain4'] = 'Easy Mode uses a simple yes or no to change the Weblog. <br />Advanced Mode allows users to fully customize their Weblog (right down to HTML).<br />You can also choose to let the users decide which mode.'; $lang['Weblog_let_user_mode'] = 'Let users decide'; $lang['Mod_support'] = 'Mod Support'; $lang['Birthday_mod_installed'] = 'Birthday Mod installed'; $lang['Birthday_zodiac_mod_installed'] = 'Zodiac addon for Birthday Mod installed'; $lang['Gender_mod_installed'] = 'Gender Mod installed'; $lang['Last_visit_mod_installed'] = 'Last Visit Mod installed'; $lang['Weblog_Config_updated'] = 'Weblog Configuration Updated Successfully'; $lang['Click_return_weblog_config'] = 'Click %sHere%s to return to Weblog Configuration'; $lang['Weblog_Categories'] = 'Weblog Categories'; $lang['Weblog_Categories_Explain'] = 'Here you can assign specific categories which users are allowed to create their Weblogs in.'; $lang['Weblog_Add_Category'] = 'Add Weblog Category'; $lang['Weblog_Remove_Category'] = 'Remove Weblog Category'; $lang['Weblog_Select_Category'] = 'Select category'; $lang['Weblog_Select_Category_Explain'] = 'Select a category and click the \'Add Weblog Category\' button to allow Weblogs in this category.'; $lang['Weblog_Groups'] = 'Weblog Groups'; $lang['Weblog_Groups_Explain'] = 'Here you can assign specific usergroups which are authorised to create Weblogs.'; $lang['Weblog_Add_Group'] = 'Add Weblog Group'; $lang['Weblog_Remove_Group'] = 'Remove Weblog Group'; $lang['Weblog_Select_Group'] = 'Select Group'; $lang['Weblog_Select_Group_Explain'] = 'Select a Group and click the \'Add Weblog Group\' button to allow Weblogs for this Group.'; $lang['Weblog_Management'] = 'Weblog Management'; $lang['Weblog_Management_Explain'] = 'Here you can manage all the Weblogs that have been created. You can then delete or modify a user\'s Weblog.'; $lang['Weblog_remove'] = 'Delete'; $lang['Weblog_edit'] = 'Edit'; $lang['Weblog_deleted'] = 'Weblog information deleted successfully.'; $lang['Weblog_updated'] = 'Weblog information updated successfully.'; $lang['Click_return_weblogmanagement'] = 'Click %sHere%s to return to Weblog Management'; $lang['Weblog_Owner'] = 'Weblog Owner'; $lang['Weblog'] = $lang['Weblog_name']; $lang['No_weblogs'] = 'There are no Weblogs.'; $lang['Submit'] = 'Submit'; $lang['Reset'] = 'Reset'; $lang['check_all'] = 'Check All'; $lang['uncheck_all'] = 'UnCheck All'; $lang['Weblog_tools'] = 'Weblog Tools'; $lang['Weblog_tools_explain'] = 'Here you can change user permissions, and delete entries/weblogs from the database (normally, weblogs and entries aren\'t deleted, just flagged for deletion)'; $lang['Group_allow_weblogs'] = 'Let Group Members Create Weblogs'; $lang['Weblog_user_admin'] = 'Weblog User Administration'; $lang['Weblog_user_admin_explain'] = 'Here you can set individual user settings concerning The Blog Module'; $lang['Ban_this_user_weblog'] = 'Ban User from Weblog System'; $lang['Allow_adv_weblog'] = 'Allow User to have an Advanced Weblog'; $lang['Allow_adv_weblog_explain'] = 'An Advanced Weblog allows full HTML editing. It is not checked so only enable it on your most trusted users.'; $lang['Weblog_user_not_found'] = 'The username you entered was not found.<br />Please go back and try again.'; $lang['Weblog_purging'] = 'Weblog Purging'; $lang['Weblog_purging_explain'] = 'This will allow you to remove entries and/or weblogs that have been marked for deletion.<br />Deleted weblogs and entries are kept for recovering purposes only.<br />You can use this tool if your database is getting too large.'; $lang['mx_weblog_config_page'] = 'MX Page number that the configuration block is on'; $lang['mx_weblog_list'] = 'MX Page number the Weblogs list is on'; $lang['Weblogs_purged'] = 'Weblogs Purged'; $lang['Weblogs_restored'] = 'Weblogs Restored'; $lang['Entries_purged'] = 'Weblog Entries Purged'; $lang['Entries_restored'] = 'Weblog Entries Restored'; $lang['Click_return_weblog_tools']='Click %sHere%s to return to The Blog Module Tools'; ?> --- NEW FILE: lang_weblog_main.php --- <?php /*************************************************************************** * lang_weblog_main.php [English] * ------------------------------------ * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: lang_weblog_main.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ // // Configuration - Change the name of weblogs by editing these entries here. // Remember that this is a PHP file, so you must use \' instead of ' // $lang['Weblog'] = 'Blog'; $lang['Weblogs'] = 'Blogs'; $lang['Weblog\'s'] = 'Blog\'s'; $lang['Webloggers'] = 'Bloggers'; // // End Weblog Configuration // // // General Language Entries // $lang['Weblog_Index'] = $lang['Weblog'] . ' Index'; $lang['Weblog_MyWeblog'] = 'My ' . $lang['Weblog']; $lang['Weblog_CP'] = $lang['Weblog'] . ' CP'; $lang['Create_a_weblog'] = 'Create a ' . $lang['Weblog']; $lang['Weblog_Owner'] = $lang['Weblog'] . ' Owner'; $lang['Weblog_powered_by'] = 'Powered by the Blog Mod by Hyperion</a><br> Ported to <a href="http://www.mx-system.com">Mx-System</a> by Cryptoknight, and mhewitson'; $lang['Entries'] = 'Entries'; $lang['Replies'] = 'Replies'; $lang['Keep'] = 'Keep'; $lang['Weblog_switch_template'] = 'Reload/Switch Template'; $lang['Custom'] = '(custom)'; $lang['(None)'] = '(none)'; $lang['View_weblog'] = 'View ' . $lang['Weblog']; $lang['Most_recent_weblogs'] = 'Most recently updated ' . $lang['Weblogs'] . ': %s'; $lang['Most_recent_weblogs_user'] = 'Most recently updated ' . $lang['Weblogs'] . ' by user: %s'; $lang['Permalink'] = 'Permalink'; // // Weblog Index Page // $lang['Weblog_index'] = $lang['Weblog'] . ' Index'; $lang['Sort_newest_entries'] = 'Newest Entry'; $lang['Sort_weblog_name'] = $lang['Weblog'] . ' Name'; $lang['Sort_num_entries'] = 'Number of Entries'; $lang['Sort_weblog_start_date'] = 'Start Date'; $lang['Sort_weblog_views'] = 'Number of Views'; $lang['Weblogs_perpage'] = $lang['Weblogs'] . ' Per Page'; $lang['Weblog_description'] = $lang['Weblog'] . ' Description'; $lang['Last_entry'] = 'Last Entry'; $lang['Last_reply'] = 'Last Reply'; $lang['Latest_mood'] = 'Latest Mood'; $lang['Last_seen'] = 'Last Seen'; $lang['View_newest_reply'] = 'View newest reply'; $lang['No_Replies'] = 'No replies'; $lang['View_newest_entry'] = 'View newest entry'; $lang['No_entries'] = 'No entries'; $lang['No_weblog_create'] = 'Don\'t have a ' . $lang['Weblog'] . '? Click %sHere%s to create one!'; $lang['Weblog_noaccess'] = 'You are not allowed to access this ' . $lang['Weblog'] . '.'; $lang['Your_weblog'] = 'Your ' . $lang['Weblog']; // // Error Messages // $lang['No_weblogs'] = 'No ' . $lang['Weblogs'] . ' have been created. Please wait for one to be created or create one yourself.'; $lang['No_second_weblog'] = 'You already have a ' . $lang['Weblog'] . '. You are not allow to create a second ' . $lang['Weblog'] . '.'; $lang['No_weblog_name'] = 'The ' . $lang['Weblog'] . ' name is missing. Please go back and fill it in.'; $lang['No_weblog_desc'] = 'The ' . $lang['Weblog'] . ' description is missing. Please go back and fill it in.'; $lang['No_replies_label'] = 'The replies label is missing. Please go back and fill it in.'; $lang['No_post_reply_label'] = 'The "post reply" label is missing. Please go back and fill it in.'; $lang['Bad_num_entries'] = 'Invalid number of weblog entries. Please go back and put in a positive whole number.'; $lang['Errors_occured'] = 'The following errors occured:'; $lang['Weblog_banned'] = 'You have been banned from creating a ' . $lang['Weblog'] . '.'; $lang['Weblog_no_templates'] = 'No ' . $lang['Weblog'] . ' templates are available. Please wait for your Board Administrator to install a ' . $lang['Weblog'] . ' template.'; $lang['Weblog_no_header'] = 'The template\'s header file (%s) could not be found. Please contact your Board Administrator'; $lang['Weblog_no_body'] = 'The template\'s body file (%s) could not be found. Please contact your Board Administrator'; $lang['Weblog_no_footer'] = 'The template\'s footer file (%s) could not be found. Please contact your Board Administrator'; $lang['Weblog_no_faceplate'] = 'The template\'s faceplate file (%s) could not be found. Please contact your Board Administrator'; $lang['No_weblog_guests'] = 'Guests are not allowed to create a ' . $lang['Weblog'] . '.'; $lang['No_weblog_file'] = 'The weblog file (%s) is missing, and cannot be found. Perhaps it was never created? Please contact your Board Administrator'; $lang['No_faceplate_file'] = 'The weblog face plate file (%s) is missing, and cannot be found. Perhaps it was never created? Please contact your Board Administrator'; $lang['Weblog_require_auth'] = 'You must belong in a usergroup that is allowed to create a ' . $lang['Weblog'] . '.'; $lang['Weblog_template_not_exist'] = 'The ' . $lang['Weblog'] . ' Template that you selected does not exist.'; $lang['No_friend_guests'] = 'You cannot add guests as friends.'; $lang['No_block_guests'] = 'If you want to block guests from viewing your ' . $lang['Weblog'] . ', just set the viewing requires to "Registered Users" or higher.'; // // Weblog CP // $lang['Weblog_name'] = $lang['Weblog'] . ' Name'; $lang['Weblog_desc'] = $lang['Weblog'] . ' Description'; $lang['Weblog_auth'] = $lang['Weblog'] . ' Accessibility'; $lang['Weblog_auth_explain'] = 'This will control the minimum requirements to view your ' . $lang['Weblog'] . '.'; $lang['Reply_auth'] = 'Reply Privileges'; $lang['Reply_auth_explain'] = 'This will control the minimum requirements to make replies to your entries.<br />Only you will ever be allowed to post entries in your ' . $lang['Weblog'] . '.'; $lang['Number_of_entries'] = 'Number of Entries on Main Page'; $lang['Replies_label'] = 'Replies Label'; $lang['Replies_label_explain'] = '%s is replaced by the number of replies to a particular entry.'; $lang['Post_reply_label'] = 'Post a Reply Label'; $lang['Weblog_template'] = $lang['Weblog'] . ' Template'; $lang['Weblog_template_explain'] = 'Your ' . $lang['Weblog'] . ' will use this template as a base'; $lang['Weblog_template_easy_explain'] = 'You can personalize it by switching some of the options below.'; $lang['Weblog_template_advanced_explain'] = 'You can then edit it however you want, or even completely replace it with your own design.'; $lang['Show_profile_info'] = 'Show the Profile Info Block'; $lang['Show_calendar'] = 'Show the Calendar Block'; $lang['Show_contact_info'] = 'Show the Contact Info Block'; $lang['Show_blog_info'] = 'Show the ' . $lang['Weblog'] . ' Info'; $lang['Reply_in_popup'] = 'Open Popup to Reply (on Main Page)'; $lang['Weblog_faceplate'] = $lang['Weblog'] . ' Face Plate'; $lang['Weblog_faceplate_explain'] = 'Feel free to code whatever you want, and how you want it. This is what will be shown on the main ' . $lang['Weblog_name'] . ' index page. <br/>Tip: This is the most crucial customizable part as it will show people what kind of person you are.'; $lang['Weblog_body'] = $lang['Weblog'] . ' Body'; $lang['Weblog_body_explain'] = 'Feel free to code whatever you want, and how you want it.<br/>Tip: Try copying all the stuff in this box to another html editor, then copy it back into this box when you are done.'; $lang['Weblog_create'] = 'Create ' . $lang['Weblog']; $lang['Weblog_edit'] = 'Update ' . $lang['Weblog']; $lang['Weblog_delete'] = 'Mark for Deletion'; $lang['Weblog_undelete'] = 'Undelete Weblog'; $lang['Weblog_created'] = 'Your ' . $lang['Weblog'] . ' has been created. <br /><br />Click %sHere%s to view your newly created ' . $lang['Weblog'] . '.<br /><br />Click %sHere%s to return to the ' . $lang['Weblog'] . ' CP'; $lang['Weblog_edited'] = 'Your ' . $lang['Weblog'] . ' has successfully been updated. <br /><br />Click %sHere%s to view your updated ' . $lang['Weblog'] . '.<br /><br />Click %sHere%s to return to the ' . $lang['Weblog'] . ' CP'; $lang['Weblog_deleted'] = 'Your ' . $lang['Weblog'] . ' has been marked for deletion. It won\'t be fully deleted until a Board Administrator clears all ' . $lang['Weblogs'] . ' marked for deletion.<br /><br />Click %sHere%s to return to the ' . $lang['Weblog'] . ' Index.'; $lang['Weblog_undeleted'] = 'Your ' . $lang['Weblog'] . ' has been undeleted. You and others may now access your ' . $lang['Weblog'] . '. <br /><br />Click %sHere%s to view your newly restored ' . $lang['Weblog'] . '.<br /><br />Click %sHere%s to return to the ' . $lang['Weblog'] . ' CP'; $lang['Weblog_auth_all'] = 'Guests'; $lang['Weblog_auth_reg'] = 'Registered Users'; $lang['Weblog_auth_friends'] = 'Friends Only'; $lang['Weblog_auth_owner'] = 'Weblog Owner (you)'; $lang['Switch_easy'] = 'Switch to easy mode'; $lang['Switch_advanced'] = 'Switch to advanced mode'; $lang['Do_nothing'] = 'Do Nothing'; $lang['Load_template'] = 'Load Template'; $lang['Switch_template'] = 'Switch Template'; $lang['Weblog_no_adv_weblog'] = 'You have not been approved for creating an advanced ' . $lang['Weblog'] . ' yet.'; $lang['Advanced_mode_approved'] = 'You have been <strong>approved</strong> by an Administrator to be able to create an <u>Advanced ' . $lang['Weblog'] . '</u>!'; $lang['Marked_for_deletion'] = 'Your ' . $lang['Weblog'] . ' has been <strong><em>marked for deletion</em></strong>. To undelete it, press the button at the bottom of the page.'; $lang['Shoutbox_desc'] = 'Order of Shouts in Shoutbox'; $lang['Preview_image'] = 'Preview Image'; $lang['Private'] = '(private)'; $lang['Unknown'] = '(unknown)'; $lang['Mood_set'] = 'Mood Set'; $lang['Show_enable_shoutbox'] = 'Show and Enable Shoutbox'; $lang['Show_enable_categorybox'] = 'Show and Enable Category box'; // Look and Feel Section $lang['Look_and_feel'] = 'Look and Feel'; $lang['General_page_settings'] = 'General Page Settings'; $lang['Background_color'] = 'Background Color'; $lang['See_hex_colors'] = 'See Hexadecimal Colors'; $lang['Entry_bg_color'] = 'Entry Background Color'; $lang['Border_color'] = 'Border Color'; $lang['Background_image'] = 'Background Image'; $lang['URL'] = 'URL'; $lang['Fixed_bg'] = 'Fixed (stays in place even after scrolling)'; $lang['Tile_bg'] = 'Tile Background'; $lang['Tile'] = 'Tile'; $lang['Tile_horizontally'] = 'Tile Horizontally'; $lang['Tile_vertically'] = 'Tile Vertically'; $lang['No_tile_bg'] = 'Don\'t tile'; $lang['Vertical_position'] = 'Vertical Position'; $lang['Top'] = 'Top'; $lang['Center'] = 'Center'; $lang['Bottom'] = 'Bottom'; $lang['Horizontal_position'] = 'Horizontal Position'; $lang['Left'] = 'Left'; $lang['Right'] = 'Right'; $lang['SB_Settings'] = 'Scrollbar Settings (Visible on IE 5.5+ Only)'; $lang['SB_Face_color'] = 'Scrollbar Face Color'; $lang['SB_Highlight_color'] = 'Scrollbar Highlight Color'; $lang['SB_Shadow_color'] = 'Scrollbar Shadow Color'; $lang['SB_3DLight_color'] = 'Scrollbar 3D Light Color'; $lang['SB_Arrow_color'] = 'Scrollbar Arrow Color'; $lang['SB_Track_color'] = 'Scrollbar Track Color'; $lang['SB_Darkshadow_color'] = 'Scrollbar Dark Shadow Color'; $lang['Font_settings'] = 'Font Settings'; $lang['Font'] = 'Font'; $lang['Arial'] = 'Arial'; $lang['Comic_sans'] = 'Comic Sans MS'; $lang['Courier_new'] = 'Courier New'; $lang['Georgia'] = 'Georgia'; $lang['Verdana'] = 'Verdana'; $lang['Times_new_roman'] = 'Times New Roman'; $lang['Trebuchet'] = 'Trebuchet'; $lang['Font_color'] = 'Font Color'; $lang['Font_size'] = 'Font Size'; $lang['Normal_link'] = 'Normal Link'; $lang['Underline'] = 'Underline'; $lang['Active_link'] = 'Active Link'; $lang['Hover_link'] = 'Hover Link'; $lang['Visited_link'] = 'Visited Link'; $lang['Weblog_title'] = $lang['Weblog'] . ' Title'; $lang['Entry_title'] = 'Entry Title'; $lang['Color'] = 'Color'; $lang['Date_and_time'] = 'Date and Time'; $lang['Block_title'] = 'Block Title'; $lang['Block_settings'] = 'Block Settings'; $lang['Block_bg_color'] = 'Block Background Color'; $lang['Block_border_color'] = 'Block Border Color'; $lang['Custom_block'] = 'Custom Block'; $lang['Custom_block_explain'] = 'Here you may add anything extra about yourself that you would like to add.'; $lang['Title'] = 'Title'; // // Weblog Page // $lang['Weblog_not_exist'] = 'Sorry, the ' . $lang['Weblog'] . ' you selected does not exist.'; $lang['Mood'] = 'Mood'; $lang['Currently'] = 'Currently'; $lang['Category'] = 'Category'; $lang['Mood:'] = '%s <strong>Mood:</strong> %s'; $lang['Currently:'] = '%s <strong>Currently:</strong> %s'; $lang['Category:'] = '<strong>Category:</strong> '; $lang['Calendar'] = 'Calendar'; $lang['Profile_info'] = 'Profile Info'; $lang['Contact_owner'] = 'Contact %s'; $lang['Start_date'] = $lang['Weblog'] . ' Started'; $lang['Weblog_age'] = $lang['Weblog'] . ' Age'; $lang['Total_entries'] = 'Total entries'; $lang['View_all_entries'] = 'View All Entries'; $lang['Back'] = 'Back'; $lang['Forward'] = 'Forward'; $lang['Friends_list'] = 'Friends'; $lang['Blocked_list'] = 'Blocked Users'; $lang['About_owner'] = 'About %s'; $lang['Weblog_age_days'] = '%s days'; $lang['Total_replies'] = 'Total replies'; $lang['Visits'] = 'Visits'; $lang['Post_new_entry'] = 'Post a new entry'; $lang['RSS'] = 'RSS Feed'; $lang['Edit'] = 'Edit'; $lang['Weblog_deactivated'] = ' "%s" has been marked for deletion and will be deleted once a Board Administrator purges all similar weblogs that are marked for deletion.'; $lang['Shoutbox'] = 'Shoutbox'; $lang['Categories'] = 'Categories'; $lang['Shout'] = 'Shout'; $lang['View_smilies'] = 'View and Insert Smilies'; $lang['No_shouts'] = 'There are no shouts for this ' . $lang['Weblog'] . ' yet.'; $lang['No_category'] = 'no category for this ' . $lang['Weblog'] . ' yet.'; $lang['Shoutbox_flooded'] = 'Sorry, there are too many shouts at the moment. Please wait <strong>%s</strong> second(s) and then try again.'; $lang['Posted_by'] = 'Posted By: %s'; // // Weblog Posting Page // $lang['Reply_not_exist'] = 'The reply you selected does not exist.'; $lang['Entry_not_exist'] = 'The entry you selected does not exist.'; $lang['Reply_not_authed'] = 'You cannot reply to this entry.'; $lang['Entry_edit_not_authed'] = 'You are not allowed to edit this entry.'; $lang['Entry_add_not_authed'] = 'You are not allowed to post a new entry in this ' . $lang['Weblog'] . '.'; $lang['No_mode_specified'] = 'No mode was specified. (Please do not access this page directly)'; $lang['Delete_not_specified'] = 'Nothing was specified for deletion.'; $lang['Subject_empty'] = 'The entry subject is missing. Please fill in a subject for your entry.'; $lang['Entry_empty'] = 'There is nothing in your entry!'; $lang['Try_again'] = 'Please go back and try again.'; $lang['New_entry'] = 'New Entry'; $lang['Edit_entry'] = 'Edit Entry'; $lang['Edit_reply'] = 'Edit Reply'; $lang['Memorable_entry'] = 'Memorable Entry'; $lang['No_edit_entries'] = 'You are not allowed to edit this ' . $lang['Weblog\'s'] . ' entries.'; $lang['No_edit_replies'] = 'You are not allowed to edit this ' . $lang['Weblog\'s'] . ' replies.'; $lang['No_add_entries'] = 'You are not allowed to add entries into this ' . $lang['Weblog'] . '.'; $lang['Entry_submitted'] = 'Your entry has been submitted successfully.'; $lang['Entry_updated'] = 'Your entry has been updated successfully.'; $lang['Reply_updated'] = 'The reply has been updated successfully.'; $lang['Disable_replies'] = 'Disable Replies'; $lang['Entry_weblog_not_exist'] = 'Sorry, the weblog that holds the entry you selected does not exist. No replies are allowed for this entry.'; $lang['Reply_no_auth'] = 'You cannot reply to this entry.'; $lang['Entry_replies_disabled'] = 'Sorry, replies have been disabled from this entry.'. $lang['Click_return_weblog'] = 'Click %sHere%s to return to "%s".'; $lang['Click_return_entry'] = 'Click %sHere%s to return to the entry.'; $lang['Post_reply'] = 'Post a Reply'; $lang['Delete_not_authed'] = 'You are not allowed to delete entries and/or replies.'; $lang['Entry_deleted'] = 'The entry was deleted successfully.'; $lang['Reply_deleted'] = 'The reply was deleted successfully.'; $lang['Trackback_deleted'] = 'The trackback was deleted successfully.'; $lang['Entry_memorable'] = 'Mark this entry as a memorable entry'; $lang['Disable_replies'] = 'Disable replies for this entry'; $lang['Reply_submitted'] = 'The reply was submitted successfully.'; $lang['Entry_auth'] = 'Entry Access:'; $lang['Entry_add_image'] = 'Add Image(s) to Entry'; $lang['Entry_add_image_explain'] = 'Here you can upload an image to attach to your entry. Add the BBCode that is generated to the entry wherever you want the image to appear.'; $lang['Image'] = 'Image'; $lang['Upload_image'] = 'Upload Image'; $lang['Maximum_pic_size'] = 'Maximum Picture Size'; $lang['Maximum_pic_height'] = 'Maximum Picture Height'; $lang['Maximum_pic_width'] = 'Maximum Picture Width'; $lang['Bytes'] = 'Bytes'; $lang['Pixels'] = 'Pixels'; $lang['Wrong_file_type'] = 'You uploaded a file type that is not allowed. Only PNG, JPEG, JPG, or GIF files can be uploaded.'; $lang['Picture_too_big'] = 'The picture you uploaded exceeds the limits placed by the board administrator. Please reduce the size of the image and then try again.'; $lang['BBCode'] = 'BBCode'; $lang['Filename'] = 'Filename'; $lang['Owner_contributor_upload_only'] = 'Only the ' . $lang['Weblog'] . ' owner and contributors can upload pictures.'; $lang['Picture_upload_entry_only'] = 'Pictures may only be uploaded while writing entries.'; $lang['No_upload_pictures'] = 'Picture Uploading is disabled.'; // // All Entries Page // $lang['Display_entries'] = 'Display entries from'; $lang['Entry_locked'] = 'This entry is locked: you cannot make replies.'; $lang['No_replies_yet'] = '(No replies yet)'; $lang['All_entries'] = 'All entries'; $lang['Entry_Memorable'] = '<strong>Memorable: </strong>'; $lang['View_memorable_entries'] = 'View Memorable Entries'; $lang['View_private_entries'] = 'View Private Entries'; $lang['Sorry_no_entries'] = 'Sorry, there are no entries.'; // // Entries Page // $lang['Entry_post_not_exist'] = 'The entry/reply you selected does not exist'; $lang['Entry_no_replies'] = 'There are no replies for this entry.'; $lang['Replies_disabled'] = 'Replies have been disabled for this entry.'; $lang['More posts from this category:'] = '>>>More posts from this category: '; // // Friends Page // $lang['Friends'] = '%s\'s Friends'; $lang['Friend_of'] = 'Friend of'; $lang['Add_friend'] = 'Add Friend'; $lang['User_no_weblog'] = 'The user you selected either does not exist, or does not have a ' . $lang['Weblog'] . '.'; $lang['Click_return_friends'] = 'Click %sHere%s to return to the friends page.'; $lang['Friend_added'] = 'The user was added as a friend successfully.'; $lang['Friend_already_added'] = 'That user has already been added as a friend.'; $lang['No_friend_owner'] = 'You cannot add yourself as a friend!'; $lang['Friend_no_weblog'] = 'The user you selected does not have a ' . $lang['Weblog'] . '. They must have one before they can be added as a friend and have their latest entry shown here.'; $lang['Friend_removed'] = 'The user you specified is no longer a friend.'; $lang['User_not_friend'] = 'The user you selected is not a friend of yours'; $lang['User_no_remove_selffriend'] = 'You cannot remove yourself from your own friends list'; // // Blocked Page // $lang['Weblog_noaccess_blocked'] = 'Only the owner may access his/her blocked list.'; $lang['Click_return_blocked'] = 'Click %sHere%s to return to the blocked users page.'; $lang['Blocked_user_added'] = 'That user can no longer view any part of your ' . $lang['Weblog'] . '.'; $lang['Blocked_already_added'] = 'That user has already been barred from viewing your ' . $lang['Weblog'] . '.'; $lang['No_block_owner'] = 'You cannot block yourself from viewing your own ' . $lang['Weblog'] . '!'; $lang['Blocked_users'] = 'Blocked users'; $lang['Block_user'] = 'Block this user'; $lang['Remove_user'] = 'Remove user'; $lang['User_no_remove_selffriend'] = 'You cannot remove yourself from your own blocked user list'; $lang['User_not_blocked'] = 'The user you specified was not blocked.'; $lang['Blocked_user_removed'] = 'The user you specified is no longer blocked from viewing your ' . $lang['Weblog'] . '.'; // // Contributors Page // $lang['Contributors'] = 'Contributors'; $lang['Add_contributor'] = 'Add Contributor'; $lang['Remove_contributor'] = 'Remove Contributor'; $lang['Click_return_contributors'] = 'Click %sHere%s to return to the contributors page.'; $lang['Contributor_already_added'] = 'The user you specified is already a contributor.'; $lang['No_contributor_owner'] = 'You are already the main contributor in the ' . $lang['Weblog'] . '!'; $lang['No_guest_contributors'] = 'Guests may not be contributors'; $lang['Contributor_added'] = 'That user was added as a contributor. He/she may now view, post, and edit entries in your ' . $lang['Weblog'] . '.'; $lang['User_no_remove_selfcontributor'] = 'You cannot remove yourself! If you wish to transfer the ' . $lang['Weblog'] . ' to another user then please contact your Board Administrator.'; $lang['User_not_contributor'] = 'The user that you selected is not a contributor.'; $lang['Contributor_removed'] = 'That user is no longer a contributor.'; $lang['Edit_contributors'] = 'Edit Contributors'; $lang['Current_contributors'] = 'Current Contributors'; // // Trackback // $lang['Could_not_log_tb'] = 'Could not log Trackback. Please contact the site\'s owner'; $lang['Trackbacks'] = 'Trackbacks (%s)'; $lang['Trackback'] = 'Trackback'; $lang['Trackback_url'] = 'The Trackback URL for this entry is:'; $lang['Trackback_form_explain'] = 'Use these forms to send trackback pings to other entries on other ' . $lang['Weblog'] . ' sytems.'; $lang['URLs'] = 'URLs (seperate each URL with a new line)'; $lang['Excerpt'] = 'Excerpt (max 255 characters)'; $lang['Trackback_no_connect'] = 'Could not connect to %s for sending a trackback.'; $lang['Trackback_successful'] = 'Trackback to %s was successful!'; $lang['Trackback_not_exist'] = 'The trackback you selected does not exist.'; $lang['Not_implemented_yet'] = 'Sorry, this section hasn\'t been implemented yet'; $lang['No_read_file'] = 'Sorry, an error has occured. The file %s is missing or cannot be accessed. Please inform your Board Administrator.'; $lang['Owner_is_banned'] = 'This ' . $lang['Weblog'] . ' cannot be displayed because the owner is banned from having a ' . $lang['Weblog'] . '.'; $lang['Owner_banned'] = 'You have been banned from the ' . $lang['Weblog'] . ' system.'; ?> |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:38
|
Update of /cvsroot/mxbb/mx_blogs/weblogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/weblogs Added Files: colors.htm index.htm Log Message: mx_blogs, Initial checkin --- NEW FILE: colors.htm --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Color Table</title> </head> <body> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td style="background: #000000">000000</td> <td style="background: #330000">330000</td> <td style="background: #660000">660000</td> <td style="background: #990000">990000</td> <td style="background: #CC0000">CC0000</td> <td style="background: #FF0000">FF0000</td> </tr> <tr> <td style="background: #003300">003300</td> <td style="background: #333300">333300</td> <td style="background: #663300">663300</td> <td style="background: #993300">993300</td> <td style="background: #CC3300">CC3300</td> <td style="background: #FF3300">FF3300</td> </tr> <tr> <td style="background: #006600">006600</td> <td style="background: #336600">336600</td> <td style="background: #666600">666600</td> <td style="background: #996600">996600</td> <td style="background: #CC6600">CC6600</td> <td style="background: #FF6600">FF6600</td> </tr> <tr> <td style="background: #009900">009900</td> <td style="background: #339900">339900</td> <td style="background: #669900">669900</td> <td style="background: #999900">999900</td> <td style="background: #CC9900">CC9900</td> <td style="background: #FF9900">FF9900</td> </tr> <tr> <td style="background: #00CC00">00CC00</td> <td style="background: #33CC00">33CC00</td> <td style="background: #66CC00">66CC00</td> <td style="background: #99CC00">99CC00</td> <td style="background: #CCCC00">CCCC00</td> <td style="background: #FFCC00">FFCC00</td> </tr> <tr> <td style="background: #00FF00">00FF00</td> <td style="background: #33FF00">33FF00</td> <td style="background: #66FF00">66FF00</td> <td style="background: #99FF00">99FF00</td> <td style="background: #CCFF00">CCFF00</td> <td style="background: #FFFF00">FFFF00</td> </tr> <tr> <td style="background: #000033">000033</td> <td style="background: #330033">330033</td> <td style="background: #660033">660033</td> <td style="background: #990033">990033</td> <td style="background: #CC0033">CC0033</td> <td style="background: #FF0033">FF0033</td> </tr> <tr> <td style="background: #003333">003333</td> <td style="background: #333333">333333</td> <td style="background: #663333">663333</td> <td style="background: #993333">993333</td> <td style="background: #CC3333">CC3333</td> <td style="background: #FF3333">FF3333</td> </tr> <tr> <td style="background: #006633">006633</td> <td style="background: #336633">336633</td> <td style="background: #666633">666633</td> <td style="background: #996633">996633</td> <td style="background: #CC6633">CC6633</td> <td style="background: #FF6633">FF6633</td> </tr> <tr> <td style="background: #009933">009933</td> <td style="background: #339933">339933</td> <td style="background: #669933">669933</td> <td style="background: #999933">999933</td> <td style="background: #CC9933">CC9933</td> <td style="background: #FF9933">FF9933</td> </tr> <tr> <td style="background: #00CC33">00CC33</td> <td style="background: #33CC33">33CC33</td> <td style="background: #66CC33">66CC33</td> <td style="background: #99CC33">99CC33</td> <td style="background: #CCCC33">CCCC33</td> <td style="background: #FFCC33">FFCC33</td> </tr> <tr> <td style="background: #00FF33">00FF33</td> <td style="background: #33FF33">33FF33</td> <td style="background: #66FF33">66FF33</td> <td style="background: #99FF33">99FF33</td> <td style="background: #CCFF33">CCFF33</td> <td style="background: #FFFF33">FFFF33</td> </tr> <tr> <td style="background: #000066">000066</td> <td style="background: #330066">330066</td> <td style="background: #660066">660066</td> <td style="background: #990066">990066</td> <td style="background: #CC0066">CC0066</td> <td style="background: #FF0066">FF0066</td> </tr> <tr> <td style="background: #003366">003366</td> <td style="background: #333366">333366</td> <td style="background: #663366">663366</td> <td style="background: #993366">993366</td> <td style="background: #CC3366">CC3366</td> <td style="background: #FF3366">FF3366</td> </tr> <tr> <td style="background: #006666">006666</td> <td style="background: #336666">336666</td> <td style="background: #666666">666666</td> <td style="background: #996666">996666</td> <td style="background: #CC6666">CC6666</td> <td style="background: #FF6666">FF6666</td> </tr> <tr> <td style="background: #009966">009966</td> <td style="background: #339966">339966</td> <td style="background: #669966">669966</td> <td style="background: #999966">999966</td> <td style="background: #CC9966">CC9966</td> <td style="background: #FF9966">FF9966</td> </tr> <tr> <td style="background: #00CC66">00CC66</td> <td style="background: #33CC66">33CC66</td> <td style="background: #66CC66">66CC66</td> <td style="background: #99CC66">99CC66</td> <td style="background: #CCCC66">CCCC66</td> <td style="background: #FFCC66">FFCC66</td> </tr> <tr> <td style="background: #00FF66">00FF66</td> <td style="background: #33FF66">33FF66</td> <td style="background: #66FF66">66FF66</td> <td style="background: #99FF66">99FF66</td> <td style="background: #CCFF66">CCFF66</td> <td style="background: #FFFF66">FFFF66</td> </tr> <tr> <td style="background: #000099">000099</td> <td style="background: #330099">330099</td> <td style="background: #660099">660099</td> <td style="background: #990099">990099</td> <td style="background: #CC0099">CC0099</td> <td style="background: #FF0099">FF0099</td> </tr> <tr> <td style="background: #003399">003399</td> <td style="background: #333399">333399</td> <td style="background: #663399">663399</td> <td style="background: #993399">993399</td> <td style="background: #CC3399">CC3399</td> <td style="background: #FF3399">FF3399</td> </tr> <tr> <td style="background: #006699">006699</td> <td style="background: #336699">336699</td> <td style="background: #666699">666699</td> <td style="background: #996699">996699</td> <td style="background: #CC6699">CC6699</td> <td style="background: #FF6699">FF6699</td> </tr> <tr> <td style="background: #009999">009999</td> <td style="background: #339999">339999</td> <td style="background: #669999">669999</td> <td style="background: #999999">999999</td> <td style="background: #CC9999">CC9999</td> <td style="background: #FF9999">FF9999</td> </tr> <tr> <td style="background: #00CC99">00CC99</td> <td style="background: #33CC99">33CC99</td> <td style="background: #66CC99">66CC99</td> <td style="background: #99CC99">99CC99</td> <td style="background: #CCCC99">CCCC99</td> <td style="background: #FFCC99">FFCC99</td> </tr> <tr> <td style="background: #00FF99">00FF99</td> <td style="background: #33FF99">33FF99</td> <td style="background: #66FF99">66FF99</td> <td style="background: #99FF99">99FF99</td> <td style="background: #CCFF99">CCFF99</td> <td style="background: #FFFF99">FFFF99</td> </tr> <tr> <td style="background: #0000CC">0000CC</td> <td style="background: #3300CC">3300CC</td> <td style="background: #6600CC">6600CC</td> <td style="background: #9900CC">9900CC</td> <td style="background: #CC00CC">CC00CC</td> <td style="background: #FF00CC">FF00CC</td> </tr> <tr> <td style="background: #0033CC">0033CC</td> <td style="background: #3333CC">3333CC</td> <td style="background: #6633CC">6633CC</td> <td style="background: #9933CC">9933CC</td> <td style="background: #CC33CC">CC33CC</td> <td style="background: #FF33CC">FF33CC</td> </tr> <tr> <td style="background: #0066CC">0066CC</td> <td style="background: #3366CC">3366CC</td> <td style="background: #6666CC">6666CC</td> <td style="background: #9966CC">9966CC</td> <td style="background: #CC66CC">CC66CC</td> <td style="background: #FF66CC">FF66CC</td> </tr> <tr> <td style="background: #0099CC">0099CC</td> <td style="background: #3399CC">3399CC</td> <td style="background: #6699CC">6699CC</td> <td style="background: #9999CC">9999CC</td> <td style="background: #CC99CC">CC99CC</td> <td style="background: #FF99CC">FF99CC</td> </tr> <tr> <td style="background: #00CCCC">00CCCC</td> <td style="background: #33CCCC">33CCCC</td> <td style="background: #66CCCC">66CCCC</td> <td style="background: #99CCCC">99CCCC</td> <td style="background: #CCCCCC">CCCCCC</td> <td style="background: #FFCCCC">FFCCCC</td> </tr> <tr> <td style="background: #0000FF">0000FF</td> <td style="background: #3300FF">3300FF</td> <td style="background: #6600FF">6600FF</td> <td style="background: #9900FF">9900FF</td> <td style="background: #CC00FF">CC00FF</td> <td style="background: #FF00FF">FF00FF</td> </tr> <tr> <td style="background: #0033FF">0033FF</td> <td style="background: #3333FF">3333FF</td> <td style="background: #6633FF">6633FF</td> <td style="background: #9933FF">9933FF</td> <td style="background: #CC33FF">CC33FF</td> <td style="background: #FF33FF">FF33FF</td> </tr> <tr> <td style="background: #0066FF">0066FF</td> <td style="background: #3366FF">3366FF</td> <td style="background: #6666FF">6666FF</td> <td style="background: #9966FF">9966FF</td> <td style="background: #CC66FF">CC66FF</td> <td style="background: #FF66FF">FF66FF</td> </tr> <tr> <td style="background: #0099FF">0099FF</td> <td style="background: #3399FF">3399FF</td> <td style="background: #6699FF">6699FF</td> <td style="background: #9999FF">9999FF</td> <td style="background: #CC99FF">CC99FF</td> <td style="background: #FF99FF">FF99FF</td> </tr> <tr> <td style="background: #00CCFF">00CCFF</td> <td style="background: #33CCFF">33CCFF</td> <td style="background: #66CCFF">66CCFF</td> <td style="background: #99CCFF">99CCFF</td> <td style="background: #CCCCFF">CCCCFF</td> <td style="background: #FFCCFF">FFCCFF</td> </tr> <tr> <td style="background: #00FFFF">00FFFF</td> <td style="background: #33FFFF">33FFFF</td> <td style="background: #66FFFF">66FFFF</td> <td style="background: #99FFFF">99FFFF</td> <td style="background: #CCFFFF">CCFFFF</td> <td style="background: #FFFFFF">FFFFFF</td> </tr> </table> </body> </html> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:38
|
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/templates/subSilver Added Files: weblog_cp_body.tpl weblog_faceplate_body.tpl weblog_faceplate_small_body.tpl weblog_index_bottom.tpl weblog_index_bottom_small.tpl weblog_index_noweblog.tpl weblog_index_top.tpl weblog_index_top_small.tpl Log Message: mx_blogs, Initial checkin --- NEW FILE: weblog_index_bottom.tpl --- </td> </tr> </table> </td> </tr> </table> <br /> --- NEW FILE: weblog_index_bottom_small.tpl --- </table> </td> </tr> </table> <br /> --- NEW FILE: weblog_index_top.tpl --- <form method="post" action="{S_SORT_ACTION}"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td valign="top"> <table width="100%" cellspacing="1" cellpadding="1" border="0" align="left"><tr><td nowrap="nowrap"> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a><br /> {PAGE_NUMBER}</span> </td></tr></table> </td> <td valign="top" align="right" nowrap="nowrap"> <span class="genmed">{L_WEBLOGS_PER_PAGE} {S_NUM_WEBLOGS} {L_SORT} {S_SORT_METHOD} {S_SORT_ORDER}</span> <input type="submit" class="liteoption" value="{L_GO}" name="submit" /> <br /> <span class="nav">{PAGINATION}</span> </td> </tr> </table> </form> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td> <table width="66%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="row3">{YOUR_WEBLOG}</td> </tr> <tr> <td> --- NEW FILE: weblog_faceplate_small_body.tpl --- <tr> <td class="{ROW_CLASS}" align="center"><span class="genmed"><b><a href="{U_VIEW_WEBLOG}">{WEBLOG_NAME}</a></b></span></td> <td class="{ROW_CLASS}" align="center"><span class="gensmall">{WEBLOG_OWNER}</span></td> <td class="{ROW_CLASS}" align="center"><span class="gensmall">{LAST_ENTRY}</span></td> </tr> --- NEW FILE: weblog_cp_body.tpl --- <style> label { cursor: pointer } </style> <script language="javascript" type="text/javascript"> <!-- function update_preview(newimage) { document.preview_image.src = "{MX_ROOT}modules/mx_blogs/weblogs/templates/" + newimage + "/preview_img.gif"; } function update_set_preview(newimage) { document.set_preview_image.src = "{MX_ROOT}modules/mx_blogs/images/weblogs/" + newimage; } //--> </script> <form action="{S_WEBLOG_CP_ACTION}" method="post"> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a></span></td> </tr> </table> <table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline"> <tr> <th class="thSides" colspan="2" height="25" valign="middle">{L_WEBLOG_CONFIG}</th> </tr> <!-- BEGIN switch_marked_deletion --> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_MARKED_FOR_DELETION}</span></td> </tr> <!-- END switch_marked_deletion --> <tr> <td class="row1" width="50%"><span class="gen"><label for="weblog_name">{L_WEBLOG_NAME}:</label></span></td> <td class="row2" width="50%"><input type="text" id="weblog_name" name="weblog_name" class="post" style="width: 200px" size="20" maxlength="50" value="{WEBLOG_NAME}" /></td> </tr> <tr> <td class="row1"><span class="gen"><label for="weblog_desc">{L_WEBLOG_DESC}:</label></span></td> <td class="row2"><input type="text" id="weblog_desc" name="weblog_desc" class="post" style="width: 200px" size="20" maxlength="255" value="{WEBLOG_DESC}" /></td> </tr> <tr> <td class="row1"><span class="gen"><label for="weblog_auth_select">{L_WEBLOG_AUTH}:</label></span><br /><span class="gensmall">{L_WEBLOG_AUTH_EXPLAIN}</span></td> <td class="row2"><span class="gensmall">{WEBLOG_AUTH_SELECT}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="replies_auth_select">{L_REPLY_AUTH}:</label></span><br /><span class="gensmall">{L_REPLY_AUTH_EXPLAIN}</span></td> <td class="row2"><span class="gensmall">{REPLIES_AUTH_SELECT}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="replies_label">{L_REPLIES_LABEL}:</label></span></td> <td class="row2"><input type="text" id="replies_label" name="replies_label" class="post" style="width: 200px" size="20" maxlength="50" value="{REPLIES_TEXT}" /></td> </tr> <tr> <td class="row1"><span class="gen"><label for="post_reply_label">{L_POST_REPLY_LABEL}:</label></span></td> <td class="row2"><input type="text" id="post_reply_label" name="post_reply_label" class="post" style="width: 200px" size="20" maxlength="50" value="{POST_REPLY_TEXT}" /></td> </tr> <tr> <td class="row1"><span class="gen"><label for="num_entries">{L_NUMBER_OF_ENTRIES}:</label></span></td> <td class="row2"><input type="text" id="num_entries" name="num_entries" class="post" style="width: 50px" size="2" maxlength="3" value="{ENTRIES_PERPAGE}" /></td> </tr> <tr> <td class="catSides" colspan="2" height="28"> </td> </tr> <tr> <th class="thSides" colspan="2" height="25" valign="middle">{L_LOOK_AND_FEEL}</th> </tr> <!-- BEGIN switch_create_weblog --> <tr> <td class="row1"><span class="gen"><label for="template_select">{L_WEBLOG_TEMPLATE}:</label></span></td> <td class="row2" align="center">{TEMPLATE_SELECT}<br /><img src="{PREVIEW_IMG}" border="0" name="preview_image" alt="{L_PREVIEW}" /></td> </tr> <tr> <td class="catSides" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="create" class="mainoption" value="{L_CREATE_WEBLOG}" /></td> </tr> <!-- END switch_create_weblog --> <!-- BEGIN switch_approved --> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_ADV_APPROVED}</span></td> </tr> <!-- END switch_approved --> <!-- BEGIN switch_edit_adv_weblog --> <tr> <td class="row1"><span class="gen">{L_WEBLOG_TEMPLATE}:</span></td> <td class="row2" align="center"><span class="gensmall"> {TEMPLATE_SELECT} <input type="radio" id="action_do_nothing" name="weblog_action" value="0" checked="checked" /> <label for="action_do_nothing">{L_DO_NOTHING}</label> <input type="radio" id="action_load_template" name="weblog_action" value="1" /> <label for="action_load_template">{L_LOAD_TEMPLATE}</label> <input type="radio" id="action_switch_mode" name="weblog_action" value="2" /> <label for="action_switch_mode">{L_SWITCH_MODE}</label> <br /><img src="{PREVIEW_IMG}" border="0" name="preview_image" alt="{L_PREVIEW}" /></span></td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_GENERAL_PAGE_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="mood_set_select">{L_MOOD_SET}:</label></span></td> <td class="row2">{MOOD_SET_SELECT} <img src="{MX_ROOT}modules/mx_blogs/images/weblogs/{MOOD_SET_PREVIEW}" name="set_preview_image" alt="{L_PREVIEW}" border="0" /></td> </tr> <tr> <td class="row1"><span class="gen">{L_REPLY_IN_POPUP}:</span></td> <td class="row2"> <input type="radio" id="rip_yes" name="reply_in_popup" value="1" {REPLY_IN_POPUP_YES} /> <span class="gen"><label for="rip_yes">{L_YES}</label></span> <input type="radio" id="rip_no" name="reply_in_popup" value="0" {REPLY_IN_POPUP_NO} /> <span class="gen"><label for="rip_no">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOUTBOX_DESC}:</span></td> <td class="row2"> <input type="radio" id="shoutbox_desc_yes" name="shoutbox_desc" value="1" {SHOUTBOX_DESC} /> <span class="gen"><label for="shoutbox_desc_yes">{L_DESCENDING}</label></span> <input type="radio" id="shoutbox_desc_no" name="shoutbox_desc" value="0" {SHOUTBOX_ASC} /> <span class="gen"><label for="shoutbox_desc_no">{L_ASCENDING}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOW_ENABLE_CATEGORYBOX}:</span></td> <td class="row2"> <input type="radio" id="show_categorybox_yes" name="show_categorybox" value="1" {SHOW_CATEGORYBOX_YES} /> <span class="gen"><label for="show_categorybox_yes">{L_YES}</label></span> <input type="radio" id="show_categorybox_no" name="show_categorybox" value="0" {SHOW_CATEGORYBOX_NO} /> <span class="gen"><label for="show_categorybox_no">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="background_color">{L_BACKGROUND_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" name="background_color" class="post" size="6" maxlength="6" value="{BACKGROUND_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="entry_bg_color">{L_ENTRY_BG_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" name="entry_bg_color" class="post" size="6" maxlength="6" value="{ENTRY_BG_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="border_color">{L_BORDER_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" name="border_color" class="post" size="6" maxlength="6" value="{BORDER_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="background_image">{L_BACKGROUND_IMAGE}:</span></td> <td class="row2"> <span class="gensmall"><fieldset><legend>{L_BACKGROUND_IMAGE}</legend><label for="background_image">{L_URL}:</label></span> <input type="text" id="background_image" name="background_image" class="post" size="30" maxlength="255" value="{BACKGROUND_IMAGE}" /> <input type="checkbox" id="background_image_fixed" name="background_image_fixed"{BACKGROUND_IMAGE_FIXED} /><span class="gensmall"><label for="background_image_fixed">{L_FIXED_BG}</label></fieldset></span><br /> <span class="gensmall"><fieldset><legend>{L_TILE_BG}</legend><input type="radio" id="tile_all" name="tile_bg" value="repeat"{TILE_BG_ALL} /> <label for="tile_all">{L_TILE}</label> <input type="radio" id="tile_horizontally" name="tile_bg" value="repeat-x"{TILE_BG_HORIZONTALLY} /> <label for="tile_horizontally">{L_TILE_HORIZONTALLY}</label> <input type="radio" id="tile_vertically" name="tile_bg" value="repeat-y"{TILE_BG_VERTICALLY} /> <label for="tile_vertically">{L_TILE_VERTICALLY}</label> <input type="radio" id="no_tile" name="tile_bg" value="no-repeat"{NO_TILE_BG} /> <label for="no_tile">{L_NO_TILE_BG}</label></fieldset></span><br /> <span class="gensmall"><fieldset><legend>{L_VERTICAL_POSITION}</legend><input type="radio" id="v_top" name="bg_ypos" value="top"{YPOS_TOP} /> <label for="v_top">{L_TOP}</label> <input type="radio" id="v_center" name="bg_ypos" value="center"{YPOS_CENTER} /> <label for="v_center">{L_CENTER}</label> <input type="radio" id="v_bottom" name="bg_ypos" value="bottom"{YPOS_BOTTOM} /> <label for="v_bottom">{L_BOTTOM}</label></fieldset></span><br /> <span class="gensmall"><fieldset><legend>{L_HORIZONTAL_POSITION}</legend><input type="radio" id="h_left" name="bg_xpos" value="left"{XPOS_LEFT} /> <label for="h_left">{L_LEFT}</label> <input type="radio" id="h_center" name="bg_xpos" value="center"{XPOS_CENTER} /> <label for="h_center">{L_CENTER}</label> <input type="radio" id="h_right" name="bg_xpos" value="right"{XPOS_RIGHT} /> <label for="h_right">{L_RIGHT}</label></fieldset></span> </td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_SB_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_face_color">{L_SB_FACE_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_face_color" name="sb_face_color" class="post" size="6" maxlength="6" value="{SB_FACE_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_highlight_color">{L_SB_HIGHLIGHT_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_highlight_color" name="sb_highlight_color" class="post" size="6" maxlength="6" value="{SB_HIGHLIGHT_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_shadow_color">{L_SB_SHADOW_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_shadow_color" name="sb_shadow_color" class="post" size="6" maxlength="6" value="{SB_SHADOW_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_3dlight_color">{L_SB_3DLIGHT_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_3dlight_color" name="sb_3dlight_color" class="post" size="6" maxlength="6" value="{SB_3DLIGHT_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_arrow_color">{L_SB_ARROW_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_arrow_color" name="sb_arrow_color" class="post" size="6" maxlength="6" value="{SB_ARROW_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_track_color">{L_SB_TRACK_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_track_color" name="sb_track_color" class="post" size="6" maxlength="6" value="{SB_TRACK_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_darkshadow_color">{L_SB_DARKSHADOW_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_darkshadow_color" name="sb_darkshadow_color" class="post" size="6" maxlength="6" value="{SB_DARKSHADOW_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_FONT_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="font">{L_FONT}:</label></span></td> <td class="row2"> <select id="font" name="font"> <option value="0" {ARIAL_SELECTED}class="genmed">{L_ARIAL}</option> <option value="1" {COMIC_SANS_SELECTED}class="genmed">{L_COMIC_SANS}</option> <option value="2" {COURIER_NEW_SELECTED}class="genmed">{L_COURIER_NEW}</option> <option value="3" {GEORGIA_SELECTED}class="genmed">{L_GEORGIA}</option> <option value="4" {VERDANA_SELECTED}class="genmed">{L_VERDANA}</option> <option value="5" {TIMES_NEW_ROMAN_SELECTED}class="genmed">{L_TIMES_NEW_ROMAN}</option> <option value="6" {TREBUCHET_SELECTED}class="genmed">{L_TREBUCHET}</option> </select> </td> </tr> <tr> <td class="row1"><span class="gen"><label for="font_color">{L_FONT_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="font_color" name="font_color" class="post" size="6" maxlength="6" value="{FONT_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="font_size">{L_FONT_SIZE}:</label></span></td> <td class="row2"><input type="text" id="font_size" name="font_size" class="post" size="2" maxlength="2" value="{FONT_SIZE}" /><span class="gen">pt</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="normal_link_color">{L_NORMAL_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="normal_link_color" name="normal_link_color" class="post" size="6" maxlength="6" value="{NORMAL_LINK_COLOR}" /> <input type="checkbox" id="normal_link_underline" name="normal_link_underline"{NORMAL_LINK_UNDERLINED} /><span class="gensmall"><label for="normal_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="active_link_color">{L_ACTIVE_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="active_link_color" name="active_link_color" class="post" size="6" maxlength="6" value="{ACTIVE_LINK_COLOR}" /> <input type="checkbox" id="active_link_underline" name="active_link_underline"{ACTIVE_LINK_UNDERLINED} /><span class="gensmall"><label for="active_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="hover_link_color">{L_HOVER_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="hover_link_color" name="hover_link_color" class="post" size="6" maxlength="6" value="{HOVER_LINK_COLOR}" /> <input type="checkbox" id="hover_link_underline" name="hover_link_underline"{HOVER_LINK_UNDERLINED} /><span class="gensmall"><label for="hover_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="visited_link_color">{L_VISITED_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="visited_link_color" name="visited_link_color" class="post" size="6" maxlength="6" value="{VISITED_LINK_COLOR}" /> <input type="checkbox" id="visited_link_underline" name="visited_link_underline"{VISITED_LINK_UNDERLINED} /><span class="gensmall"><label for="visited_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_WEBLOG_TITLE}:</span></td> <td class="row2"><span class="gensmall"><label for="weblog_title_color">{L_COLOR}:</label> #</span><input type="text" id="weblog_title_color" name="weblog_title_color" class="post" size="6" maxlength="6" value="{WEBLOG_TITLE_COLOR}" /> <span class="gensmall"><label for="wtfs">{L_FONT_SIZE}:</label></span> <input type="text" id="wtfs" name="weblog_title_font_size" class="post" size="2" maxlength="2" value="{WEBLOG_TITLE_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_ENTRY_TITLE}:</span></td> <td class="row2"><span class="gensmall"><label for="entry_title_color">{L_COLOR}:</label> #</span><input type="text" id="entry_title_color" name="entry_title_color" class="post" size="6" maxlength="6" value="{ENTRY_TITLE_COLOR}" /> <span class="gensmall"><label for="etfs">{L_FONT_SIZE}:</label></span> <input type="text" id="etfs" name="entry_title_font_size" class="post" size="2" maxlength="2" value="{ENTRY_TITLE_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_DATE_AND_TIME}:</span></td> <td class="row2"><span class="gensmall"><label for="date_time_color">{L_COLOR}:</label> #</span><input type="text" id="date_time_color" name="date_time_color" class="post" size="6" maxlength="6" value="{DATE_TIME_COLOR}" /> <span class="gensmall"><label for="dtfs">{L_FONT_SIZE}:</label></span> <input type="text" id="dtfs" name="date_time_font_size" class="post" size="2" maxlength="2" value="{DATE_TIME_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_BLOCK_TITLE}:</span></td> <td class="row2"><span class="gensmall"><label for="block_title_color">{L_COLOR}:</label> #</span><input type="text" id="block_title_color" name="block_title_color" class="post" size="6" maxlength="6" value="{BLOCK_TITLE_COLOR}" /> <span class="gensmall"><label for="btfs">{L_FONT_SIZE}:</label></span> <input type="text" id="btfs" name="block_title_font_size" class="post" size="2" maxlength="2" value="{BLOCK_TITLE_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_BLOCK_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="block_bg_color">{L_BLOCK_BG_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="block_bg_color" name="block_bg_color" class="post" size="6" maxlength="6" value="{BLOCK_BG_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="block_border_color">{L_BLOCK_BORDER_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="block_border_color" name="block_border_color" class="post" size="6" maxlength="6" value="{BLOCK_BORDER_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1" colspan="2"><span class="gen"><label for="weblog_face">{L_WEBLOG_FACEPLATE}:</label></span><br /><span class="gensmall">{L_WEBLOG_FACEPLATE_EXPLAIN}</span><br/><span class="gensmall">{L_WEBLOG_FACE_TIP}</span></td> </tr> <tr> <td class="row2" colspan="2"><textarea id="weblog_face" name="weblog_face" cols="140" rows="15" class="post">{S_WEBLOG_FACEPLATE}</textarea></td> </tr> <tr> <td class="row1" colspan="2"><span class="gen"><label for="weblog_body">{L_WEBLOG_BODY}:</label></span><br /><span class="gensmall">{L_WEBLOG_BODY_EXPLAIN}</span><br/><span class="gensmall">{L_WEBLOG_PAGE_TIP}</span></td> </tr> <tr> <td class="row2" colspan="2"><textarea id="weblog_body" name="weblog_page" cols="140" rows="30" class="post">{S_WEBLOG_BODY}</textarea></td> </tr> <tr> <td class="catSides" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="edit" class="mainoption" value="{L_EDIT_WEBLOG}" /> <input type="submit" name="{DELETE_NAME}" class="liteoption" value="{L_DELETE_WEBLOG}" /></td> </tr> <!-- END switch_edit_adv_weblog --> <!-- BEGIN switch_edit_easy_weblog --> <tr> <td class="row1"><span class="gen"><label for="template_select">{L_WEBLOG_TEMPLATE}:</label></span><br /><span class="gensmall">{L_WEBLOG_TEMPLATE_EXPLAIN}<br />{L_WEBLOG_TEMPLATE_EASY_EXPLAIN}</span></td> <td class="row2" align="center"><span class="gensmall"> {TEMPLATE_SELECT} <input type="radio" id="action_do_nothing" name="weblog_action" value="0" checked="checked" /> <label for="action_do_nothing">{L_DO_NOTHING}</label> <input type="radio" id="action_switch_template" name="weblog_action" value="1" /> <label for="action_switch_template">{L_SWITCH_TEMPLATE}</label> {SWITCH_RADIO} <label for="action_switch_mode">{L_SWITCH_MODE}</label> <br /><img src="{PREVIEW_IMG}" border="0" name="preview_image" alt="{L_PREVIEW}" /></span></td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_GENERAL_PAGE_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="mood_set_select">{L_MOOD_SET}:</label></span></td> <td class="row2">{MOOD_SET_SELECT} <img src="{MX_ROOT}modules/mx_blogs/images/weblogs/{MOOD_SET_PREVIEW}" name="set_preview_image" alt="{L_PREVIEW}" border="0" /></td> </tr> <tr> <td class="row1"><span class="gen">{L_REPLY_IN_POPUP}:</span></td> <td class="row2"> <input type="radio" id="rip_yes" name="reply_in_popup" value="1" {REPLY_IN_POPUP_YES} /> <span class="gen"><label for="rip_yes">{L_YES}</label></span> <input type="radio" id="rip_no" name="reply_in_popup" value="0" {REPLY_IN_POPUP_NO} /> <span class="gen"><label for="rip_no">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOUTBOX_DESC}:</span></td> <td class="row2"> <input type="radio" id="shoutbox_desc_yes" name="shoutbox_desc" value="1" {SHOUTBOX_DESC} /> <span class="gen"><label for="shoutbox_desc_yes">{L_DESCENDING}</label></span> <input type="radio" id="shoutbox_desc_no" name="shoutbox_desc" value="0" {SHOUTBOX_ASC} /> <span class="gen"><label for="shoutbox_desc_no">{L_ASCENDING}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOW_ENABLE_SHOUTBOX}:</span></td> <td class="row2"> <input type="radio" id="show_shoutbox_yes" name="show_shoutbox" value="1" {SHOW_SHOUTBOX_YES} /> <span class="gen"><label for="show_shoutbox_yes">{L_YES}</label></span> <input type="radio" id="show_shoutbox_no" name="show_shoutbox" value="0" {SHOW_SHOUTBOX_NO} /> <span class="gen"><label for="show_shoutbox_no">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOW_PROFILE_INFO}:</span></td> <td class="row2"> <input type="radio" id="spiy" name="show_profile_info" value="1" {SHOW_PROFILE_INFO_YES} /> <span class="gen"><label for="spiy">{L_YES}</label></span> <input type="radio" id="spin" name="show_profile_info" value="0" {SHOW_PROFILE_INFO_NO} /> <span class="gen"><label for="spin">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOW_CALENDAR}:</span></td> <td class="row2"> <input type="radio" id="scy" name="show_calendar" value="1" {SHOW_CALENDAR_YES} /> <span class="gen"><label for="scy">{L_YES}</label></span> <input type="radio" id="scn" name="show_calendar" value="0" {SHOW_CALENDAR_NO} /> <span class="gen"><label for="scn">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOW_CONTACT_INFO}:</span></td> <td class="row2"> <input type="radio" id="sc2y" name="show_contact_info" value="1" {SHOW_CONTACT_INFO_YES} /> <span class="gen"><label for="sc2y">{L_YES}</label></span> <input type="radio" id="sc2n" name="show_contact_info" value="0" {SHOW_CONTACT_INFO_NO} /> <span class="gen"><label for="sc2n">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SHOW_WEBLOG_INFO}:</span></td> <td class="row2"> <input type="radio" id="swy" name="show_weblog_info" value="1" {SHOW_WEBLOG_INFO_YES} /> <span class="gen"><label for="swy">{L_YES}</label></span> <input type="radio" id="swn" name="show_weblog_info" value="0" {SHOW_WEBLOG_INFO_NO} /> <span class="gen"><label for="swn">{L_NO}</label></span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="background_color">{L_BACKGROUND_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" name="background_color" class="post" size="6" maxlength="6" value="{BACKGROUND_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="entry_bg_color">{L_ENTRY_BG_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" name="entry_bg_color" class="post" size="6" maxlength="6" value="{ENTRY_BG_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="border_color">{L_BORDER_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" name="border_color" class="post" size="6" maxlength="6" value="{BORDER_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="background_image">{L_BACKGROUND_IMAGE}:</span></td> <td class="row2"> <span class="gensmall"><fieldset><legend>{L_BACKGROUND_IMAGE}</legend><label for="background_image">{L_URL}:</label></span> <input type="text" id="background_image" name="background_image" class="post" size="30" maxlength="255" value="{BACKGROUND_IMAGE}" /> <input type="checkbox" id="background_image_fixed" name="background_image_fixed"{BACKGROUND_IMAGE_FIXED} /><span class="gensmall"><label for="background_image_fixed">{L_FIXED_BG}</label></fieldset></span><br /> <span class="gensmall"><fieldset><legend>{L_TILE_BG}</legend><input type="radio" id="tile_all" name="tile_bg" value="repeat"{TILE_BG_ALL} /> <label for="tile_all">{L_TILE}</label> <input type="radio" id="tile_horizontally" name="tile_bg" value="repeat-x"{TILE_BG_HORIZONTALLY} /> <label for="tile_horizontally">{L_TILE_HORIZONTALLY}</label> <input type="radio" id="tile_vertically" name="tile_bg" value="repeat-y"{TILE_BG_VERTICALLY} /> <label for="tile_vertically">{L_TILE_VERTICALLY}</label> <input type="radio" id="no_tile" name="tile_bg" value="no-repeat"{NO_TILE_BG} /> <label for="no_tile">{L_NO_TILE_BG}</label></fieldset></span><br /> <span class="gensmall"><fieldset><legend>{L_VERTICAL_POSITION}</legend><input type="radio" id="v_top" name="bg_ypos" value="top"{YPOS_TOP} /> <label for="v_top">{L_TOP}</label> <input type="radio" id="v_center" name="bg_ypos" value="center"{YPOS_CENTER} /> <label for="v_center">{L_CENTER}</label> <input type="radio" id="v_bottom" name="bg_ypos" value="bottom"{YPOS_BOTTOM} /> <label for="v_bottom">{L_BOTTOM}</label></fieldset></span><br /> <span class="gensmall"><fieldset><legend>{L_HORIZONTAL_POSITION}</legend><input type="radio" id="h_left" name="bg_xpos" value="left"{XPOS_LEFT} /> <label for="h_left">{L_LEFT}</label> <input type="radio" id="h_center" name="bg_xpos" value="center"{XPOS_CENTER} /> <label for="h_center">{L_CENTER}</label> <input type="radio" id="h_right" name="bg_xpos" value="right"{XPOS_RIGHT} /> <label for="h_right">{L_RIGHT}</label></fieldset></span> </td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_SB_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_face_color">{L_SB_FACE_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_face_color" name="sb_face_color" class="post" size="6" maxlength="6" value="{SB_FACE_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_highlight_color">{L_SB_HIGHLIGHT_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_highlight_color" name="sb_highlight_color" class="post" size="6" maxlength="6" value="{SB_HIGHLIGHT_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_shadow_color">{L_SB_SHADOW_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_shadow_color" name="sb_shadow_color" class="post" size="6" maxlength="6" value="{SB_SHADOW_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_3dlight_color">{L_SB_3DLIGHT_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_3dlight_color" name="sb_3dlight_color" class="post" size="6" maxlength="6" value="{SB_3DLIGHT_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_arrow_color">{L_SB_ARROW_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_arrow_color" name="sb_arrow_color" class="post" size="6" maxlength="6" value="{SB_ARROW_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_track_color">{L_SB_TRACK_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_track_color" name="sb_track_color" class="post" size="6" maxlength="6" value="{SB_TRACK_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="sb_darkshadow_color">{L_SB_DARKSHADOW_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="sb_darkshadow_color" name="sb_darkshadow_color" class="post" size="6" maxlength="6" value="{SB_DARKSHADOW_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_FONT_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="font">{L_FONT}:</label></span></td> <td class="row2"> <select id="font" name="font"> <option value="0" {ARIAL_SELECTED}class="genmed">{L_ARIAL}</option> <option value="1" {COMIC_SANS_SELECTED}class="genmed">{L_COMIC_SANS}</option> <option value="2" {COURIER_NEW_SELECTED}class="genmed">{L_COURIER_NEW}</option> <option value="3" {GEORGIA_SELECTED}class="genmed">{L_GEORGIA}</option> <option value="4" {VERDANA_SELECTED}class="genmed">{L_VERDANA}</option> <option value="5" {TIMES_NEW_ROMAN_SELECTED}class="genmed">{L_TIMES_NEW_ROMAN}</option> <option value="6" {TREBUCHET_SELECTED}class="genmed">{L_TREBUCHET}</option> </select> </td> </tr> <tr> <td class="row1"><span class="gen"><label for="font_color">{L_FONT_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="font_color" name="font_color" class="post" size="6" maxlength="6" value="{FONT_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="font_size">{L_FONT_SIZE}:</label></span></td> <td class="row2"><input type="text" id="font_size" name="font_size" class="post" size="2" maxlength="2" value="{FONT_SIZE}" /><span class="gen">pt</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="normal_link_color">{L_NORMAL_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="normal_link_color" name="normal_link_color" class="post" size="6" maxlength="6" value="{NORMAL_LINK_COLOR}" /> <input type="checkbox" id="normal_link_underline" name="normal_link_underline"{NORMAL_LINK_UNDERLINED} /><span class="gensmall"><label for="normal_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="active_link_color">{L_ACTIVE_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="active_link_color" name="active_link_color" class="post" size="6" maxlength="6" value="{ACTIVE_LINK_COLOR}" /> <input type="checkbox" id="active_link_underline" name="active_link_underline"{ACTIVE_LINK_UNDERLINED} /><span class="gensmall"><label for="active_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="hover_link_color">{L_HOVER_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="hover_link_color" name="hover_link_color" class="post" size="6" maxlength="6" value="{HOVER_LINK_COLOR}" /> <input type="checkbox" id="hover_link_underline" name="hover_link_underline"{HOVER_LINK_UNDERLINED} /><span class="gensmall"><label for="hover_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="visited_link_color">{L_VISITED_LINK}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="visited_link_color" name="visited_link_color" class="post" size="6" maxlength="6" value="{VISITED_LINK_COLOR}" /> <input type="checkbox" id="visited_link_underline" name="visited_link_underline"{VISITED_LINK_UNDERLINED} /><span class="gensmall"><label for="visited_link_underline">{L_UNDERLINE}</label></span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_WEBLOG_TITLE}:</span></td> <td class="row2"><span class="gensmall"><label for="weblog_title_color">{L_COLOR}:</label> #</span><input type="text" id="weblog_title_color" name="weblog_title_color" class="post" size="6" maxlength="6" value="{WEBLOG_TITLE_COLOR}" /> <span class="gensmall"><label for="wtfs">{L_FONT_SIZE}:</label></span> <input type="text" id="wtfs" name="weblog_title_font_size" class="post" size="2" maxlength="2" value="{WEBLOG_TITLE_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_ENTRY_TITLE}:</span></td> <td class="row2"><span class="gensmall"><label for="entry_title_color">{L_COLOR}:</label> #</span><input type="text" id="entry_title_color" name="entry_title_color" class="post" size="6" maxlength="6" value="{ENTRY_TITLE_COLOR}" /> <span class="gensmall"><label for="etfs">{L_FONT_SIZE}:</label></span> <input type="text" id="etfs" name="entry_title_font_size" class="post" size="2" maxlength="2" value="{ENTRY_TITLE_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_DATE_AND_TIME}:</span></td> <td class="row2"><span class="gensmall"><label for="date_time_color">{L_COLOR}:</label> #</span><input type="text" id="date_time_color" name="date_time_color" class="post" size="6" maxlength="6" value="{DATE_TIME_COLOR}" /> <span class="gensmall"><label for="dtfs">{L_FONT_SIZE}:</label></span> <input type="text" id="dtfs" name="date_time_font_size" class="post" size="2" maxlength="2" value="{DATE_TIME_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen">{L_BLOCK_TITLE}:</span></td> <td class="row2"><span class="gensmall"><label for="block_title_color">{L_COLOR}:</label> #</span><input type="text" id="block_title_color" name="block_title_color" class="post" size="6" maxlength="6" value="{BLOCK_TITLE_COLOR}" /> <span class="gensmall"><label for="btfs">{L_FONT_SIZE}:</label></span> <input type="text" id="btfs" name="block_title_font_size" class="post" size="2" maxlength="2" value="{BLOCK_TITLE_FONT_SIZE}" /><span class="gen">pt</span> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="catSides" colspan="2" height="28"><span class="nav">{L_BLOCK_SETTINGS}</span></td> </tr> <tr> <td class="row1"><span class="gen"><label for="block_bg_color">{L_BLOCK_BG_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="block_bg_color" name="block_bg_color" class="post" size="6" maxlength="6" value="{BLOCK_BG_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="block_border_color">{L_BLOCK_BORDER_COLOR}:</label></span></td> <td class="row2"><span class="gen">#</span><input type="text" id="block_border_color" name="block_border_color" class="post" size="6" maxlength="6" value="{BLOCK_BORDER_COLOR}" /> <a href="{MX_ROOT}modules/mx_blogs/weblogs/colors.htm" class="gensmall" target="_blank">{L_SEE_HEX_COLORS}</a></td> </tr> <tr> <td class="row1"><span class="gen"><label for="cb">{L_CUSTOM_BLOCK}:</label></span><br /><span class="gensmall">{L_CUSTOM_BLOCK_EXPLAIN}</span></td> <td class="row2"><span class="gensmall"><label for="cbt">{L_TITLE}:</label></span> <input type="text" id="cbt" name="custom_block_title" class="post" size="20" maxlength="64" value="{CUSTOM_BLOCK_TITLE}" /><br /> <textarea id="cb" name="custom_block" cols="60" rows="20" class="post">{S_CUSTOM_BLOCK}</textarea></td> </tr> <tr> <td class="catSides" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="edit" class="mainoption" value="{L_EDIT_WEBLOG}" /> <input type="submit" name="{DELETE_NAME}" class="liteoption" value="{L_DELETE_WEBLOG}" /></td> </tr> <!-- END switch_edit_easy_weblog --> </table> </form> --- NEW FILE: weblog_index_noweblog.tpl --- <div style="margin: 10px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="forumline"> <tr> <td class="row1" align="center"><span class="gensmall"><p> {L_NO_WEBLOG_CREATE}</p> </span></td> </tr> </table> </div> --- NEW FILE: weblog_faceplate_body.tpl --- <div style="padding: 10px;"> <table width="100%" cellpadding="5" cellspacing="1" border="0" class="forumline"> <tr> <td width="20%" align="center" class="row1"><span class="genmed"> <a href="{U_VIEW_WEBLOG}">{WEBLOG_NAME}</a><br /> {AVATAR_IMG}<br /> <b>{WEBLOG_OWNER}</b></span> </td> <td align="center" class="row2"> <table width="100%" cellpadding="1" cellspacing="1" border="0" align="left"> <tr> <td align="left"><span class="gensmall"><b>{L_WEBLOG_DESCRIPTION}:</b></span></td> <td align="right"><span class="gensmall">[ {WEBLOG_DESCRIPTION} ]</span></td> </tr> <tr> <td align="left"><span class="gensmall"><b>{L_LAST_ENTRY}:</b></span></td> <td align="right"><span class="gensmall">[ {LAST_ENTRY} ]</span></td> </tr> <tr> <td align="left"><span class="gensmall"><b>{L_LATEST_MOOD}:</b></span></td> <td align="right"><span class="gensmall">[ {LATEST_MOOD} ]</span></td> </tr> <tr> <td align="left"><span class="gensmall"><b>{L_LAST_SEEN}:</b></span></td> <td align="right"><span class="gensmall">[ {LAST_SEEN} ]</span></td> </tr> </table></span> </td> </tr> </table> </div> --- NEW FILE: weblog_index_top_small.tpl --- <form method="post" action="{S_SORT_ACTION}"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td valign="top"> <table width="100%" cellspacing="1" cellpadding="1" border="0" align="left"><tr><td nowrap="nowrap"> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a href="{U_WEBLOGS}" class="nav">{L_WEBLOGS}</a> </span> </td></tr></table> </td> <td valign="top" align="right" nowrap="nowrap"> <span class="genmed">{L_WEBLOGS_PER_PAGE} {S_NUM_WEBLOGS} {L_SORT} {S_SORT_METHOD} {S_SORT_ORDER}</span> <input type="submit" class="liteoption" value="{L_GO}" name="submit" /> </td> </tr> </table> <table width="66%" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td> <div style="padding: 10px"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="row3">{YOUR_WEBLOG}</td> </tr> </table> </div> <table cellspacing="1" cellpadding="2" border="0" width="100%" class="forumline"> <tr> <th class="thHead">{L_WEBLOG}</th> <th class="thHead">{L_OWNER}</th> <th class="thHead">{L_LAST_ENTRY}</th> </tr> |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:38
|
Update of /cvsroot/mxbb/mx_blogs/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/includes Added Files: functions_trackback.php functions_weblog.php monofont.ttf weblogs_common.php weblogs_constants.php Log Message: mx_blogs, Initial checkin --- NEW FILE: weblogs_common.php --- <?php /*************************************************************************** * weblogs_common.php * ------------------------ * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblogs_common.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } if ( !isset($mx_root_path)) { $mx_root_path = '../../../'; } include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); //include($phpbb_root_path . 'includes/functions_weblog.'.$phpEx); include($mx_root_path . 'modules/mx_blogs/includes/functions_weblog.'.$phpEx); //include($mx_root_path . 'includes/mx_functions.'.$phpEx); // The Blog Mod version 0.2.5 define('WEBLOGS_MOD_VERSION', '0.2.6'); // Weblog Constants (Constants used all over the place) define('SORT_NEWEST_ENTRIES', 0); define('SORT_WEBLOG_NAME', 1); define('SORT_NUM_ENTRIES', 2); define('SORT_WEBLOG_START_DATE', 3); define('SORT_WEBLOG_VIEWS', 4); define('SORT_WEBLOG_OWNER_NAME', 5); define('ACTION_DO_NOTHING', 0); define('ACTION_LOAD_TEMPLATE', 1); define('ACTION_SWITCH_MODE', 2); define('WEBLOG_AUTH_ALL', 0); define('WEBLOG_AUTH_REGISTERED', 1); define('WEBLOG_AUTH_FRIENDS', 2); define('WEBLOG_AUTH_OWNER', 3); // include the weblog language file $use_lang = ( !file_exists($mx_root_path . 'modules/mx_blogs/language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; include($mx_root_path . 'modules/mx_blogs/language/lang_' . $use_lang . '/lang_weblog_main.' . $phpEx); // // Preload all Weblog Config data // $sql = "SELECT * FROM " . WEBLOG_CONFIG_TABLE; if( !($result = $db->sql_query($sql)) ) { if (function_exists('read_block_config')) { mx_message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); } else { message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); } } while ( $row = $db->sql_fetchrow($result) ) { $weblog_config[$row['config_name']] = $row['config_value']; } // // Preload the friends data (for determining if user is friend of weblog owner // $sql = "SELECT * FROM " . WEBLOG_FRIENDS_TABLE . " WHERE friend_id = " . $userdata['user_id']; if ( !($result = $db->sql_query($sql)) ) { if (function_exists('read_block_config')) { mx_message_die(GENERAL_ERROR, 'Error querying to find user weblog friends information', '', __LINE__, __FILE__, $sql); } else { message_die(GENERAL_ERROR, 'Error querying to find user weblog friends information', '', __LINE__, __FILE__, $sql); } } $friends_data = array(); while ( $row = $db->sql_fetchrow($result) ) { $friends_data[] = $row; } // // Preload the blocked users data (for determining if user is blocked in any weblog // $sql = "SELECT * FROM " . WEBLOG_BLOCKED_TABLE . " WHERE blocked_id = " . $userdata['user_id']; if ( !($result = $db->sql_query($sql)) ) { if (function_exists('read_block_config')) { mx_message_die(GENERAL_ERROR, 'Error querying to find user weblog blocked information', '', __LINE__, __FILE__, $sql); } else { message_die(GENERAL_ERROR, 'Error querying to find user weblog blocked information', '', __LINE__, __FILE__, $sql); } } $blocked_data = array(); while ( $row = $db->sql_fetchrow($result) ) { $blocked_data[] = $row; } // // Load the template data // // Get template data and check to see if there is at least one template installed. $sql = "SELECT * FROM " . WEBLOG_TEMPLATES_TABLE . " ORDER BY template_name"; if ( !($result = $db->sql_query($sql)) ) { if (function_exists('read_block_config')) { mx_message_die(GENERAL_ERROR, 'Error querying to find user weblog information', '', __LINE__, __FILE__, $sql); } else { message_die(GENERAL_ERROR, 'Error querying to find user weblog information', '', __LINE__, __FILE__, $sql); } } $template_data = array(); while ( $row = $db->sql_fetchrow($result) ) { $template_data[] = $row; } ?> --- NEW FILE: monofont.ttf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: functions_weblog.php --- <?php /*************************************************************************** * functions_weblog.php * -------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: functions_weblog.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ function use_weblog_header ( $weblog_data, $template_dir, $parse = TRUE ) { global $board_config, $template, $template_data, $phpEx, $phpbb_root_path, $lang, $page_title, $userdata; global $module_root_path,$mx_root_path,$weblog_config; // // Start output of page // // include the weblog lang file $use_lang = ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; // // Copied from includes/page_header.php // define('HEADER_INC', TRUE); // // gzip_compression // $do_gzip_compress = FALSE; if ( $board_config['gzip_compress'] ) { $phpver = phpversion(); $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT; if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) { if ( extension_loaded('zlib') ) { @ob_end_clean(); ob_start('ob_gzhandler'); } } else if ( $phpver > '4.0' ) { if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) { if ( extension_loaded('zlib') ) { $do_gzip_compress = TRUE; ob_start(); ob_implicit_flush(0); header('Content-Encoding: gzip'); } } } } // Add no-cache control for cookies if they are set //$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : ''; // Work around for "current" Apache 2 + PHP module which seems to not // cope with private cache control setting if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2')) { header ('Cache-Control: no-cache, pre-check=0, post-check=0'); } else { header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); } header ('Expires: 0'); header ('Pragma: no-cache'); // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility $l_timezone = explode('.', $board_config['board_timezone']); $l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; if ( !$userdata['session_logged_in'] ) { $template->assign_block_vars('switch_user_logged_out', array()); } else { $template->assign_block_vars('switch_user_logged_in', array()); } // // End copy // if ( $parse ) { $template->set_filenames(array( 'header' => $module_root_path . 'weblogs/templates/' . $template_dir . '/weblog_header.htm') ); } if ( $weblog_data['font'] == '0' ) $font = 'Arial'; else if ( $weblog_data['font'] == '1' ) $font = 'Comic Sans MS'; else if ( $weblog_data['font'] == '2' ) $font = 'Courier New'; else if ( $weblog_data['font'] == '3' ) $font = 'Georgia'; else if ( $weblog_data['font'] == '4' ) $font = 'Verdana'; else if ( $weblog_data['font'] == '5' ) $font = 'Times New Roman'; else if ( $weblog_data['font'] == '6' ) $font = 'Trebuchet'; else $font = 'Verdana'; $template->assign_vars(array( 'SITENAME' => $board_config['sitename'], 'SITE_DESCRIPTION' => $board_config['site_desc'], 'PAGE_TITLE' => $page_title, 'BACKGROUND_COLOR' => $weblog_data['background_color'], 'ENTRY_BG_COLOR' => $weblog_data['entry_bg_color'], 'BORDER_COLOR' => $weblog_data['border_color'], 'BACKGROUND_IMAGE' => $weblog_data['background_image'], 'BACKGROUND_IMAGE_FIXED' => ( $weblog_data['background_image_fixed'] ) ? 'fixed' : 'scroll', 'BACKGROUND_REPEAT' => $weblog_data['tile_bg'], 'BACKGROUND_POSITION' => $weblog_data['bg_ypos'] . ' ' . $weblog_data['bg_xpos'], 'SB_FACE_COLOR' => $weblog_data['sb_face_color'], 'SB_HIGHLIGHT_COLOR' => $weblog_data['sb_highlight_color'], 'SB_SHADOW_COLOR' => $weblog_data['sb_shadow_color'], 'SB_3DLIGHT_COLOR' => $weblog_data['sb_3dlight_color'], 'SB_ARROW_COLOR' => $weblog_data['sb_arrow_color'], 'SB_TRACK_COLOR' => $weblog_data['sb_track_color'], 'SB_DARKSHADOW_COLOR' => $weblog_data['sb_darkshadow_color'], 'FONT' => $font, 'FONT_COLOR' => $weblog_data['font_color'], 'FONT_SIZE' => $weblog_data['font_size'], 'NORMAL_LINK_COLOR' => $weblog_data['normal_link_color'], 'NORMAL_LINK_UNDERLINED' => ( $weblog_data['normal_link_underline'] ) ? 'underline' : 'none', 'ACTIVE_LINK_COLOR' => $weblog_data['active_link_color'], 'ACTIVE_LINK_UNDERLINED' => ( $weblog_data['active_link_underline'] ) ? 'underline': 'none', 'HOVER_LINK_COLOR' => $weblog_data['hover_link_color'], 'HOVER_LINK_UNDERLINED' => ( $weblog_data['hover_link_underline'] ) ? 'underline': 'none', 'VISITED_LINK_COLOR' => $weblog_data['visited_link_color'], 'VISITED_LINK_UNDERLINED' => ( $weblog_data['visited_link_underline'] ) ? 'underline': 'none', 'WEBLOG_TITLE_COLOR' => $weblog_data['weblog_title_color'], 'WEBLOG_TITLE_FONT_SIZE' => $weblog_data['weblog_title_font_size'], 'ENTRY_TITLE_COLOR' => $weblog_data['entry_title_color'], 'ENTRY_TITLE_FONT_SIZE' => $weblog_data['entry_title_font_size'], 'DATE_TIME_COLOR' => $weblog_data['date_time_color'], 'DATE_TIME_FONT_SIZE' => $weblog_data['date_time_font_size'], 'BLOCK_TITLE_COLOR' => $weblog_data['block_title_color'], 'BLOCK_TITLE_FONT_SIZE' => $weblog_data['block_title_font_size'], 'BLOCK_BG_COLOR' => $weblog_data['block_bg_color'], 'BLOCK_BORDER_COLOR' => $weblog_data['block_border_color'], 'L_USERNAME' => $lang['Username'], 'L_PASSWORD' => $lang['Password'], 'L_LOGIN' => $lang['Login'], 'L_LOG_ME_IN' => $lang['Log_me_in'], 'L_AUTO_LOGIN' => $lang['Log_me_in'], 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'L_REGISTER' => $lang['Register'], 'L_PROFILE' => $lang['Profile'], 'L_SEARCH' => $lang['Search'], 'L_PRIVATEMSGS' => $lang['Private_Messages'], 'L_WHO_IS_ONLINE' => $lang['Who_is_Online'], 'L_MEMBERLIST' => $lang['Memberlist'], 'L_FAQ' => $lang['FAQ'], 'L_USERGROUPS' => $lang['Usergroups'], 'L_SEARCH_NEW' => $lang['Search_new'], 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], 'L_SEARCH_SELF' => $lang['Search_your_posts'], 'L_WEBLOGS' => $lang['Weblogs'], 'L_WEBLOG_CONFIG' => $lang['Weblog_CP'], 'L_MYWEBLOGS' => $lang['Weblog_MyWeblogs'], 'U_WEBLOGS' => append_sid($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list']), 'U_MYWEBLOGS' => append_sid("myweblogs.$phpEx"), 'U_WEBLOG_CONFIG' => append_sid($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_config_page']), 'U_INDEX' => append_sid($mx_root_path . 'index.'.$phpEx), 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], 'S_CONTENT_ENCODING' => $lang['ENCODING'], 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), 'S_LOGIN_ACTION' => append_sid($mx_root_path . 'login.'.$phpEx)) ); if ( $parse ) { // // Parse the header // $template->pparse('header'); } return; } function use_weblog_footer ( $weblog_data, $template_dir, $parse = TRUE ) { global $do_gzip_compress, $template, $db; if ( $parse ) { $template->set_filenames(array( 'footer' => $module_root_path . 'weblogs/templates/' . $template_dir . '/weblog_footer.htm') ); // // Output the footer // $template->pparse('footer'); } // // Copied from includes/page_tail.php // // // Close our DB connection. // $db->sql_close(); // // Compress buffered output if required and send to browser // if ( $do_gzip_compress ) { // // Borrowed from php.net! // $gzip_contents = ob_get_contents(); @ob_end_clean(); $gzip_size = strlen($gzip_contents); $gzip_crc = crc32($gzip_contents); $gzip_contents = gzcompress($gzip_contents, 9); $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; echo $gzip_contents; echo pack('V', $gzip_crc); echo pack('V', $gzip_size); } exit; // // End copy // } function make_template_select ( $selected, $select_name, $weblog_exists ) { global $template_data, $lang; $template_select = '<select id="' . $select_name . '" name="' . $select_name . '" onchange="update_preview(this.options[selectedIndex].id);">'; $found = false; for ($i = 0; $i < count($template_data); $i++) { if ( ($template_data[$i]['template_private'] && $selected == $template_data[$i]['template_id']) || !$template_data[$i]['template_private'] ) { $select = ( $selected == $template_data[$i]['template_id'] && $weblog_exists ) ? ' selected="selected"' : ''; $template_select .= '<option value="' . $template_data[$i]['template_name'] . '" id="' . $template_data[$i]['template_dir'] . '"' . $select . '>' . (( $template_data[$i]['template_private'] ) ? $lang['Private'] : '') . ' ' . $template_data[$i]['template_name'] . '</option>'; $found = ( $selected == $template_data[$i]['template_id'] ) ? true : $found; } $select = ''; } if ( !$found && $weblog_exists ) { $template_select .= '<option value="" name="" selected="selected">' . $lang['Unknown'] . '</option>'; } $template_select .= '</select>'; return $template_select; } function make_weblog_auth_select ( $selected, $select_name ) { global $lang; $weblog_auth_types = array($lang['Weblog_auth_all'], $lang['Weblog_auth_reg'], $lang['Weblog_auth_friends'], $lang['Weblog_auth_owner']); $weblog_auth_select = '<select id="' . $select_name . '" name="' . $select_name . '">'; for ($i = 0; $i < count($weblog_auth_types); $i++) { $select = ( $selected == $i ) ? ' selected="selected"' : ''; $weblog_auth_select .= '<option value="' . $i . '"' . $select . '>' . $weblog_auth_types[$i] . '</option>'; } $weblog_auth_select .= '</select>'; return $weblog_auth_select; } function make_mood_set_select ( $selected, $select_name ) { global $lang, $mood_set_data, $mood_data; $set_data = array(); // Find the data that corresponds with the selected set for ( $i = 0; $i < count($mood_set_data); $i++ ) { if ( $mood_set_data[$i]['set_id'] == $selected ) { $set_data = $mood_set_data[$i]; } } $set_select = '<select id="' . $select_name . '" name="' . $select_name . '" onchange="update_set_preview(this.options[selectedIndex].id);">'; for ( $i = 0; $i < count ($mood_set_data); $i++ ) { $preview = ''; for ( $j = 0; $j < count($mood_data) ; $j++) { $temp = 0; $temp = rand(0, count($mood_data)); if ( $mood_data[$j]['mood_set'] == $mood_set_data[$i]['set_id'] ) { $preview = $mood_data[$j]['mood_url']; break; } else if ( $mood_data[$temp]['mood_set'] == $mood_set_data[$i]['set_id'] ) { $preview = $mood_data[$temp]['mood_url']; break; } } if ( !$preview ) { $preview = 'mood_none.gif'; } $select = ( $selected == $mood_set_data[$i]['set_id'] ) ? ' selected="selected"' : ''; $set_select .= '<option value="' . $mood_set_data[$i]['set_id'] . '"' . $select . ' id="' . $preview . '">' . $mood_set_data[$i]['set_name'] . '</option>'; } $set_select .= '</select>'; return $set_select; } function make_mood_select ( $selected, $select_name, $set_id, $auto_change_img = FALSE ) { global $lang, $mood_data; $mood_select = '<select id="' . $select_name . '" name="' . $select_name . '"' . ( ( $auto_change_img ) ? ' onchange="update_mood(this.options[selectedIndex].id);"' : '') . ' tabindex="3">'; $mood_select .= '<optgroup label="' . $mood_data[0]['set_name'] . '"><option value="-1" id="mood_none.gif"' . (( $selected == -1 ) ? " selected=\"selected\"" : "") . '>' . $lang['None'] . '</option>'; for ($i = 0; $i < count($mood_data); $i++) { if ( $mood_data[$i]['mood_set'] == $set_id ) { $select = ( $selected == $mood_data[$i]['mood_id'] ) ? ' selected="selected"' : ''; $mood_select .= '<option value="' . $mood_data[$i]['mood_id'] . '" id="' . $mood_data[$i]['mood_url'] . '"' . $select . '>' . $mood_data[$i]['mood_text'] . '</option>'; } } $mood_select .= '</optgroup></select>'; return $mood_select; } function make_action_select ( $selected, $select_name, $auto_change_img = FALSE ) { global $lang, $action_data; $action_select = '<select id="' . $select_name . '" name="' . $select_name . '"' . ( ( $auto_change_img ) ? ' onchange="update_currently(this.options[selectedIndex].id);"' : '') . ' tabindex="4"><option value="-1" id="action_none.gif"' . (( $selected == -1 ) ? " selected=\"selected\"" : "") . '>' . $lang['None'] . '</option>'; for ($i = 0; $i < count($action_data); $i++) { $select = ( $selected == $action_data[$i]['action_id'] ) ? ' selected="selected"' : ''; $action_select .= '<option value="' . $action_data[$i]['action_id'] . '" id="' . $action_data[$i]['action_url'] . '"' . $select . '>' . $action_data[$i]['action_text'] . '</option>'; } $action_select .= '<option value="-2" id="action_custom.gif"' . (( $selected == -2 ) ? " selected=\"selected\"" : "") . '>' . $lang['Custom'] . '</option></select>'; return $action_select; } //ADDON Categories function make_category_select ( $selected, $select_name, $category_data, $auto_change = TRUE) { global $lang; $category_select = '<select id="' . $select_name . '" name="' . $select_name . '"' . ' onchange="update_category(this.options[selectedIndex].id);" tabindex="6">'; for ($i = 0; $i < count($category_data); $i++) { $select = ( $selected == $category_data[$i] ) ? ' selected="selected"' : ''; $category_select .= '<option value="' . $i . '" id="' . $category_data[$i] . '">' . $category_data[$i] . '</option>'; } $category_select .= '</select>'; return $category_select; } function load_template ( $template_dir, $weblog_id ) { global $lang,$mx_root_path; // Chmod so we'll have no problems @chmod($mx_root_path . 'modules/mx_blogs/weblogs', 0755); // CHMOD the template's files @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_body.htm', 0755); @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_header.htm', 0755); @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_footer.htm', 0755); @chmod ($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm', 0755); if ( file_exists($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_body.htm') ) { $weblog_body = file($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_body.htm'); } else { $weblog_body[] = sprintf($lang['Weblog_no_body'], $mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_body.htm'); } if ( file_exists($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_header.htm') ) { $weblog_header = file($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_header.htm'); } else { $weblog_header[] = sprintf($lang['Weblog_no_header'], $mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_header.htm'); } if ( file_exists($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_footer.htm') ) { $weblog_footer = file($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_footer.htm'); } else { $weblog_footer[] = sprintf($lang['Weblog_no_footer'], $mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_footer.htm'); } if ( file_exists($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm') ) { $weblog_faceplate = file($mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm'); } else { $weblog_faceplate[] = sprintf($lang['Weblog_no_faceplate'], $mx_root_path . 'modules/mx_blogs/weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm'); } $file_body = ''; $file_faceplate = ''; for ( $i = 0; $i < count($weblog_header); $i++) { $file_body .= $weblog_header[$i]; } for ( $i = 0; $i < count($weblog_body); $i++) { $file_body .= $weblog_body[$i]; } for ( $i = 0; $i < count($weblog_footer); $i++) { $file_body .= $weblog_footer[$i]; } for ( $i = 0; $i < count($weblog_faceplate); $i++) { $file_faceplate .= $weblog_faceplate[$i]; } $filename = $mx_root_path . 'modules/mx_blogs/weblogs/weblog_' . $weblog_id . '.htm'; // Delete the user's old file if present @unlink($filename); // Open for writing $f = @fopen($filename, 'w' ); // Write the stuff @fwrite( $f, $file_body ); // Close the file @fclose( $f ); // Do the same for the face plate $filename = $mx_root_path . 'modules/mx_blogs/weblogs/faceplate_' . $weblog_id . '.htm'; // Delete the user's old file if present @unlink($filename); // Open for writing $f = @fopen($filename, 'w' ); // Write the stuff @fwrite( $f, $file_faceplate ); // Close the file @fclose( $f ); } function save_template ( $weblog_body, $weblog_faceplate, $weblog_id ) { global $lang,$mx_root_path; // // Assumes html has been prepared already // // Chmod so we'll have no problems @chmod($mx_root_path . 'modules/mx_blogs/weblogs/', 0755); if ( !file_exists($mx_root_path . 'modules/mx_blogs/weblogs/faceplate_' . $weblog_id . '.htm') ) { mx_message_die (GENERAL_ERROR, sprintf($lang['No_faceplate_file'], $mx_root_path . 'modules/mx_blogs/weblogs/faceplate_' . $weblog_id . '.htm')); } $filename = $mx_root_path . 'modules/mx_blogs/weblogs/weblog_' . $weblog_id . '.htm'; // Chmod so we'll have no problems @chmod($filename, 0755); if ( !file_exists($filename) ) { mx_message_die (GENERAL_ERROR, sprintf($lang['No_weblog_file'], 'weblogs/weblog_' . $weblog_id . '.htm')); } // Delete the user's old file @unlink($filename); // Open for writing $f = @fopen($filename, 'w' ); // Write the stuff @fwrite( $f, $weblog_body ); // Close the file @fclose( $f ); // Do the same for the face plate $filename = $mx_root_path . 'modules/mx_blogs/weblogs/faceplate_' . $weblog_id . '.htm'; // Chmod so we'll have no problems @chmod($filename, 0755); if ( !file_exists($filename) ) { mx_message_die (GENERAL_ERROR, sprintf($lang['No_faceplate_file'], 'weblogs/faceplate_' . $weblog_id . '.htm')); } // Delete the user's old file @unlink($filename); // Open for writing $f = @fopen($filename, 'w' ); // Write the stuff @fwrite( $f, $weblog_faceplate ); // Close the file @fclose( $f ); } function get_auth_level ( $weblog_data, $friends_data, $blocked_data, $owner_id ) { global $userdata, $db; // // Get the authorization level of this user versus this weblog // $weblog_id = $weblog_data['weblog_id']; $auth_level = 0; // The user should at least belong to the 'all' category! if ( $userdata['session_logged_in'] ) { $auth_level = 1; for ( $i = 0; $i < count($friends_data); $i++ ) { if ( $friends_data[$i]['owner_id'] == $owner_id && $userdata['user_id'] == $friends_data[$i]['friend_id'] ) { $auth_level = 2; break; } } for ( $i = 0; $i < count($blocked_data); $i++ ) { if ( $blocked_data[$i]['owner_id'] == $owner_id && $userdata['user_id'] == $blocked_data[$i]['blocked_id'] ) { $auth_level = -1; break; } } if ( $weblog_data['weblog_id'] == $userdata['user_weblog'] ) { // Means full access. Can be any number higher than 2. $auth_level = 3; } } return $auth_level; } function get_weblog_faceplate ($weblog_id) { global $lang,$mx_root_path; $filename = $mx_root_path . 'modules/mx_blogs/weblogs/faceplate_' . $weblog_id . '.htm'; // CHMOD the template's files @chmod ($filename, 0755); if ( file_exists($filename) ) { $faceplate = file($filename); } else { $faceplate[] = sprintf($lang['No_faceplate_file'], $filename); } $file_faceplate = ''; for ( $i = 0; $i < count($faceplate); $i++) { $file_faceplate .= $faceplate[$i]; } return $file_faceplate; } function get_weblog_body ($weblog_id) { global $lang,$mx_root_path; $filename = $mx_root_path . 'modules/mx_blogs/weblogs/weblog_' . $weblog_id . '.htm'; // CHMOD the template's files @chmod ($filename, 0755); if ( file_exists($filename) ) { $body = file($filename); } else { $body[] = sprintf($lang['Weblog_no_body'], $filename); } $file_body = ''; for ( $i = 0; $i < count($body); $i++) { $file_body .= $body[$i]; } return $file_body; } function get_template_dir ( $template_id ) { global $template_data; for ( $i = 0; $i < count ($template_data); $i++) { if ( $template_data[$i]['template_id'] == $template_id ) { return $template_data[$i]['template_dir']; } } return -1; } function find_mood ( $mood_id ) { global $mood_data; for ( $i = 0; $i < count($mood_data); $i++ ) { if ( $mood_data[$i]['mood_id'] == $mood_id ) { return $mood_data[$i]; } } return -1; } function find_action ( $action_id ) { global $action_data; if ( $action_id == -2 ) { return -2; } for ( $i = 0; $i < count($action_data); $i++ ) { if ( $action_data[$i]['action_id'] == $action_id ) { return $action_data[$i]; } } return -1; } function make_date_select ( $select_year, $select_month, $select_day ) { global $lang, $board_config; $months = array($lang['datetime']['January'],$lang['datetime']['February'],$lang['datetime']['March'],$lang['datetime']['April'],$lang['datetime']['May'],$lang['datetime']['June'], $lang['datetime']['July'], $lang['datetime']['August'], $lang['datetime']['September'], $lang['datetime']['October'], $lang['datetime']['November'], $lang['datetime']['December']); $date_select = '<select id="month" name="month">'; $date_select .= '<option value="">---</option>'; for ($i = 1; $i <= 12 ; $i++) { $select = ( $select_month == $i ) ? ' selected="selected"' : ''; $date_select .= '<option value="' . $i . '"' . $select . '>' . $months[$i-1] . '</option>'; } $date_select .= '</select>'; $date_select .= '<select id="day" name="day">'; $date_select .= '<option value="">---</option>'; for ($i = 1; $i <= 31 ; $i++) { $select = ( $select_day == $i ) ? ' selected="selected"' : ''; $date_select .= '<option value="' . $i . '"' . $select . '>' . $i . '</option>'; } $date_select .= '</select>'; $date_select .= '<select id="year" name="year">'; for ($i = 1970; $i <= 2037; $i++) { $select = ( $select_year == $i ) ? ' selected="selected"' : ''; $date_select .= '<option value="' . $i . '"' . $select . '>' . $i . '</option>'; } $date_select .= '</select>'; return $date_select; } function search_array ( $needle, $haystack ) { for ( $i = 0; $i < count($haystack); $i++) { if ( $haystack[$i]['weblog_id'] == $needle ) { return true; } } return false; } function fetch_visible_weblogs ( $sort = 'entry_time', $order = 'desc' ) { global $db, $friends_data, $blocked_data, $template; // // Get Weblog Data // $sql = "SELECT w.*, u.*, e.* FROM " . USERS_TABLE . " u, " . WEBLOGS_TABLE . " w LEFT JOIN " . WEBLOG_ENTRIES_TABLE . " e ON e.weblog_id = w.weblog_id WHERE u.user_weblog = w.weblog_id AND w.deleted = 0 AND e.entry_deleted = 0 AND e.entry_time <= " . time() . " ORDER BY e.entry_time DESC"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query weblogs information', '', __LINE__, __FILE__, $sql); } // // Build a new array, discarding weblogs with outdated entries or entries that cannot be viewed. // $weblog_data = array(); while( $row = $db->sql_fetchrow($result) ) { if ( !search_array( $row['weblog_id'], $weblog_data ) ) { $auth_level = get_auth_level( $row, $friends_data, $blocked_data, $row['user_id'] ); if ( $auth_level >= $row['weblog_auth'] && $auth_level >= $row['entry_access'] ) { $weblog_data[] = $row; } } } // // Now, do your own sorting for this special array. (Insertion sort) // $sorted_data = array(); for ( $i = 0; $i < count($weblog_data); $i++ ) { // Do it descending first, then if needed reverse the order for ascending. $high_index = 0; $high_value = ''; // Find highest value for ( $j = 0; $j < count($weblog_data); $j++ ) { if ( $weblog_data[$j][$sort] > $high_value ) { $high_index = $j; $high_value = $weblog_data[$j][$sort]; } } $sorted_data[] = $weblog_data[$high_index]; $weblog_data[$high_index][$sort] = ''; // Removes it so that it is always "less than or equal to" } if ( $order == 'asc' ) { $sorted_data = array_reverse ($sorted_data); } return $sorted_data; } ?> --- NEW FILE: weblogs_constants.php --- <?php if (!isset($mx_table_prefix)) { $mx_table_prefix = 'mx_'; } define('POST_WEBLOG_URL', 'w'); define('POST_ENTRY_URL', 'e'); define('POST_REPLY_URL', 'r'); define('WEBLOG_BLOCKED_TABLE', $mx_table_prefix.'weblog_blocked'); define('WEBLOG_CONFIG_TABLE', $mx_table_prefix.'weblog_config'); define('WEBLOG_ACTIONS_TABLE', $mx_table_prefix.'weblog_actions'); define('WEBLOG_ENTRIES_TABLE', $mx_table_prefix.'weblog_entries'); define('WEBLOG_FRIENDS_TABLE', $mx_table_prefix.'weblog_friends'); define('WEBLOG_MOODS_TABLE', $mx_table_prefix.'weblog_moods'); define('WEBLOG_MOOD_SETS_TABLE', $mx_table_prefix.'weblog_mood_sets'); define('WEBLOG_CONTRIBUTORS_TABLE', $mx_table_prefix.'weblog_contributors'); define('WEBLOG_REPLIES_TABLE', $mx_table_prefix.'weblog_replies'); define('WEBLOG_SHOUTBOX_TABLE', $mx_table_prefix.'weblog_shoutbox'); define('WEBLOG_TEMPLATES_TABLE', $mx_table_prefix.'weblog_templates'); define('WEBLOG_TRACKBACKS_TABLE', $mx_table_prefix.'weblog_trackbacks'); define('WEBLOGS_TABLE', $mx_table_prefix.'weblogs'); define('SORT_NEWEST_ENTRIES', 0); define('SORT_WEBLOG_NAME', 1); define('SORT_NUM_ENTRIES', 2); define('SORT_WEBLOG_START_DATE', 3); define('SORT_WEBLOG_VIEWS', 4); define('SORT_WEBLOG_OWNER_NAME', 5); define('ACTION_DO_NOTHING', 0); define('ACTION_LOAD_TEMPLATE', 1); define('ACTION_SWITCH_MODE', 2); define('WEBLOG_AUTH_ALL', 0); define('WEBLOG_AUTH_REGISTERED', 1); define('WEBLOG_AUTH_FRIENDS', 2); define('WEBLOG_AUTH_OWNER', 3); ?> --- NEW FILE: functions_trackback.php --- <?php /*************************************************************************** * functions_trackback.php * ----------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: functions_trackback.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if (!defined('IN_PHPBB')) { die('Hacking attempt'); } function do_trackback_pings ($tb_excerpt, $tb_urls, $weblog_name, $subject, $entry_id) { global $board_config, $phpEx; $tb_url = explode ("\n", $tb_urls); $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $source_url = $server_protocol . $server_name . $server_port . $script_name . '/weblog_entry.' . $phpEx . '?e=' . $entry_id; $result = ''; $trackback = ''; for ($i = 0; $i < count($tb_url); $i++) { $trackback = trackback_ping($tb_url[$i], $weblog_name, $subject, $tb_excerpt, $source_url); $result .= '<br />' . $trackback; } return $result; } function trackback_ping ($target_url, $weblog_name, $title, $excerpt, $url) { global $lang; if (!preg_match('#^http[s]?:\/\/#i', $target_url)) { $target_url = 'http://' . $target_url; } // Split up the target url so that we can manage it $target = parse_url($target_url); // "?" is removed when the url is split up. This puts it back in. if ( isset($target['query']) && !empty($target['query']) ) { $target['query'] = '?' . $target['query']; } else { $target['query'] = ''; } if ( !isset($target['port']) || !is_numeric($target['port']) ) { $target['port'] = 80; } $excerpt = reduce_length($excerpt); // Connect to the target $target_sock = @fsockopen($target['host'], $target['port']); // If it can't connect.... if (!is_resource($target_sock)) { return sprintf($lang['Trackback_no_connect'], $target_url); } // Put together the things we want to send $target_send = 'url=' . rawurlencode($url) . '&title=' . rawurlencode($title) . '&blog_name=' . rawurlencode($weblog_name) . '&excerpt=' . rawurlencode($excerpt); // Send the trackback fputs($target_sock, "POST " . $target['path'] . $target['query'] . " HTTP/1.1\r\n"); fputs($target_sock, "Host: " . $target['host'] . "\r\n"); fputs($target_sock, "Content-type: application/x-www-form-urlencoded\r\n"); fputs($target_sock, "Content-length: " . strlen($target_send) . "\r\n"); fputs($target_sock, "Connection: close\r\n\r\n"); fputs($target_sock, $target_send); // See what the server said while (!feof($target_sock)) { $response .= fgets($target_sock, 128); } // Close the connection fclose($target_sock); // send result return get_error_response($response, $target_url); } function get_error_response($response, $target_url) { global $lang; if ( strpos($response, '<error>0</error>') ) { return sprintf($lang['Trackback_successful'], $target_url); } $curr_pos = strpos($response, '<message>', $curr_pos); $end_pos = strpos($response, '</message>', $curr_pos); $error_msg = substr($response, $curr_pos, $end_pos - $curr_pos); return $error_msg; } function trackback_response($success, $err_response, $encoding) { // Start response to trackbacker... $return = '<?xml version="1.0" encoding="' . $encoding . '"?>'; $return .= '<response>'; // Send back response... if ($success) { // Trackback received successfully... $return .= ' <error>0</error>'; } else { // Something went wrong... $return .= ' <error>1</error>'; $return .= ' <message>' . htmlspecialchars($err_response) . '</message>'; } // End response to trackbacker... $return .= "</response>"; return $return; } function reduce_length($excerpt) { $excerpt = trim ($excerpt); if (strlen($excerpt) > 255) { $excerpt = substr($excerpt, 0, 252) . '...'; } return $excerpt; } ?> |
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/templates/subSilver/admin Added Files: user_select_body.tpl weblog_action_edit_body.tpl weblog_action_list_body.tpl weblog_config_body.tpl weblog_config_body.tpl.$$$ weblog_mood_edit_body.tpl weblog_mood_list_body.tpl weblog_mood_set_edit_body.tpl weblog_purge_body.tpl weblog_template_edit_body.tpl weblog_template_list_body.tpl weblog_tools_body.tpl weblog_tools_manage_body.tpl weblog_users_body.tpl Log Message: mx_blogs, Initial checkin --- NEW FILE: weblog_template_edit_body.tpl --- <h1>{L_TEMPLATE_TITLE}</h1> <p>{L_TEMPLATE_EXPLAIN}</p> <script language="javascript" type="text/javascript"> <!-- function update_preview(newimage) { document.preview_image.src = "./../weblogs/templates/" + newimage + "/preview_img.gif"; } //--> </script> <form method="post" action="{S_TEMPLATE_ACTION}"><table class="forumline" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th class="thHead" colspan="2">{L_TEMPLATE_CONFIG}</th> </tr> <tr> <td class="row1">{L_TEMPLATE_NAME}</td> <td class="row1"><input class="post" type="text" name="template_name" value="{TEMPLATE_NAME}" /></td> </tr> <tr> <td class="row1">{L_TEMPLATE_DIR}<br /></td> <td class="row1">{TEMPLATE_DIR}</td> </tr> <tr> <td class="row1">{L_TEMPLATE_PREVIEW}</td> <td class="row1"><img name="preview_image" src="{PREVIEW_IMG}" border="0"></td> </tr> <tr> <td class="row1">{L_TEMPLATE_PRIVATE}</td> <td class="row1"><input type="radio" name="private_template" value="1"{TEMPLATE_PRIVATE_CHECKED} />{L_YES} <input type="radio" name="private_template" value="0"{TEMPLATE_NOT_PRIVATE_CHECKED} />{L_NO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table></form> --- NEW FILE: weblog_tools_body.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_SELECT_ACTION}" method="post"> <table cellspacing="0" cellpadding="3" border="0" class="forumline" align="center"> <tr> <th class="thHead">{L_CONFIGURATION_TITLE}</th> </tr> <tr> <td align="center" class="row1"> <h2>{L_PICK_A_TOOL}</h2> <p> <input type="submit" name="user_admin" value="{L_WEBLOG_USER_ADMIN}" class="mainoption" /><br /> {L_WEBLOG_USER_ADMIN_EXPLAIN} </p> <p> <input type="submit" name="purge" value="{L_WEBLOG_PURGING}" class="mainoption" /><br /> {L_WEBLOG_PURGING_EXPLAIN} </p> </td></tr></table> </form> <br clear="all" /> --- NEW FILE: weblog_config_body.tpl.$$$ --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_CONFIG_ACTION}" method="post"><table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_GENERAL_SETTINGS}</th> </tr> <tr> <td class="row1" width="50%">{L_ENABLE_BLOG_MOD}</td> <td class="row2" width="50%"><input type="radio" name="enable_mod" value="1" {S_ENABLE_BLOG_MOD_YES} /> {L_YES} <input type="radio" name="enable_mod" value="0" {S_ENABLE_BLOG_MOD_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_CONDENSE_INDEX}<br /><span class="gensmall">{L_CONDENSE_INDEX_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="condense_index" value="1" {S_CONDENSE_INDEX_YES} /> {L_YES} <input type="radio" name="condense_index" value="0" {S_CONDENSE_INDEX_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_CENSOR_WEBLOGS}<br /><span class="gensmall">{L_CENSOR_WEBLOGS_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="censor_weblog" value="1" {S_CENSOR_WEBLOGS_YES} /> {L_YES} <input type="radio" name="censor_weblog" value="0" {S_CENSOR_WEBLOGS_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_REQUIRE_AUTH}<br /><span class="gensmall">{L_REQUIRE_AUTH_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="require_auth" value="1" {S_REQUIRE_AUTH_YES} /> {L_YES} <input type="radio" name="require_auth" value="0" {S_REQUIRE_AUTH_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_INDEX_LIST_BY_USERNAME}</td> <td class="row2"><input type="radio" name="index_list_by_username" value="1" {S_INDEX_LIST_BY_USERNAME_YES} /> {L_BY_OWNER_NAME} <input type="radio" name="index_list_by_username" value="0" {S_INDEX_LIST_BY_USERNAME_NO} /> {L_BY_WEBLOG_NAME}</td> </tr> <tr> <td class="row1">{L_USE_DEFAULT_FACEPLATES}<br /><span class="gensmall">{L_USE_DEFAULT_FACEPLATES_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="use_default_faceplates" value="1" {S_USE_DEFAULT_FACEPLATES_YES} /> {L_YES} <input type="radio" name="use_default_faceplates" value="0" {S_USE_DEFAULT_FACEPLATES_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_SHOUTBOX_FLOOD_DELAY}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="shoutbox_flood_delay" value="{SHOUTBOX_FLOOD_DELAY}" /></td> </tr> <tr> <th class="thHead" colspan="2">{L_PICTURE_UPLOADING}</th> </tr> <tr> <td class="row1">{L_PICTURE_UPLOAD_ENABLED}</td> <td class="row2"><input type="radio" name="pic_upload_enabled" value="1" {S_PIC_UPLOAD_ENABLED_YES} /> {L_YES} <input type="radio" name="pic_upload_enabled" value="0" {S_PIC_UPLOAD_ENABLED_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_MAXIMUM_PIC_SIZE}</td> <td class="row2"><input class="post" type="text" maxlength="8" size="8" name="max_pic_size" value="{MAX_PIC_SIZE}" /></td> </tr> <tr> <td class="row1">{L_MAX_PIC_WIDTH}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="max_pic_width" value="{MAX_PIC_WIDTH}" /></td> </tr> <tr> <td class="row1">{L_MAX_PIC_HEIGHT}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="max_pic_height" value="{MAX_PIC_HEIGHT}" /></td> </tr> <tr> <th class="thHead" colspan="2">{L_DEFAULT_SETTINGS}</th> </tr> <tr> <td class="row1">{L_DEFAULT_WEBLOG_NAME}<br /><span class="gensmall">{L_DEFAULT_WEBLOG_NAME_EXPLAIN}</span></td> <td class="row2"><input class="post" type="text" maxlength="60" size="40" name="default_name" value="{DEFAULT_WEBLOG_NAME}" /></td> </tr> <tr> <td class="row1">{L_DEFAULT_WEBLOG_DESC}<br /><span class="gensmall">{L_DEFAULT_WEBLOG_NAME_EXPLAIN}</span></td> <td class="row2"><input class="post" type="text" maxlength="255" size="40" name="default_desc" value="{DEFAULT_WEBLOG_DESC}" /></td> </tr> <tr> <td class="row1">{L_INDEX_BLOGS_PER_PAGE}</td> <td class="row2">{BLOGS_PER_PAGE_SELECT}</td> </tr> <tr> <td class="row1">{L_INDEX_SORT_TYPE}</td> <td class="row2">{INDEX_SORT_TYPE_SELECT}</td> </tr> <tr> <td class="row1">{L_INDEX_SORT_ORDER}</td> <td class="row2">{INDEX_SORT_ORDER_SELECT}</td> </tr> <tr> <td class="row1">{L_WEBLOG_AUTH_DEFAULT}</td> <td class="row2">{WEBLOG_AUTH_SELECT}</td> </tr> <tr> <td class="row1">{L_WEBLOG_REPLY_AUTH_DEFAULT}</td> <td class="row2">{WEBLOG_REPLY_AUTH_SELECT}</td> </tr> <tr> <td class="row1">{L_ENTRIES_PER_PAGE}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="default_entries_perpage" value="{ENTRIES_PER_PAGE}" /></td> </tr> <tr> <td class="row1">{L_POST_REPLY_TEXT}</td> <td class="row2"><input class="post" type="text" maxlength="60" size="40" name="default_post_reply_text" value="{POST_REPLY_TEXT}" /></td> </tr> <tr> <td class="row1">{L_REPLIES_TEXT}</td> <td class="row2"><input class="post" type="text" maxlength="60" size="40" name="default_replies_text" value="{REPLIES_TEXT}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </td> </tr> </table></form> <br clear="all" /> --- NEW FILE: weblog_config_body.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_CONFIG_ACTION}" method="post"><table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_GENERAL_SETTINGS}</th> </tr> <tr> <td class="row1" width="50%">{L_ENABLE_BLOG_MOD}</td> <td class="row2" width="50%"><input type="radio" name="enable_mod" value="1" {S_ENABLE_BLOG_MOD_YES} /> {L_YES} <input type="radio" name="enable_mod" value="0" {S_ENABLE_BLOG_MOD_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_CONDENSE_INDEX}<br /><span class="gensmall">{L_CONDENSE_INDEX_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="condense_index" value="1" {S_CONDENSE_INDEX_YES} /> {L_YES} <input type="radio" name="condense_index" value="0" {S_CONDENSE_INDEX_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_CENSOR_WEBLOGS}<br /><span class="gensmall">{L_CENSOR_WEBLOGS_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="censor_weblog" value="1" {S_CENSOR_WEBLOGS_YES} /> {L_YES} <input type="radio" name="censor_weblog" value="0" {S_CENSOR_WEBLOGS_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_REQUIRE_AUTH}<br /><span class="gensmall">{L_REQUIRE_AUTH_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="require_auth" value="1" {S_REQUIRE_AUTH_YES} /> {L_YES} <input type="radio" name="require_auth" value="0" {S_REQUIRE_AUTH_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_INDEX_LIST_BY_USERNAME}</td> <td class="row2"><input type="radio" name="index_list_by_username" value="1" {S_INDEX_LIST_BY_USERNAME_YES} /> {L_BY_OWNER_NAME} <input type="radio" name="index_list_by_username" value="0" {S_INDEX_LIST_BY_USERNAME_NO} /> {L_BY_WEBLOG_NAME}</td> </tr> <tr> <td class="row1">{L_USE_DEFAULT_FACEPLATES}<br /><span class="gensmall">{L_USE_DEFAULT_FACEPLATES_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="use_default_faceplates" value="1" {S_USE_DEFAULT_FACEPLATES_YES} /> {L_YES} <input type="radio" name="use_default_faceplates" value="0" {S_USE_DEFAULT_FACEPLATES_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_SHOUTBOX_FLOOD_DELAY}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="shoutbox_flood_delay" value="{SHOUTBOX_FLOOD_DELAY}" /></td> </tr> <tr> <th class="thHead" colspan="2">{L_PICTURE_UPLOADING}</th> </tr> <tr> <td class="row1">{L_PICTURE_UPLOAD_ENABLED}</td> <td class="row2"><input type="radio" name="pic_upload_enabled" value="1" {S_PIC_UPLOAD_ENABLED_YES} /> {L_YES} <input type="radio" name="pic_upload_enabled" value="0" {S_PIC_UPLOAD_ENABLED_NO} /> {L_NO}</td> </tr> <tr> <td class="row1">{L_MAXIMUM_PIC_SIZE}</td> <td class="row2"><input class="post" type="text" maxlength="8" size="8" name="max_pic_size" value="{MAX_PIC_SIZE}" /></td> </tr> <tr> <td class="row1">{L_MAX_PIC_WIDTH}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="max_pic_width" value="{MAX_PIC_WIDTH}" /></td> </tr> <tr> <td class="row1">{L_MAX_PIC_HEIGHT}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="max_pic_height" value="{MAX_PIC_HEIGHT}" /></td> </tr> <tr> <th class="thHead" colspan="2">{L_DEFAULT_SETTINGS}</th> </tr> <tr> <td class="row1">{L_DEFAULT_WEBLOG_NAME}<br /><span class="gensmall">{L_DEFAULT_WEBLOG_NAME_EXPLAIN}</span></td> <td class="row2"><input class="post" type="text" maxlength="60" size="40" name="default_name" value="{DEFAULT_WEBLOG_NAME}" /></td> </tr> <tr> <td class="row1">{L_DEFAULT_WEBLOG_DESC}<br /><span class="gensmall">{L_DEFAULT_WEBLOG_NAME_EXPLAIN}</span></td> <td class="row2"><input class="post" type="text" maxlength="255" size="40" name="default_desc" value="{DEFAULT_WEBLOG_DESC}" /></td> </tr> <tr> <td class="row1">{L_INDEX_BLOGS_PER_PAGE}</td> <td class="row2">{BLOGS_PER_PAGE_SELECT}</td> </tr> <tr> <td class="row1">{L_INDEX_SORT_TYPE}</td> <td class="row2">{INDEX_SORT_TYPE_SELECT}</td> </tr> <tr> <td class="row1">{L_INDEX_SORT_ORDER}</td> <td class="row2">{INDEX_SORT_ORDER_SELECT}</td> </tr> <tr> <td class="row1">{L_WEBLOG_AUTH_DEFAULT}</td> <td class="row2">{WEBLOG_AUTH_SELECT}</td> </tr> <tr> <td class="row1">{L_WEBLOG_REPLY_AUTH_DEFAULT}</td> <td class="row2">{WEBLOG_REPLY_AUTH_SELECT}</td> </tr> <tr> <td class="row1">{L_ENTRIES_PER_PAGE}</td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="default_entries_perpage" value="{ENTRIES_PER_PAGE}" /></td> </tr> <tr> <td class="row1">{L_POST_REPLY_TEXT}</td> <td class="row2"><input class="post" type="text" maxlength="60" size="40" name="default_post_reply_text" value="{POST_REPLY_TEXT}" /></td> </tr> <tr> <td class="row1">{L_REPLIES_TEXT}</td> <td class="row2"><input class="post" type="text" maxlength="60" size="40" name="default_replies_text" value="{REPLIES_TEXT}" /></td> </tr> <tr> <td class="row1">{L_WEBLOG_CONFIG_PAGE}</td> <td class="row2"><input class="post" type="text" maxlength="3" size="40" name="mx_weblog_config_page" value="{WEBLOG_CONFIG_PAGE}" /></td> </tr> <tr> <td class="row1">{L_WEBLOG_LISTS_PAGE}</td> <td class="row2"><input class="post" type="text" maxlength="3" size="40" name="mx_weblog_list" value="{WEBLOG_LIST_PAGE}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </td> </tr> </table></form> <br clear="all" /> --- NEW FILE: weblog_action_edit_body.tpl --- <h1>{L_CURRENTLY_TITLE}</h1> <p>{L_CURRENTLY_EXPLAIN}</p> <script language="javascript" type="text/javascript"> <!-- function update_currently(newimage) { document.currently_image.src = "./../images/weblogs/" + newimage; } //--> </script> <form method="post" action="{S_CURRENTLY_ACTION}"><table class="forumline" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th class="thHead" colspan="2">{L_CURRENTLY_CONFIG}</th> </tr> <tr> <td class="row1">{L_CURRENTLY_URL}</td> <td class="row1"><select name="currently_url" onchange="update_currently(this.options[selectedIndex].value);">{S_FILENAME_OPTIONS}</select> <img name="currently_image" src="{CURRENTLY_IMG}" border="0" alt="" /> </td> </tr> <tr> <td class="row2">{L_CURRENTLY_CURRENTLY}</td> <td class="row2"><input class="post" type="text" name="currently_currently" value="{CURRENTLY_CURRENTLY}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table></form> --- NEW FILE: weblog_users_body.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_CONFIG_ACTION}" method="post"><table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{USERNAME}</th> </tr> <tr> <td class="row1">{L_BAN_THIS_USER_WEBLOG}</td> <td class="row2"><input type="checkbox" name="ban_user" value="1"{S_BAN_USER_CHECKED}> {L_YES}</td> </tr> <tr> <td class="row1">{L_ALLOW_ADV_WEBLOG}<br /><span class="gensmall">{L_ALLOW_ADV_WEBLOG_EXPLAIN}</span></td> <td class="row2"><input type="radio" name="allow_adv_weblogs" value="1" {S_ALLOW_ADV_WEBLOGS_YES} /> {L_YES} <input type="radio" name="allow_adv_weblogs" value="0" {S_ALLOW_ADV_WEBLOGS_NO} /> {L_NO} </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /></td> </tr> </table></form> <br clear="all" /> --- NEW FILE: weblog_action_list_body.tpl --- <h1>{L_CURRENTLY_TITLE}</h1> <P>{L_CURRENTLY_TEXT}</p> <form method="post" action="{S_CURRENTLY_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thTop">{L_IMAGE}</th> <th class="thTop">{L_CURRENTLY}</th> <th colspan="2" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN currently --> <tr> <td class="{currently.ROW_CLASS}"><img src="{currently.CURRENTLY_IMG}" alt="{currently.CURRENTLY}" /></td> <td class="{currently.ROW_CLASS}">{currently.CURRENTLY}</td> <td class="{currently.ROW_CLASS}"><a href="{currently.U_CURRENTLY_EDIT}">{L_EDIT}</a></td> <td class="{currently.ROW_CLASS}"><a href="{currently.U_CURRENTLY_DELETE}">{L_DELETE}</a></td> </tr> <!-- END currently --> <tr> <td class="catBottom" colspan="5" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="add" value="{L_CURRENTLY_ADD}" class="mainoption" /></td> </tr> </table></form> --- NEW FILE: user_select_body.tpl --- <h1>{L_USER_TITLE}</h1> <p>{L_USER_EXPLAIN}</p> <form method="post" name="post" action="{S_USER_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thHead" align="center">{L_USER_SELECT}</th> </tr> <tr> <td class="row1" align="center"><input type="text" class="post" name="username" maxlength="50" size="20" /> <input type="hidden" name="mode" value="edit" />{S_HIDDEN_FIELDS}<input type="submit" name="submituser" value="{L_LOOK_UP}" class="mainoption" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td> </tr> </table></form> --- NEW FILE: weblog_mood_edit_body.tpl --- <h1>{L_MOOD_TITLE}</h1> <p>{L_MOOD_EXPLAIN}</p> <script language="javascript" type="text/javascript"> <!-- function update_mood(newimage) { document.mood_image.src = "./../images/weblogs/" + newimage; } //--> </script> <form method="post" action="{S_MOOD_ACTION}"><table class="forumline" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th class="thHead" colspan="2">{L_MOOD_CONFIG}</th> </tr> <tr> <td class="row1">{L_MOOD_URL}</td> <td class="row1"><select name="mood_url" onchange="update_mood(this.options[selectedIndex].value);">{S_FILENAME_OPTIONS}</select> <img name="mood_image" src="{MOOD_IMG}" border="0" alt="" /> </td> </tr> <tr> <td class="row2">{L_MOOD_MOOD}</td> <td class="row2"><input class="post" type="text" name="mood_mood" value="{MOOD_MOOD}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table></form> --- NEW FILE: weblog_mood_set_edit_body.tpl --- <h1>{L_MOOD_TITLE}</h1> <p>{L_MOOD_EXPLAIN}</p> <form method="post" action="{S_MOOD_SET_ACTION}"><table class="forumline" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th class="thHead" colspan="2">{L_MOOD_CONFIG}</th> </tr> <tr> <td class="row2">{L_MOOD_SET}</td> <td class="row2"><input class="post" type="text" name="set_name" value="{MOOD_SET}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table></form> --- NEW FILE: weblog_mood_list_body.tpl --- <h1>{L_MOOD_TITLE}</h1> <P>{L_MOOD_TEXT}</p> <form method="post" action="{S_MOOD_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thTop">{L_IMAGE}</th> <th class="thTop">{L_MOOD}</th> <th colspan="3" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN mood_set --> <tr> <td class="catLeft"></td> <td class="cat"><b>{mood_set.SET_NAME}</b></td> <td class="cat"><b><a href="{mood_set.U_SET_ADD}">{L_ADD_MOOD}</a></b></td> <td class="cat"><b><a href="{mood_set.U_SET_EDIT}">{L_EDIT}</a></b></td> <td class="catRight"><b><a href="{mood_set.U_SET_DELETE}">{L_DELETE}</a></b></td> </tr> <!-- BEGIN mood --> <tr> <td class="{mood_set.mood.ROW_CLASS}"><img src="{mood_set.mood.MOOD_IMG}" alt="{mood_set.mood.MOOD}" /></td> <td class="{mood_set.mood.ROW_CLASS}">{mood_set.mood.MOOD}</td> <td class="{mood_set.mood.ROW_CLASS}"></td> <td class="{mood_set.mood.ROW_CLASS}"><a href="{mood_set.mood.U_MOOD_EDIT}">{L_EDIT}</a></td> <td class="{mood_set.mood.ROW_CLASS}"><a href="{mood_set.mood.U_MOOD_DELETE}">{L_DELETE}</a></td> </tr> <!-- END mood --> <!-- END mood_set --> <tr> <td class="catBottom" colspan="5" align="center"><input type="submit" name="addset" value="{L_MOOD_SET_ADD}" class="mainoption" /></td> </tr> </table></form> --- NEW FILE: weblog_purge_body.tpl --- <h1>Purge Deleted Weblogs/Entries</h1> <p>Here you can view the names and owners of all the weblogs and entries that have been deleted. You may restore them or you may deleted them.</p> <p>Please note that in order for users to start creating an entirely new Weblog, their previous weblog must be fully deleted here.</p> <form action="{S_PURGE_ACTION}" method="post"> <table class="forumline" align="center"> <tr> <td> <input type="hidden" name="purge" value="purge" /><input type="submit" name="purge_weblogs" value="Purge All Deleted Weblogs" class="mainoption" /><input type="submit" name="purge_entries" value="Purge All Deleted Entries" class="mainoption" /> </td> </tr> </table> </form> <form action="{S_PURGE_ACTION}" method="post"> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="5">Deleted Weblogs</th> </tr> <tr> <td class="catLeft"><strong>Weblog</strong></td> <td class="cat"><strong>Weblog Description</strong></td> <td class="cat"><strong>Owner</strong></td> <td class="cat"><strong>Start Date</strong></td> <td class="catRight" width="50"><strong>Delete/Restore?</strong></td> </tr> <!-- BEGIN weblogrow --> <tr> <td class="{weblogrow.ROW_CLASS}">{weblogrow.WEBLOG}</td> <td class="{weblogrow.ROW_CLASS}">{weblogrow.WEBLOG_DESC}</td> <td class="{weblogrow.ROW_CLASS}"><a href="{weblogrow.U_PROFILE}" target="_blank">{weblogrow.OWNER}</a></td> <td class="{weblogrow.ROW_CLASS}" width="200">{weblogrow.STARTED_DATE}</td> <td class="{weblogrow.ROW_CLASS}" width="50"><input type="checkbox" name="{weblogrow.INPUT_NAME}" /></td> </tr> <!-- END weblogrow --> <tr> <td class="catBottom" colspan="5" align="center"><input type="hidden" name="purge" value="purge" />{S_HIDDEN_FIELDS}<input type="submit" name="weblogs_restore" value="Restore" class="mainoption" /> <input type="submit" name="weblogs_purge" value="Purge" class="liteoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /></td> </tr> </table> </form> <form action="{S_PURGE_ACTION}" method="post"> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="4">Deleted Entries</th> </tr> <tr> <td class="catLeft"><strong>Entry</strong></td> <td class="cat"><strong>Weblog</strong></td> <td class="cat"><strong>Owner</strong></td> <td class="catRight" width="50"><strong>Delete/Restore?</strong></td> </tr> <!-- BEGIN entryrow --> <tr> <td class="{entryrow.ROW_CLASS}">{entryrow.ENTRY}</td> <td class="{entryrow.ROW_CLASS}"><a href="{entryrow.U_WEBLOG}" target="_blank">{entryrow.WEBLOG}</a></td> <td class="{entryrow.ROW_CLASS}"><a href="{entryrow.U_PROFILE}" target="_blank">{entryrow.OWNER}</a></td> <td class="{entryrow.ROW_CLASS}" width="50"><input type="checkbox" name="{entryrow.INPUT_NAME}" /></td> </tr> <!-- END entryrow --> <tr> <td class="catBottom" colspan="4" align="center"><input type="hidden" name="purge" value="purge" />{S_HIDDEN_FIELDS}<input type="submit" name="entries_restore" value="Restore" class="mainoption" /> <input type="submit" name="entries_purge" value="Purge" class="liteoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: weblog_tools_manage_body.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_SELECT_ACTION}" method="post"> <table cellspacing="0" cellpadding="3" border="0" class="forumline" align="center"> <tr> <th class="thHead">{L_CONFIGURATION_TITLE}</th> </tr> <tr> <td align="center" class="row1"> <h2>{L_PICK_A_TOOL}</h2> <p> <input type="submit" name="user_admin" value="{L_WEBLOG_USER_ADMIN}" class="mainoption" /><br /> {L_WEBLOG_USER_ADMIN_EXPLAIN} </p> <p> <input type="submit" name="tools" value="{L_WEBLOG_PURGING}" class="mainoption" /><br /> {L_WEBLOG_PURGING_EXPLAIN} </p> </td></tr></table> </form> <br clear="all" /> --- NEW FILE: weblog_template_list_body.tpl --- <h1>{L_TEMPLATE_TITLE}</h1> <P>{L_TEMPLATE_TEXT}</p> <form method="post" action="{S_TEMPLATE_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thCornerL">{L_TEMPLATE_NAME}</th> <th class="thTop">{L_PREVIEW_IMAGE}</th> <th class="thTop">{L_PRIVATE}</th> <th colspan="2" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN template_row --> <tr> <td class="{template_row.ROW_CLASS}" align="center">{template_row.TEMPLATE}</td> <td class="{template_row.ROW_CLASS}" align="center">{template_row.TEMPLATE_IMAGE}</td> <td class="{template_row.ROW_CLASS}" align="center">{template_row.TEMPLATE_PRIVATE}</td> <td class="{template_row.ROW_CLASS}" align="center"><a href="{template_row.U_TEMPLATE_EDIT}">{L_EDIT}</a></td> <td class="{template_row.ROW_CLASS}" align="center"><a href="{template_row.U_TEMPLATE_DELETE}">{L_DELETE}</a></td> </tr> <!-- END template_row --> <tr> <td class="catBottom" colspan="7" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="add" value="{L_TEMPLATE_ADD}" class="mainoption" /></td> </tr> </table></form> |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:38
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/weblogs/templates Added Files: index.htm weblog_1.htm Log Message: mx_blogs, Initial checkin --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: weblog_1.htm --- |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:38
|
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/templates/subSilver/images/lang_english Added Files: icon_weblog.gif Log Message: mx_blogs, Initial checkin --- NEW FILE: icon_weblog.gif --- (This appears to be a binary file; contents omitted.) |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:37
|
Update of /cvsroot/mxbb/mx_blogs/Installation In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/Installation Added Files: Installation.txt mx_profilecp_weblogintegration.txt userprofileblogintegrationmod.txt viewforumintegrationmod.txt Log Message: mx_blogs, Initial checkin --- NEW FILE: viewforumintegrationmod.txt --- ############################################################## ## MOD Title: MX Blogs Module ## Original MOD Author: hyperion < vi...@ho... > Vincent Ng http://vince.dynalias.com/blog/ ## Develped for MX cryptoknight (cr...@cr...) ## MOD Description: This mod integrates the mx_blogs module into the viewtopic function to give a weblog link from the forums ## Note: This mod is optional...the module works without it!!! ## Note2: All files to edit are phpbb files: viewtopic_body.tpl and viewtopic.php ## Note3: You need to adapt the $mx_root_path to your own system ## MOD Description: Adds an entire weblog system to a phpbb forum. Allows the members of the forum to create ## a weblog, complete with entry permissions, style customization, weblog templates, a friends system ## and the ability for weblog owners to block users from their weblog. ## MOD Version: 0.1.0 # #-----[ OPEN ]------------------------------------------ # templates/subSilver/viewtopic_body.tpl # #-----[ FIND ]------------------------------------------ # (Partial Line) <td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} # #-----[ IN-LINE FIND ]------------------------------------------ # {postrow.EMAIL_IMG} # #-----[ AFTER, ADD ]------------------------------------------ # {postrow.WEBLOG_IMG} # #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # $phpbb_root_path = './'; # #----[ AFTER, ADD ]------------------------------------- # //Change this to the relative path from phpbb to mx $mx_root_path = '../'; # #----[ FIND ]------------------------------------------- # // // Start session management // $userdata = session_pagestart($user_ip, $forum_id); init_userprefs($userdata); # #----[ AFTER, ADD ]------------------------------------- # // Weblog Viewtopic Mod include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); // # #-----[ FIND ]------------------------------------------ # Some mods replace "u.username, u.user_id, u.user_posts, u.user_from," with u.*. // // Go ahead and pull all data for this topic // $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, # #-----[ IN-LINE FIND ]------------------------------------------ # u.user_posts, u.user_from, # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # u.user_weblog, # #-----[ FIND ]------------------------------------------ # $yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : ''; $yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : ''; # #-----[ AFTER, ADD ]------------------------------------------ # $weblog_img = $weblog_img = ( $postrow[$i]['user_weblog'] ) ? '<a href="' . append_sid($mx_root_path . 'index.$phpEx?page=' . $weblog_config['mx_weblog_page'] . '&' . POST_WEBLOG_URL . '=' . $postrow[$i]['user_weblog']) . '"><img src="' . $mx_root_path .'modules/mx_blogs/templates/subSilver/images/lang_' . $use_lang . '/icon_weblog.gif" alt="Weblog" title="' . $lang['View_weblog'] . '" border="0" /></a>' : ''; $weblog = ( $postrow[$i]['user_weblog'] ) ? '<a href="' . append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=".$postrow[$i]['user_weblog']) . '">' . $lang['Weblog'] . '</a>' : ''; # #-----[ FIND ]------------------------------------------ # $yim_img = ''; $yim = ''; # #-----[ AFTER, ADD ]------------------------------------------ # $weblog_img = ''; $weblog = ''; # #-----[ FIND ]------------------------------------------ # 'YIM_IMG' => $yim_img, 'YIM' => $yim, # #-----[ AFTER, ADD ]------------------------------------------ # 'WEBLOG_IMG' => $weblog_img, 'WEBLOG' => $weblog, # #-----[ SAVE, CLOSE ALL FILES ]-------------------------------- #EOM --- NEW FILE: Installation.txt --- MX_BLOGS Original Mod written by Hyperion Ported to MX by cryptoknight. Version 0.1.0 1. Upload the mx_blogs directory to your mx modules directory 2. Install the module as you would any other. 3. Put the Weblog config and Weblog list blocks on two seperate mx pages. Make a note of the page numbers each block is on. 4. On the Config page, enter the page numbers for the pages you put the config and list blocks on. 5. Install at least one of the provided templates Optional: Follow the instructions in the other three text files for each of the available mods to put links to a user's blog in their profile, or in their forum posts. mx_profilecp_weblogintegration.txt -- Installs into the mx profilecp a weblog icon/link userprofileblogintegrationmod.txt -- For non profilecp users, puts the icon/link in the standard phpbb profile viewforumintegrationmod.txt -- Puts a weblog icon and link in the row with the other icons in the viewtopic file (ICQ, Yahoo, etc) --- NEW FILE: mx_profilecp_weblogintegration.txt --- ############################################################## ## MOD Title: MX Blogs Module ## Original MOD Author: hyperion < vi...@ho... > Vincent Ng http://vince.dynalias.com/blog/ ## Develped for MX cryptoknight (cr...@cr...) ## MOD Description: This mod integrates the mx_blogs module into the a user's profile control panel profile ## Note: This mod is optional...the module works without it!!! ## Note1: This is for the mx version of profile control panel ## Note2: All files to edit are mx_profilecp files: def_userfuncs_custom.php, def_usermaps.php ## Note3: You need to adapt the $mx_root_path to your own system ## MOD Description: Adds an entire weblog system to a phpbb forum. Allows the members of the forum to create ## a weblog, complete with entry permissions, style customization, weblog templates, a friends system ## and the ability for weblog owners to block users from their weblog. ## MOD Version: 0.1.0 # #-------[ OPEN ]--------------------- # profilcp/def/def_userfuncs_custom.php # #-------[ FIND ]--------------------- # ?> # #-------[ BEFORE ADD ]--------------- # //----------------------------------- // // user_weblog output function // //----------------------------------- function pcp_output_weblog($field_name, $view_userdata, $map_name='') { global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata, $db; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; global $mx_root_path; $img = ''; $res = ''; if(($view_userdata['user_weblog'] > 0) && ($view_userdata['user_id'] != ANONYMOUS)) { $temp_url = append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $view_userdata['user_weblog']); $img = '<a href="' . $temp_url . '"><img src="' . $mx_root_path . 'modules/mx_blogs/templates/subSilver/images/lang_english/icon_weblog.gif' . '" alt="' . $lang['Weblog'] . '" title="' . $lang['Weblog'] . '" border="0" /></a>'; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); } return $res; } # #--------[ OPEN ]-------------------------- # profilcp/def/def_usermaps.php # #--------[ FIND ]-------------------------- # ), ), 'PCP.viewprofile.base.real' => array( # #--------[ BEFORE, ADD ]-------------------- # 'user_weblog' => array( 'lang_key' => 'Weblog', 'leg' => true, 'dsp_func' => 'pcp_output_weblog', 'img' => true, ), # #--------[ FIND ]-------------------------- # ), ), 'PCP.viewprofile.base.real' => array( # #--------[ BEFORE, ADD ]-------------------- # 'user_weblog' => array( 'lang_key' => 'Weblog', 'leg' => true, 'dsp_func' => 'pcp_output_weblog', 'img' => true, ), # #-------[ FIND ]---------------------------- # 'user_pm' => array( 'img' => true, 'style' => '<td valign="absbottom" nowrap="nowrap"><span class="gensmall">%s </span></td>', ), # #--------[ AFTER, ADD ]---------------------- # 'user_weblog' => array( 'dsp_func' => 'pcp_output_weblog', 'img' => true, 'style' => '<td valign="absbottom" nowrap="nowrap"><span class="gensmall">%s </span></td>', ), # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM --- NEW FILE: userprofileblogintegrationmod.txt --- ############################################################## ## MOD Title: MX Blogs Module ## Original MOD Author: hyperion < vi...@ho... > Vincent Ng http://vince.dynalias.com/blog/ ## Develped for MX cryptoknight (cr...@cr...) ## MOD Description: This mod integrates the mx_blogs module into the a user's profile ## Note: This mod is optional...the module works without it!!! ## Note2: All files to edit are phpbb files: viewtopic_body.tpl and viewtopic.php ## Note3: You need to adapt the $mx_root_path to your own system ## MOD Description: Adds an entire weblog system to a phpbb forum. Allows the members of the forum to create ## a weblog, complete with entry permissions, style customization, weblog templates, a friends system ## and the ability for weblog owners to block users from their weblog. ## MOD Version: 0.1.0 # #-----[ OPEN ]------------------------------------------ # If you have the Profile Control Panel (PCP) mod, you won't be able to complete this portion of the instructions # Move on to the next file if you have the PCP mod installed. includes/usercp_viewprofile.php # #-----[ FIND ]------------------------------------------ # if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); exit; } # #-----[ AFTER, ADD ]------------------------------------ # // Change this to reflect the relative path from your phpbb system to your mx system. $mx_root_path = '../'; include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); # #-----[ FIND ]------------------------------------------ # $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts"); $search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>'; $search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>'; # #-----[ AFTER, ADD ]------------------------------------------ # if ( $profiledata['user_weblog'] ) { $sql = "SELECT weblog_name FROM " . WEBLOGS_TABLE . " WHERE weblog_id = " . $profiledata['user_weblog']; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); } if( $row = $db->sql_fetchrow($result) ) { $weblog = '<a href="' . append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $profiledata['user_weblog']) . '">' . $row['weblog_name'] . '</a>'; } } # #-----[ FIND ]------------------------------------------ # 'YIM_IMG' => $yim_img, 'YIM' => $yim, # #-----[ AFTER, ADD ]------------------------------------------ # 'WEBLOG' => $weblog, 'L_WEBLOG' => $lang['Weblog'], # #-----[ OPEN ]------------------------------------------ # templates/subSilver/profile_view_body.tpl # #-----[ FIND ]------------------------------------------ # <tr> <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td> <td> <b><span class="gen">{INTERESTS}</span></b></td> </tr> # #-----[ AFTER, ADD ]------------------------------------------ # <tr> <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_WEBLOG}:</span></td> <td> <b><span class="gen">{WEBLOG}</span></b></td> </tr> # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM |
Update of /cvsroot/mxbb/mx_blogs/images/weblogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/images/weblogs Added Files: action_custom.gif action_eat.gif action_listen.gif action_none.gif action_play.gif action_read.gif action_watch.gif action_work.gif mood_amused.gif mood_angelic.gif mood_angry.gif mood_confused.gif mood_cool.gif mood_distorted.gif mood_embarrased.gif mood_evil.gif mood_fedup.gif mood_happy.gif mood_hypnotized.gif mood_love.gif mood_neutral.gif mood_none.gif mood_scared.gif mood_shocked.gif mood_sick.gif mood_silly.gif mood_sleepy.gif mood_verysad.gif Log Message: mx_blogs, Initial checkin --- NEW FILE: mood_angry.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_amused.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_love.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_cool.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_distorted.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_custom.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_confused.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_play.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_evil.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_sleepy.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_verysad.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_eat.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_read.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_work.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_angelic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_happy.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_silly.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_none.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_neutral.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_listen.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_shocked.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: action_watch.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_scared.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_fedup.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_sick.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_none.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_embarrased.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mood_hypnotized.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs Added Files: Weblogs.pak db_install.php db_uninstall.php ljDigitalMultiplex.zip orangeBlue.zip the_blog_mod_v020.txt trackback.php weblog.php weblog_allentries.php weblog_blocked.php weblog_config.php weblog_contributors.php weblog_entry.php weblog_friends.php weblog_posting.php weblog_rss.php weblogs.php Log Message: mx_blogs, Initial checkin --- NEW FILE: weblog_friends.php --- <?php /*************************************************************************** * weblog_friends.php * ------------------------ * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblog_friends.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PHPBB', true); define('IN_PORTAL', true); //$phpbb_root_path = './'; $mx_root_path = '../../'; $module_root_path = './'; //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); // // Start initial var setup // if( isset($HTTP_GET_VARS[POST_USERS_URL]) || isset($HTTP_POST_VARS[POST_USERS_URL]) ) { $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? intval($HTTP_GET_VARS[POST_USERS_URL]) : intval($HTTP_POST_VARS[POST_USERS_URL]); } else { $user_id = ''; } $user_exists = FALSE; // // Check if the user has actually sent a weblog ID with his/her request // If not give them a nice error page. // if( !empty($user_id) ) { $sql = "SELECT u.*, w.* FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u WHERE u.user_id = $user_id AND w.weblog_id = u.user_weblog"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); } } else { mx_message_die(GENERAL_MESSAGE, $lang['User_no_weblog']); } $weblog_data = array(); // // If the query doesn't return any rows this isn't a valid weblog. Inform // the user. // if( !($weblog_data = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_MESSAGE, $lang['User_no_weblog']); } if ( $weblog_data['deleted'] ) { mx_message_die(GENERAL_ERROR, sprintf($lang['Weblog_deactivated'], $weblog_data['weblog_name'])); } // Get the user's clearence levels $auth_level = get_auth_level ( $weblog_data, $friends_data, $blocked_data, $weblog_data['user_id'] ); // See if user can see this weblog if ( $weblog_data['weblog_auth'] > $auth_level ) { mx_message_die(GENERAL_ERROR, $lang['Weblog_noaccess']); } // // Check to see if the owner added a friend // if ( $weblog_data['weblog_id'] == $userdata['user_weblog'] && isset($HTTP_POST_VARS['addfriend']) ) { $friend = htmlspecialchars($HTTP_POST_VARS['friend']); // Now, attempt to find a user with such a username $sql = "SELECT username, user_id FROM " . USERS_TABLE . " WHERE username = '$friend'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain username information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $friend_id = $row['user_id']; } else { mx_message_die(GENERAL_ERROR, $lang['User_not_exist'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } // See if that friend hasn't already been added $sql = "SELECT * FROM " . WEBLOG_FRIENDS_TABLE . " WHERE friend_id = $friend_id AND owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain friend information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { mx_message_die (GENERAL_ERROR, $lang['Friend_already_added'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } if ( $friend_id == $userdata['user_id'] ) { mx_message_die (GENERAL_ERROR, $lang['No_friend_owner'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } if ( $friend_id == ANONYMOUS ) { mx_message_die (GENERAL_ERROR, $lang['No_friend_guests'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } // Now insert new friend to friends table $sql = "INSERT INTO " . WEBLOG_FRIENDS_TABLE . " (owner_id, friend_id) VALUES ($user_id, $friend_id)"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain insert friend information.", "", __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, $lang['Friend_added'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($module_root_path . "weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } else if ( $weblog_data['weblog_id'] == $userdata['user_weblog'] && isset($HTTP_POST_VARS['removeuser']) ) { $friend = htmlspecialchars($HTTP_POST_VARS['friend']); // Now, attempt to find a user with such a username $sql = "SELECT username, user_id FROM " . USERS_TABLE . " WHERE username = '$friend'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain username information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $friend_id = $row['user_id']; } else { mx_message_die(GENERAL_ERROR, $lang['User_not_exist'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } if ( $userdata['user_id'] == $friend_id ) { mx_message_die(GENERAL_ERROR, $lang['User_no_remove_selffriend']); } // Now, attempt to find a user that is a friend of the owner $sql = "SELECT friend_id FROM " . WEBLOG_FRIENDS_TABLE . " WHERE owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain friend information.", "", __LINE__, __FILE__, $sql); } if (!( $row = $db->sql_fetchrow($result) )) { mx_message_die(GENERAL_ERROR, $lang['User_not_friend'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($mx_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } // Remove the friend :-( $sql = "DELETE FROM " . WEBLOG_FRIENDS_TABLE . " WHERE friend_id = $friend_id AND owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain friend information.", "", __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, $lang['Friend_removed'] . '<br /><br />' . sprintf($lang['Click_return_friends'], '<a href="' . append_sid($mx_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>') ); } $template_dir = get_template_dir ($weblog_data['template_id']); $page_title = $weblog_data['weblog_name'] . ' :: ' . sprintf($lang['Friends'], $weblog_data['username']); // // Start output of page // use_weblog_header ( $weblog_data, $template_dir); $template->set_filenames(array( 'body' => $module_root_path . '/weblogs/templates/' . $template_dir . '/weblog_friends_body.htm') ); // // Get the moods data // $sql = "SELECT * FROM " . WEBLOG_MOODS_TABLE . " ORDER BY mood_text"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain mood data from database", "", __LINE__, __FILE__, $sql); } $mood_data = $db->sql_fetchrowset($result); // // Get the actions data // $sql = "SELECT * FROM " . WEBLOG_ACTIONS_TABLE . " ORDER BY action_text"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain action data from database", "", __LINE__, __FILE__, $sql); } $action_data = $db->sql_fetchrowset($result); // // Get this user's friends data // $sql = "SELECT f.friend_id, u.*, w.* FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u, " . WEBLOGS_TABLE . " w WHERE f.owner_id = $user_id AND f.friend_id = u.user_id AND w.weblog_id = u.user_weblog"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain friends information.", "", __LINE__, __FILE__, $sql); } $friend_data = array(); while ( $row = $db->sql_fetchrow($result) ) { $friend_data[] = $row; } for ( $i = 0; $i < count($friend_data); $i++ ) { $auth_level2 = get_auth_level ( $friend_data[$i], $friends_data, $blocked_data, $friend_data[$i]['user_id'] ); $friend_entry_data = array(); if ( $friend_data[$i]['weblog_auth'] <= $auth_level2 ) { // Do a second query to find the latest entry, replies, etc. $sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " WHERE weblog_id = " . $friend_data[$i]['weblog_id'] . " AND entry_access <= $auth_level2 AND entry_deleted <> " . TRUE . " ORDER BY entry_time DESC LIMIT 1"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain friends entry information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $friend_entry_data = $row; } // // Ok now prepare the data and output it // // Prepare Avatar Image $avatar_img = ''; if ( $friend_data[$i]['user_avatar_type'] && $friend_data[$i]['user_allowavatar'] ) { switch( $friend_data[$i]['user_avatar_type'] ) { case USER_AVATAR_UPLOAD: $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $phpbb_root_path . $board_config['avatar_path'] . '/' . $friend_data[$i]['user_avatar'] . '" alt="" border="0" />' : ''; break; case USER_AVATAR_REMOTE: $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $friend_data[$i]['user_avatar'] . '" alt="" border="0" />' : ''; break; case USER_AVATAR_GALLERY: $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' .$phpbb_root_path . $board_config['avatar_gallery_path'] . '/' . $friend_data[$i]['user_avatar'] . '" alt="" border="0" />' : ''; break; } } // // Prepare the latest entry // $friend_entry_data['entry_text'] = htmlspecialchars($friend_entry_data['entry_text']); // BBCode if ( $friend_entry_data['enable_bbcode'] ) { $friend_entry_data['entry_text'] = bbencode_second_pass($friend_entry_data['entry_text'], $friend_entry_data['bbcode_uid']); } // Smilies if ( $friend_entry_data['enable_smilies'] ) { $friend_entry_data['entry_text'] = smilies_pass($friend_entry_data['entry_text']); } $friend_entry_data['entry_text'] = make_clickable($friend_entry_data['entry_text']); if ( !$weblog_config['censor_weblog'] ) { // Define censored word matches $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); // Censor text and title if (count($orig_word)) { $friend_entry_data['entry_subject'] = preg_replace($orig_word, $replacement_word, $friend_entry_data['entry_subject']); $friend_entry_data['entry_text'] = preg_replace($orig_word, $replacement_word, $friend_entry_data['entry_text']); } } $friend_entry_data['entry_text'] = nl2br($friend_entry_data['entry_text']); // Mood Icons $mood = array(); $mood = find_mood($friend_entry_data['entry_mood']); if ( $mood >= 0 ) { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } else { $mood = ''; } // Currently Icons $currently = array(); $currently = find_action($friend_entry_data['entry_currently']); if ( $currently > 0 ) { $action = '<strong>[</strong> ' . sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $entry_data[$i]['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $entry_data[$i]['currently_text']) . ' <strong>]</strong>'; } else if ( $entry_data[$i]['currently_text'] && $currently == -2 ) { $action = '<strong>[</strong>' . sprintf($lang['Currently:'], '', $entry_data[$i]['currently_text']) . ' <strong>]</strong>'; } else { $action = ''; } $time = create_date($board_config['default_dateformat'], $friend_entry_data['entry_time'], $board_config['board_timezone']); if ( $friend_data[$i]['font'] == '0' ) $font = 'Arial'; else if ( $friend_data[$i]['font'] == '1' ) $font = 'Comic Sans MS'; else if ( $friend_data[$i]['font'] == '2' ) $font = 'Courier New'; else if ( $friend_data[$i]['font'] == '3' ) $font = 'Georgia'; else if ( $friend_data[$i]['font'] == '4' ) $font = 'Verdana'; else if ( $friend_data[$i]['font'] == '5' ) $font = 'Times New Roman'; else if ( $friend_data[$i]['font'] == '6' ) $font = 'Trebuchet'; else $font = 'Verdana'; $template->assign_block_vars('friendsrow', array( 'ID' => 'friend' . $i, 'BACKGROUND_COLOR' => $friend_data[$i]['background_color'], 'ENTRY_BG_COLOR' => $friend_data[$i]['entry_bg_color'], 'BORDER_COLOR' => $friend_data[$i]['border_color'], 'BACKGROUND_IMAGE' => $friend_data[$i]['background_image'], 'BACKGROUND_IMAGE_FIXED' => ( $friend_data[$i]['background_image_fixed'] ) ? 'fixed' : 'scroll', 'BACKGROUND_REPEAT' => $friend_data[$i]['tile_bg'], 'BACKGROUND_POSITION' => $friend_data[$i]['bg_ypos'] . ' ' . $friend_data[$i]['bg_xpos'], 'SB_FACE_COLOR' => $friend_data[$i]['sb_face_color'], 'SB_HIGHLIGHT_COLOR' => $friend_data[$i]['sb_highlight_color'], 'SB_SHADOW_COLOR' => $friend_data[$i]['sb_shadow_color'], 'SB_3DLIGHT_COLOR' => $friend_data[$i]['sb_3dlight_color'], 'SB_ARROW_COLOR' => $friend_data[$i]['sb_arrow_color'], 'SB_TRACK_COLOR' => $friend_data[$i]['sb_track_color'], 'SB_DARKSHADOW_COLOR' => $friend_data[$i]['sb_darkshadow_color'], 'FONT' => $font, 'FONT_COLOR' => $friend_data[$i]['font_color'], 'FONT_SIZE' => $friend_data[$i]['font_size'], 'NORMAL_LINK_COLOR' => $friend_data[$i]['normal_link_color'], 'NORMAL_LINK_UNDERLINED' => ( $friend_data[$i]['normal_link_underline'] ) ? 'underline' : 'none', 'ACTIVE_LINK_COLOR' => $friend_data[$i]['active_link_color'], 'ACTIVE_LINK_UNDERLINED' => ( $friend_data[$i]['active_link_underline'] ) ? 'underline': 'none', 'HOVER_LINK_COLOR' => $friend_data[$i]['hover_link_color'], 'HOVER_LINK_UNDERLINED' => ( $friend_data[$i]['hover_link_underline'] ) ? 'underline': 'none', 'VISITED_LINK_COLOR' => $friend_data[$i]['visited_link_color'], 'VISITED_LINK_UNDERLINED' => ( $friend_data[$i]['visited_link_underline'] ) ? 'underline': 'none', 'WEBLOG_TITLE_COLOR' => $friend_data[$i]['weblog_title_color'], 'WEBLOG_TITLE_FONT_SIZE' => $friend_data[$i]['weblog_title_font_size'], 'ENTRY_TITLE_COLOR' => $friend_data[$i]['entry_title_color'], 'ENTRY_TITLE_FONT_SIZE' => $friend_data[$i]['entry_title_font_size'], 'DATE_TIME_COLOR' => $friend_data[$i]['date_time_color'], 'DATE_TIME_FONT_SIZE' => $friend_data[$i]['date_time_font_size'], 'BLOCK_TITLE_COLOR' => $friend_data[$i]['block_title_color'], 'BLOCK_TITLE_FONT_SIZE' => $friend_data[$i]['block_title_font_size'], 'BLOCK_BG_COLOR' => $friend_data[$i]['block_bg_color'], 'BLOCK_BORDER_COLOR' => $friend_data[$i]['block_border_color'], 'AVATAR_IMG' => $avatar_img, 'U_WEBLOG' => append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $friend_data[$i]['weblog_id']), 'WEBLOG_NAME' => $friend_data[$i]['weblog_name'], 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $friend_data[$i]['user_id']), 'FRIEND' => $friend_data[$i]['username'], 'SUBJECT' => $friend_entry_data['entry_subject'], 'ENTRY' => ( $friend_entry_data['entry_text'] ) ? $friend_entry_data['entry_text'] : '(' . $lang['No_entries'] . ')', 'TIME_DATE' => ( $friend_entry_data['entry_time'] ) ? $time : '', 'MOOD' => $mood, 'CURRENTLY' => $action, 'POST_COMMENT' => ( !$friend_entry_data['no_replies'] && $friend_entry_data['entry_text'] ) ? sprintf($friend_data[$i]['post_reply_text'], $friend_entry_data['entry_replies']) : '', 'REPLIES' => ( !$friend_entry_data['no_replies'] && $friend_entry_data['entry_text'] ) ? sprintf($friend_data[$i]['replies_text'], $friend_entry_data['entry_replies']) : '', 'U_VIEW_COMMENTS' => ( !$friend_entry_data['no_replies'] ) ? append_sid($mx_root_path . 'modules/mx_blogs/weblog_entry.' . $phpEx . '?' . POST_ENTRY_URL . '=' . $friend_entry_data['entry_id']) : '', 'U_POST_COMMENT' => ( !$friend_entry_data['no_replies'] ) ? append_sid($mx_root_path . 'modules/mx_blogs/weblog_posting.' . $phpEx . '?mode=reply&' . POST_ENTRY_URL . '=' . $friend_entry_data['entry_id']) : '') ); } } // // Query the users who have this user as a friend // $sql = "SELECT u.username, u.user_id FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u WHERE u.user_id = f.owner_id AND f.friend_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $template->assign_block_vars('friendofrow', array( 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']), 'FRIEND' => $row['username']) ); } // // Query the users who this user has added as a friend // $sql = "SELECT u.username, u.user_id FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u WHERE u.user_id = f.friend_id AND f.owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $template->assign_block_vars('friendrow', array( 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']), 'FRIEND' => $row['username']) ); } if ( $userdata['user_id'] == $user_id ) { $template->assign_block_vars('switch_owner', array()); } // // Generate page // $template->assign_vars(array( 'L_WEBLOG_FRIENDS' => sprintf($lang['Friends'], $weblog_data['username']), 'L_FRIENDS' => $lang['Friends_list'], 'L_FRIEND_OF' => $lang['Friend_of'], 'L_REMOVE_USER' => $lang['Remove_user'], 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'L_WEBLOGS' => $lang['Weblogs'], 'L_ADD_FRIEND' => $lang['Add_friend'], 'U_INDEX' => append_sid($mx_root_path . 'index.'.$phpEx), 'U_WEBLOGS' => append_sid($mx_root_path . "index.$phpEx?page=". $weblog_config['mx_weblog_list']), 'U_WEBLOG' => append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id']), 'S_ADDFRIENDS_ACTION' => append_sid($mx_root_path . "modules/mx_blogs/weblog_friends.$phpEx?" . POST_USERS_URL . "=$user_id"), 'WEBLOG_NAME' => $weblog_data['weblog_name']) ); // // Output the body // $template->pparse('body'); $template->assign_vars(array( 'L_POWERED_BY' => sprintf($lang['Weblog_powered_by'], WEBLOGS_MOD_VERSION)) ); // // Output the footer // use_weblog_footer ($weblog_data, $template_dir); ?> --- NEW FILE: weblog_posting.php --- <?php /*************************************************************************** * weblog_posting.php * ------------------------ * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblog_posting.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * [...1728 lines suppressed...] 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? 'checked="checked"' : '', 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? 'checked="checked"' : '', 'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? 'checked="checked"' : '', 'S_MEMORABLE_CHECKED' => ( $memorable ) ? 'checked="checked"' : '', 'S_DISABLE_REPLIES_CHECKED' => ( $disable_replies ) ? 'checked="checked"' : '', 'S_POST_ACTION' => append_sid($mx_root_path . "modules/mx_blogs/weblog_posting.$phpEx"), 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields) ); $template->pparse('body'); $template->assign_vars(array( 'L_POWERED_BY' => sprintf($lang['Weblog_powered_by'], WEBLOGS_MOD_VERSION)) ); use_weblog_footer ( $weblog_data, $template_dir ); ?> --- NEW FILE: weblog_contributors.php --- <?php /*************************************************************************** * weblog_contributors.php * ----------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblog_contributors.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PHPBB', true); define('IN_PORTAL',true); //$phpbb_root_path = './'; $mx_root_path = '../../'; $module_root_path = './'; //include($phpbb_root_path . 'extension.inc'); //include($phpbb_root_path . 'common.'.$phpEx); //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); // // Start initial var setup // if( isset($HTTP_GET_VARS[POST_WEBLOG_URL]) || isset($HTTP_POST_VARS[POST_WEBLOG_URL]) ) { $weblog_id = ( isset($HTTP_GET_VARS[POST_WEBLOG_URL]) ) ? intval($HTTP_GET_VARS[POST_WEBLOG_URL]) : intval($HTTP_POST_VARS[POST_WEBLOG_URL]); } else { $weblog_id = 0; } $user_exists = FALSE; // // Make sure that the weblog exists // if ( $weblog_id ) { $sql = "SELECT w.* FROM " . WEBLOGS_TABLE . " w WHERE w.weblog_id = $weblog_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); } if ( !($weblog_data = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_ERROR, 'Weblog_not_exist'); } } else { mx_message_die(GENERAL_MESSAGE, 'Weblog_not_exist'); } if ( $weblog_data['deleted'] ) { mx_message_die(GENERAL_ERROR, sprintf($lang['Weblog_deactivated'], $weblog_data['weblog_name'])); } // // Check to see if the owner added a user to the blocked list // if ( $userdata['user_weblog'] == $weblog_id && isset($HTTP_POST_VARS['addcontributor']) ) { $contributor_user = htmlspecialchars($HTTP_POST_VARS['contributoruser']); // Now, attempt to find a user with such a username $sql = "SELECT username, user_id FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $contributor_user) . "'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain username information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $user_id = $row['user_id']; } else { mx_message_die(GENERAL_ERROR, $lang['User_not_exist'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } // See if that contributor hasn't already been added $sql = "SELECT * FROM " . WEBLOG_CONTRIBUTORS_TABLE . " WHERE user_id = $user_id AND weblog_id = $weblog_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain contributor information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { mx_message_die (GENERAL_ERROR, $lang['Contributor_already_added'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } if ( $contributor_user == $userdata['username'] ) { mx_message_die (GENERAL_ERROR, $lang['No_contributor_owner'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } if ( $contributor_user == ANONYMOUS ) { mx_message_die (GENERAL_ERROR, $lang['No_guest_contributors'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } // Now insert new user to contributor table $sql = "INSERT INTO " . WEBLOG_CONTRIBUTORS_TABLE . " (user_id, weblog_id) VALUES ($user_id, $weblog_id)"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain insert contributor information.", "", __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, $lang['Contributor_added'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } else if ( $userdata['user_weblog'] == $weblog_id && isset($HTTP_POST_VARS['removecontributor']) ) { $contributor_user = htmlspecialchars($HTTP_POST_VARS['contributoruser']); // Now, attempt to find a user with such a username $sql = "SELECT username, user_id FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $contributor_user) . "'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain username information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $user_id = $row['user_id']; } else { mx_message_die(GENERAL_ERROR, $lang['User_not_exist'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } if ( $userdata['username'] == $contributor_user ) { mx_message_die(GENERAL_ERROR, $lang['User_no_remove_selfcontributor']); } // Now, attempt to find a user that is a friend of the owner $sql = "SELECT user_id FROM " . WEBLOG_CONTRIBUTORS_TABLE . " WHERE weblog_id = $weblog_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain contributor information.", "", __LINE__, __FILE__, $sql); } if (!( $row = $db->sql_fetchrow($result) )) { mx_message_die(GENERAL_ERROR, $lang['User_not_contributor'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>')); } // Remove the contributor $sql = "DELETE FROM " . WEBLOG_CONTRIBUTORS_TABLE . " WHERE user_id = $user_id AND weblog_id = $weblog_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete contributor information.", "", __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, $lang['Contributor_removed'] . '<br /><br />' . sprintf($lang['Click_return_contributors'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id") . '">', '</a>') ); } $template_dir = get_template_dir ($weblog_data['template_id']); $page_title = $weblog_data['weblog_name'] . ' :: ' . $lang['Contributors']; // // Start output of page // use_weblog_header ( $weblog_data, $template_dir ); $template->set_filenames(array( 'body' => $module_root_path . 'weblogs/templates/' . $template_dir . '/weblog_contributors_body.htm') ); if ( $weblog_data['font'] == '0' ) $font = 'Arial'; else if ( $weblog_data['font'] == '1' ) $font = 'Comic Sans MS'; else if ( $weblog_data['font'] == '2' ) $font = 'Courier New'; else if ( $weblog_data['font'] == '3' ) $font = 'Georgia'; else if ( $weblog_data['font'] == '4' ) $font = 'Verdana'; else if ( $weblog_data['font'] == '5' ) $font = 'Times New Roman'; else if ( $weblog_data['font'] == '6' ) $font = 'Trebuchet'; else $font = 'Verdana'; $template->assign_vars(array( 'BACKGROUND_COLOR' => $weblog_data['background_color'], 'ENTRY_BG_COLOR' => $weblog_data['entry_bg_color'], 'BORDER_COLOR' => $weblog_data['border_color'], 'BACKGROUND_IMAGE' => $weblog_data['background_image'], 'BACKGROUND_IMAGE_FIXED' => ( $weblog_data['background_image_fixed'] ) ? 'fixed' : 'scroll', 'BACKGROUND_REPEAT' => $weblog_data['tile_bg'], 'BACKGROUND_POSITION' => $weblog_data['bg_ypos'] . ' ' . $weblog_data['bg_xpos'], 'SB_FACE_COLOR' => $weblog_data['sb_face_color'], 'SB_HIGHLIGHT_COLOR' => $weblog_data['sb_highlight_color'], 'SB_SHADOW_COLOR' => $weblog_data['sb_shadow_color'], 'SB_3DLIGHT_COLOR' => $weblog_data['sb_3dlight_color'], 'SB_ARROW_COLOR' => $weblog_data['sb_arrow_color'], 'SB_TRACK_COLOR' => $weblog_data['sb_track_color'], 'SB_DARKSHADOW_COLOR' => $weblog_data['sb_darkshadow_color'], 'FONT' => $font, 'FONT_COLOR' => $weblog_data['font_color'], 'FONT_SIZE' => $weblog_data['font_size'], 'NORMAL_LINK_COLOR' => $weblog_data['normal_link_color'], 'NORMAL_LINK_UNDERLINED' => ( $weblog_data['normal_link_underline'] ) ? 'underline' : 'none', 'ACTIVE_LINK_COLOR' => $weblog_data['active_link_color'], 'ACTIVE_LINK_UNDERLINED' => ( $weblog_data['active_link_underline'] ) ? 'underline': 'none', 'HOVER_LINK_COLOR' => $weblog_data['hover_link_color'], 'HOVER_LINK_UNDERLINED' => ( $weblog_data['hover_link_underline'] ) ? 'underline': 'none', 'VISITED_LINK_COLOR' => $weblog_data['visited_link_color'], 'VISITED_LINK_UNDERLINED' => ( $weblog_data['visited_link_underline'] ) ? 'underline': 'none', 'WEBLOG_TITLE_COLOR' => $weblog_data['weblog_title_color'], 'WEBLOG_TITLE_FONT_SIZE' => $weblog_data['weblog_title_font_size'], 'ENTRY_TITLE_COLOR' => $weblog_data['entry_title_color'], 'ENTRY_TITLE_FONT_SIZE' => $weblog_data['entry_title_font_size'], 'DATE_TIME_COLOR' => $weblog_data['date_time_color'], 'DATE_TIME_FONT_SIZE' => $weblog_data['date_time_font_size'], 'BLOCK_TITLE_COLOR' => $weblog_data['block_title_color'], 'BLOCK_TITLE_FONT_SIZE' => $weblog_data['block_title_font_size'], 'BLOCK_BG_COLOR' => $weblog_data['block_bg_color'], 'BLOCK_BORDER_COLOR' => $weblog_data['block_border_color']) ); // // Parse the header // $template->pparse('header'); // // Find the users that are contributors // $sql = "SELECT u.username, u.user_id, c.user_id FROM " . WEBLOG_CONTRIBUTORS_TABLE . " c, " . USERS_TABLE . " u WHERE c.weblog_id = $weblog_id AND u.user_id = c.user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get contributors information.", "", __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $template->assign_block_vars('contribrow', array( 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']), 'CONTRIBUTOR' => $row['username']) ); } // // Generate page // $template->assign_vars(array( 'L_CONTRIBUTORS' => $lang['Contributors'], 'L_CURRENT_CONTRIBUTORS' => $lang['Current_contributors'], 'L_REMOVE_CONTRIBUTOR' => $lang['Remove_contributor'], 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'L_WEBLOGS' => $lang['Weblogs'], 'L_ADD_CONTRIBUTOR' => $lang['Add_contributor'], 'U_INDEX' => append_sid($mx_root_path . 'index.'.$phpEx), 'U_WEBLOGS' => append_sid($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list']), 'U_WEBLOG' => append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id']), 'S_CONTRIBUTOR_ACTION' => append_sid($mx_root_path . "modules/mx_blogs/weblog_contributors.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id"), 'WEBLOG_NAME' => $weblog_data['weblog_name']) ); // // Output the body // $template->pparse('body'); $template->assign_vars(array( 'L_POWERED_BY' => sprintf($lang['Weblog_powered_by'], WEBLOGS_MOD_VERSION)) ); // // Output the footer // use_weblog_footer ( $weblog_data, $template_dir); ?> --- NEW FILE: ljDigitalMultiplex.zip --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weblog_entry.php --- <?php /*************************************************************************** * weblog_entry.php * ---------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblog_entry.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * [...1020 lines suppressed...] 'WEBLOG_TITLE_COLOR' => $weblog_entry_data['weblog_title_color'], 'WEBLOG_TITLE_FONT_SIZE' => $weblog_entry_data['weblog_title_font_size'], 'ENTRY_TITLE_COLOR' => $weblog_entry_data['entry_title_color'], 'ENTRY_TITLE_FONT_SIZE' => $weblog_entry_data['entry_title_font_size'], 'DATE_TIME_COLOR' => $weblog_entry_data['date_time_color'], 'DATE_TIME_FONT_SIZE' => $weblog_entry_data['date_time_font_size'], 'BLOCK_TITLE_COLOR' => $weblog_entry_data['block_title_color'], 'BLOCK_TITLE_FONT_SIZE' => $weblog_entry_data['block_title_font_size'], 'BLOCK_BG_COLOR' => $weblog_entry_data['block_bg_color'], 'BLOCK_BORDER_COLOR' => $weblog_entry_data['block_border_color']) ); // // Parse the page and print // $template->pparse('body'); use_weblog_footer ( $weblog_entry_data, $template_dir ); ?> --- NEW FILE: weblog_config.php --- <?php /*************************************************************************** * weblog_config.php * ----------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblog_config.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * [...974 lines suppressed...] 'TEMPLATE_SELECT' => make_template_select ( $template_id , 'template_select', $weblog_exists ), 'MOOD_SET_SELECT' => make_mood_set_select ( $weblog_data['mood_set'], 'mood_set_select'), 'WEBLOG_AUTH_SELECT' => make_weblog_auth_select ( $weblog_data['weblog_auth'], 'weblog_auth_select'), 'REPLIES_AUTH_SELECT' => make_weblog_auth_select ( $weblog_data['replies_auth'], 'replies_auth_select'), 'S_WEBLOG_FACEPLATE' => htmlentities($weblog_faceplate), 'S_WEBLOG_BODY' => htmlentities($weblog_body), 'S_FORM_ACTION' => append_sid($HTTP_SERVER_VARS['PHP_SELF'])) ); $template->pparse("body"); $template->assign_vars(array( 'L_POWERED_BY' => sprintf($lang['Weblog_powered_by'], WEBLOGS_MOD_VERSION)) ); //include($phpbb_root_path . 'includes/page_tail.'.$phpEx); include($mx_root_path . 'includes/page_tail.'.$phpEx); ?> --- NEW FILE: weblog_blocked.php --- <?php /*************************************************************************** * weblog_blocked.php * ------------------------ * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblog_blocked.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PHPBB', true); define('IN_PORTAL', true); //$phpbb_root_path = './'; $mx_root_path = '../../'; $module_root_path = './'; //include($phpbb_root_path . 'extension.inc'); //include($phpbb_root_path . 'common.'.$phpEx); //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); // // Start session management // //$userdata = session_pagestart($user_ip, PAGE_INDEX); //init_userprefs($userdata); $mx_user->init($user_ip, PAGE_INDEX); // // End session management // include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); // // Start initial var setup // if( isset($HTTP_GET_VARS[POST_USERS_URL]) || isset($HTTP_POST_VARS[POST_USERS_URL]) ) { $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? intval($HTTP_GET_VARS[POST_USERS_URL]) : intval($HTTP_POST_VARS[POST_USERS_URL]); } else { $user_id = 0; } $user_exists = FALSE; // // Make sure that the user requested exists, has a weblog, and is not a guest // if ( $user_id != ANONYMOUS ) { $sql = "SELECT w.*, u.* FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u WHERE w.weblog_id = u.user_weblog AND u.user_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); } if ( $weblog_data = $db->sql_fetchrow($result) ) { $user_exists = TRUE; } else { mx_message_die(GENERAL_ERROR, $lang['User_no_weblog']); } } else { mx_message_die(GENERAL_MESSAGE, $lang['User_not_exist']); } // See if user can see this blocked list if ( $user_id != $userdata['user_id'] ) { mx_message_die(GENERAL_ERROR, $lang['Weblog_noaccess_blocked']); } if ( $weblog_data['deleted'] ) { mx_message_die(GENERAL_ERROR, sprintf($lang['Weblog_deactivated'], $weblog_data['weblog_name'])); } // // Check to see if the owner added a user to the blocked list // if ( $userdata['user_id'] == $user_id && isset($HTTP_POST_VARS['blockuser']) ) { $blocked_user = htmlspecialchars($HTTP_POST_VARS['blockeduser']); // Now, attempt to find a user with such a username $sql = "SELECT username, user_id FROM " . USERS_TABLE . " WHERE username = '$blocked_user'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain username information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $blocked_id = $row['user_id']; } else { mx_message_die(GENERAL_ERROR, $lang['User_not_exist'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } // See if that blocked user hasn't already been added $sql = "SELECT * FROM " . WEBLOG_BLOCKED_TABLE . " WHERE blocked_id = $blocked_id AND owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain blocked user information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { mx_message_die (GENERAL_ERROR, $lang['Blocked_already_added'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } if ( $blocked_id == $user_id ) { mx_message_die (GENERAL_ERROR, $lang['No_block_owner'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } if ( $blocked_id == ANONYMOUS ) { mx_message_die (GENERAL_ERROR, $lang['No_block_guests'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } // Now insert new user to blocked table $sql = "INSERT INTO " . WEBLOG_BLOCKED_TABLE . " (owner_id, blocked_id) VALUES ($user_id, $blocked_id)"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain insert blocked user information.", "", __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, $lang['Blocked_user_added'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } else if ( $userdata['user_id'] == $user_id && isset($HTTP_POST_VARS['removeuser']) ) { $blocked_user = htmlspecialchars($HTTP_POST_VARS['blockeduser']); // Now, attempt to find a user with such a username $sql = "SELECT username, user_id FROM " . USERS_TABLE . " WHERE username = '$blocked_user'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain username information.", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $blocked_id = $row['user_id']; } else { mx_message_die(GENERAL_ERROR, $lang['User_not_exist'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } if ( $user_id == $friend_id ) { mx_message_die(GENERAL_ERROR, $lang['User_no_remove_selfblocked']); } // Now, attempt to find a user that is a friend of the owner $sql = "SELECT blocked_id FROM " . WEBLOG_BLOCKED_TABLE . " WHERE owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain blocked user information.", "", __LINE__, __FILE__, $sql); } if (!( $row = $db->sql_fetchrow($result) )) { mx_message_die(GENERAL_ERROR, $lang['User_not_blocked'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>')); } // Remove the friend :-( $sql = "DELETE FROM " . WEBLOG_BLOCKED_TABLE . " WHERE blocked_id = $blocked_id AND owner_id = $user_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete blocked user information.", "", __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, $lang['Blocked_user_removed'] . '<br /><br />' . sprintf($lang['Click_return_blocked'], '<a href="' . append_sid($module_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id") . '">', '</a>') ); } $template_dir = get_template_dir ($weblog_data['template_id']); $page_title = $weblog_data['weblog_name'] . ' :: ' . $lang['Blocked_users']; // // Start output of page // use_weblog_header ( $weblog_data, $template_dir ); $template->set_filenames(array( 'body' => $module_root_path . 'weblogs/templates/' . $template_dir . '/weblog_blocked_body.htm') ); if ( $weblog_data['font'] == '0' ) $font = 'Arial'; else if ( $weblog_data['font'] == '1' ) $font = 'Comic Sans MS'; else if ( $weblog_data['font'] == '2' ) $font = 'Courier New'; else if ( $weblog_data['font'] == '3' ) $font = 'Georgia'; else if ( $weblog_data['font'] == '4' ) $font = 'Verdana'; else if ( $weblog_data['font'] == '5' ) $font = 'Times New Roman'; else if ( $weblog_data['font'] == '6' ) $font = 'Trebuchet'; else $font = 'Verdana'; $template->assign_vars(array( 'BACKGROUND_COLOR' => $weblog_data['background_color'], 'ENTRY_BG_COLOR' => $weblog_data['entry_bg_color'], 'BORDER_COLOR' => $weblog_data['border_color'], 'BACKGROUND_IMAGE' => $weblog_data['background_image'], 'BACKGROUND_IMAGE_FIXED' => ( $weblog_data['background_image_fixed'] ) ? 'fixed' : 'scroll', 'BACKGROUND_REPEAT' => $weblog_data['tile_bg'], 'BACKGROUND_POSITION' => $weblog_data['bg_ypos'] . ' ' . $weblog_data['bg_xpos'], 'SB_FACE_COLOR' => $weblog_data['sb_face_color'], 'SB_HIGHLIGHT_COLOR' => $weblog_data['sb_highlight_color'], 'SB_SHADOW_COLOR' => $weblog_data['sb_shadow_color'], 'SB_3DLIGHT_COLOR' => $weblog_data['sb_3dlight_color'], 'SB_ARROW_COLOR' => $weblog_data['sb_arrow_color'], 'SB_TRACK_COLOR' => $weblog_data['sb_track_color'], 'SB_DARKSHADOW_COLOR' => $weblog_data['sb_darkshadow_color'], 'FONT' => $font, 'FONT_COLOR' => $weblog_data['font_color'], 'FONT_SIZE' => $weblog_data['font_size'], 'NORMAL_LINK_COLOR' => $weblog_data['normal_link_color'], 'NORMAL_LINK_UNDERLINED' => ( $weblog_data['normal_link_underline'] ) ? 'underline' : 'none', 'ACTIVE_LINK_COLOR' => $weblog_data['active_link_color'], 'ACTIVE_LINK_UNDERLINED' => ( $weblog_data['active_link_underline'] ) ? 'underline': 'none', 'HOVER_LINK_COLOR' => $weblog_data['hover_link_color'], 'HOVER_LINK_UNDERLINED' => ( $weblog_data['hover_link_underline'] ) ? 'underline': 'none', 'VISITED_LINK_COLOR' => $weblog_data['visited_link_color'], 'VISITED_LINK_UNDERLINED' => ( $weblog_data['visited_link_underline'] ) ? 'underline': 'none', 'WEBLOG_TITLE_COLOR' => $weblog_data['weblog_title_color'], 'WEBLOG_TITLE_FONT_SIZE' => $weblog_data['weblog_title_font_size'], 'ENTRY_TITLE_COLOR' => $weblog_data['entry_title_color'], 'ENTRY_TITLE_FONT_SIZE' => $weblog_data['entry_title_font_size'], 'DATE_TIME_COLOR' => $weblog_data['date_time_color'], 'DATE_TIME_FONT_SIZE' => $weblog_data['date_time_font_size'], 'BLOCK_TITLE_COLOR' => $weblog_data['block_title_color'], 'BLOCK_TITLE_FONT_SIZE' => $weblog_data['block_title_font_size'], 'BLOCK_BG_COLOR' => $weblog_data['block_bg_color'], 'BLOCK_BORDER_COLOR' => $weblog_data['block_border_color']) ); // // Parse the header // $template->pparse('header'); // // Find the users that have been blocked // $sql = "SELECT u.username, u.user_id, b.blocked_id FROM " . WEBLOG_BLOCKED_TABLE . " b, " . USERS_TABLE . " u WHERE b.owner_id = $user_id AND u.user_id = b.blocked_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get blocked user information.", "", __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $template->assign_block_vars('blockedrow', array( 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']), 'BLOCKED_USER' => $row['username']) ); } // // Generate page // $template->assign_vars(array( 'L_BLOCKED_USERS' => $lang['Blocked_users'], 'L_REMOVE_USER' => $lang['Remove_user'], 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'L_WEBLOGS' => $lang['Weblogs'], 'L_BLOCK_USER' => $lang['Block_user'], 'U_INDEX' => append_sid($mx_root_path . 'index.'.$phpEx), 'U_WEBLOGS' => append_sid($mx_root_path . "index.$phpEx?page=". $weblog_config['mx_weblog_list']), 'U_WEBLOG' => append_sid($mx_root_path . "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id']), 'S_BLOCK_ACTION' => append_sid($mx_root_path . "modules/mx_blogs/weblog_blocked.$phpEx?" . POST_USERS_URL . "=$user_id"), 'WEBLOG_NAME' => $weblog_data['weblog_name']) ); // // Output the body // $template->pparse('body'); $template->assign_vars(array( 'L_POWERED_BY' => sprintf($lang['Weblog_powered_by'], WEBLOGS_MOD_VERSION)) ); // // Output the footer // use_weblog_footer ( $weblog_data, $template_dir); ?> --- NEW FILE: weblogs.php --- <?php /*************************************************************************** * weblogs.php * ----------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: weblogs.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PHPBB', true); define('IN_PORTAL', true); //$phpbb_root_path = './'; //include($phpbb_root_path . 'extension.inc'); //include($phpbb_root_path . 'common.'.$phpEx); //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); if( is_object($mx_block)) { $is_block = TRUE; } // // Start session management // //$userdata = session_pagestart($user_ip, PAGE_INDEX); //init_userprefs($userdata); $mx_user->init($user_ip, PAGE_INDEX); // // End session management // //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); // // Begin initial var setup // $board_config['avatar_path'] = $phpbb_root_path . $board_config['avatar_path']; $board_config['avatar_gallery_path'] = $phpbb_root_path . $board_config['avatar_gallery_path']; if ( isset($HTTP_GET_VARS['count']) || isset($HTTP_POST_VARS['count']) ) { $count = (isset($HTTP_POST_VARS['count'])) ? intval($HTTP_POST_VARS['count']) : intval($HTTP_GET_VARS['count']); $count = abs($count); } else { $count = $weblog_config['main_blogsperpage']; } if ( !$count ) { $count = 1; } if ( isset($HTTP_GET_VARS['start']) || isset($HTTP_POST_VARS['start']) ) { $start = (isset($HTTP_POST_VARS['start'])) ? intval($HTTP_POST_VARS['start']) : intval($HTTP_GET_VARS['start']); $start = abs($start); } else { $start = 0; } if ( isset($HTTP_GET_VARS['sort']) || isset($HTTP_POST_VARS['sort']) ) { $sort = (isset($HTTP_POST_VARS['sort'])) ? intval($HTTP_POST_VARS['sort']) : intval($HTTP_GET_VARS['sort']); } else { $sort = $weblog_config['main_sorttype']; } if ( isset($HTTP_GET_VARS['order']) || isset($HTTP_POST_VARS['order']) ) { $order = (isset($HTTP_POST_VARS['order'])) ? $HTTP_POST_VARS['order'] : $HTTP_GET_VARS['order']; $order = ( $order == 'asc' || $order == 'desc' ) ? $order : 'desc'; } else { $order = $weblog_config['main_sortorder']; } // // End initial var setup // // // Start page proper // $page_title = $lang['Weblog_index']; include($mx_root_path . 'includes/page_header.'.$phpEx); // // Get the moods data // $sql = "SELECT * FROM " . WEBLOG_MOODS_TABLE . " ORDER BY mood_text"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain mood data from database", "", __LINE__, __FILE__, $sql); } $mood_data = $db->sql_fetchrowset($result); // // Get the actions data // $sql = "SELECT * FROM " . WEBLOG_ACTIONS_TABLE . " ORDER BY action_text"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain action data from database", "", __LINE__, __FILE__, $sql); } $action_data = $db->sql_fetchrowset($result); // // Load the template data // // Get template data and check to see if there is at least one template installed. $sql = "SELECT * FROM " . WEBLOG_TEMPLATES_TABLE . " ORDER BY template_name"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error querying to find user weblog information', '', __LINE__, __FILE__, $sql); } $template_data = array(); while ( $row = $db->sql_fetchrow($result) ) { $template_data[] = $row; } // // Fetch Weblog Information // $sql = "SELECT w.*, u.* FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u WHERE w.weblog_id = u.user_weblog AND u.user_id = " . $userdata['user_id']; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not query user weblog information', '', __LINE__, __FILE__, $sql); } // See if any rows are returned. If at least one is returned.... if ( $userdata['session_logged_in'] && $row = $db->sql_fetchrow($result) ) { $user_weblog_data = $row; if ( $weblog_config['use_default_faceplates'] ) { $template->set_filenames(array( 'user' =>$module_root_path . 'templates/subSilver/weblog_faceplate_body.tpl') ); } else { // See if the weblog owner's face file is available if ( $user_weblog_data['weblog_advanced'] ) { if ( file_exists("weblogs/faceplate_" . $user_weblog_data['weblog_id'] . ".htm") ) { $template->set_filenames(array( 'user' => $module_root_path . '/weblogs/faceplate_' . $user_weblog_data['weblog_id'] . '.htm') ); } else { // Otherwise show a default face image. $template->set_filenames(array( 'user' => $module_root_path . 'templates/subSilver/weblog_faceplate_body.tpl') ); } } else { $template_dir = get_template_dir ($user_weblog_data['template_id']); $template->set_filenames(array( 'user' => $module_root_path . 'weblogs/templates/' . $template_dir . '/weblog_faceplate_body.htm') ); } } $weblog_id = $user_weblog_data['weblog_id']; $avatar_img = ''; if ( $userdata['user_avatar_type'] && $userdata['user_allowavatar'] ) { switch( $userdata['user_avatar_type'] ) { case USER_AVATAR_UPLOAD: $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'] . '" alt="" border="0" />' : ''; break; case USER_AVATAR_REMOTE: $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $userdata['user_avatar'] . '" alt="" border="0" />' : ''; break; case USER_AVATAR_GALLERY: $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $userdata['user_avatar'] . '" alt="" border="0" />' : ''; break; } } // Viewer of own weblog presumed to have maximum authentication... $sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " WHERE weblog_id = " . $userdata['user_weblog'] . " AND entry_deleted <> " . TRUE . " ORDER BY entry_time DESC LIMIT 1"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not query user weblog information', '', __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $last_entry_data = $row; $mood = array(); $mood = find_mood($last_entry_data['entry_mood']); if ( $mood >= 0 ) { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } else { $mood = $lang['None']; } // Currently Icons $currently = array(); $currently = find_action($last_entry_data['entry_currently']); if ( $currently > 0 ) { $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) { $action = sprintf($lang['Currently:'], '', $last_entry_data['currently_text']); } else { $action = $lang['None']; } $entry_id = $last_entry_data['entry_id']; $last_entry_time = create_date($board_config['default_dateformat'], $last_entry_data['entry_time'], $board_config['board_timezone']); $last_entry_time .= ' <a href="' . append_sid($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id") . '"><img src="' . $phpbb_root_path . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_entry'] . '" title="' . $lang['View_newest_entry'] . '" border="0" /></a>'; $last_entry = $last_entry_time; } else { $last_entry = $lang['No_entries']; $action = $lang['None']; $mood = $lang['None']; } if ( $user_weblog_data['font'] == '0' ) $font = 'Arial'; else if ( $user_weblog_data['font'] == '1' ) $font = 'Comic Sans MS'; else if ( $user_weblog_data['font'] == '2' ) $font = 'Courier New'; else if ( $user_weblog_data['font'] == '3' ) $font = 'Georgia'; else if ( $user_weblog_data['font'] == '4' ) $font = 'Verdana'; else if ( $user_weblog_data['font'] == '5' ) $font = 'Times New Roman'; else if ( $user_weblog_data['font'] == '6' ) $font = 'Trebuchet'; else $font = 'Verdana'; $template->assign_vars(array( 'ID' => 'user', 'BACKGROUND_COLOR' => $user_weblog_data['background_color'], 'ENTRY_BG_COLOR' => $user_weblog_data['entry_bg_color'], 'BORDER_COLOR' => $user_weblog_data['border_color'], 'BACKGROUND_IMAGE' => $user_weblog_data['background_image'], 'BACKGROUND_IMAGE_FIXED' => ( $user_weblog_data['background_image_fixed'] ) ? 'fixed' : 'scroll', 'BACKGROUND_REPEAT' => $user_weblog_data['tile_bg'], 'BACKGROUND_POSITION' => $user_weblog_data['bg_ypos'] . ' ' . $user_weblog_data['bg_xpos'], 'SB_FACE_COLOR' => $user_weblog_data['sb_face_color'], 'SB_HIGHLIGHT_COLOR' => $user_weblog_data['sb_highlight_color'], 'SB_SHADOW_COLOR' => $user_weblog_data['sb_shadow_color'], 'SB_3DLIGHT_COLOR' => $user_weblog_data['sb_3dlight_color'], 'SB_ARROW_COLOR' => $user_weblog_data['sb_arrow_color'], 'SB_TRACK_COLOR' => $user_weblog_data['sb_track_color'], 'SB_DARKSHADOW_COLOR' => $user_weblog_data['sb_darkshadow_color'], 'FONT' => $font, 'FONT_COLOR' => $user_weblog_... [truncated message content] |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:35
|
Update of /cvsroot/mxbb/mx_blogs/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/admin Added Files: admin_weblog_action.php admin_weblog_cfg.php admin_weblog_mood.php admin_weblog_templates.php admin_weblog_tools.php Log Message: mx_blogs, Initial checkin --- NEW FILE: admin_weblog_action.php --- <?php /*************************************************************************** * admin_weblog_action.php * ----------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: admin_weblog_action.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL', 1); // // First we do the setmodules stuff for the admin cp. // if( !empty($setmodules) ) { $filename = basename(__FILE__); $module['Blog_admin']['Action_choices'] = 'modules/mx_blogs/admin/' .$filename; return; } $mx_root_path = "./../../../"; $module_root_path ="./../"; //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'language/lang_' . $use_lang . '/lang_weblog_admin.' . $phpEx); // // Get the actions data // $sql = "SELECT * FROM " . WEBLOG_ACTIONS_TABLE . " ORDER BY action_text"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain action data from database", "", __LINE__, __FILE__, $sql); } $action_data = $db->sql_fetchrowset($result); // // Check to see what mode we should operate in. // if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ""; } // // Read a listing of uploaded currently icons for use in the add or edit smliey code... // $dir = @opendir($module_root_path . 'images/weblogs/'); while($file = @readdir($dir)) { if( !@is_dir(phpbb_realpath($module_root_path . 'images/weblogs/' . $file)) ) { $img_size = @getimagesize($module_root_path . 'images/weblogs/' . $file); if( $img_size[0] && $img_size[1] ) { $currently_images[] = $file; } } } @closedir($dir); // // Select main mode // if( isset($HTTP_POST_VARS['add']) || isset($HTTP_GET_VARS['add']) ) { // // Admin has selected to add a "currently". // $template->set_filenames(array( "body" => "admin/weblog_action_edit_body.tpl") ); $filename_list = ""; for( $i = 0; $i < count($currently_images); $i++ ) { $filename_list .= '<option value="' . $currently_images[$i] . '">' . $currently_images[$i] . '</option>'; } $s_hidden_fields = '<input type="hidden" name="mode" value="savenew" />'; $template->assign_vars(array( "L_CURRENTLY_TITLE" => $lang['Weblog_currently_title'], "L_CURRENTLY_CONFIG" => $lang['Weblog_currently_config'], "L_CURRENTLY_EXPLAIN" => $lang['Weblog_currently_explain'], "L_CURRENTLY_URL" => $lang['Weblog_currently_url'], "L_CURRENTLY_CURRENTLY" => $lang['Weblog_currently_currently'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "CURRENTLY_IMG" => $module_root_path . 'images/weblogs/' . $currently_images[0], "S_CURRENTLY_ACTION" => append_sid("admin_weblog_action.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); } else if ( $mode != "" ) { switch( $mode ) { case 'delete': // // Admin has selected to delete a currently. // $currently_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; $sql = "DELETE FROM " . WEBLOG_ACTIONS_TABLE . " WHERE action_id = " . $currently_id; $result = $db->sql_query($sql); if( !$result ) { message_die(GENERAL_ERROR, "Couldn't delete action", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_currently_del_success'] . "<br /><br />" . sprintf($lang['Click_return_currentlyadmin'], "<a href=\"" . append_sid("admin_weblog_action.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); break; case 'edit': // // Admin has selected to edit a currently. // $currently_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; $sql = "SELECT * FROM " . WEBLOG_ACTIONS_TABLE . " WHERE action_id = " . $currently_id; $result = $db->sql_query($sql); if( !$result ) { message_die(GENERAL_ERROR, 'Could not obtain emoticon information', "", __LINE__, __FILE__, $sql); } $currently_data = $db->sql_fetchrow($result); $filename_list = ""; for( $i = 0; $i < count($currently_images); $i++ ) { if( $currently_images[$i] == $currently_data['action_url'] ) { $currently_selected = "selected=\"selected\""; $currently_edit_img = $currently_images[$i]; } else { $currently_selected = ""; } $filename_list .= '<option value="' . $currently_images[$i] . '"' . $currently_selected . '>' . $currently_images[$i] . '</option>'; } $template->set_filenames(array( "body" => "admin/weblog_action_edit_body.tpl") ); $s_hidden_fields = '<input type="hidden" name="mode" value="save" /><input type="hidden" name="currently_id" value="' . $currently_data['action_id'] . '" />'; $template->assign_vars(array( "L_CURRENTLY_TITLE" => $lang['Weblog_currently_title'], "L_CURRENTLY_CONFIG" => $lang['Weblog_currently_config'], "L_CURRENTLY_EXPLAIN" => $lang['Weblog_currently_explain'], "L_CURRENTLY_URL" => $lang['Weblog_currently_url'], "L_CURRENTLY_CURRENTLY" => $lang['Weblog_currently_currently'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "CURRENTLY_IMG" => $module_root_path . 'images/weblogs/' . $currently_edit_img, "CURRENTLY_CURRENTLY" => $currently_data['action_text'], "S_CURRENTLY_ACTION" => append_sid("admin_weblog_action.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); break; case "save": // // Admin has submitted changes while editing a currently. // // // Get the submitted data, being careful to ensure that we only // accept the data we are looking for. // $currently_url = ( isset($HTTP_POST_VARS['currently_url']) ) ? trim($HTTP_POST_VARS['currently_url']) : trim($HTTP_GET_VARS['currently_url']); $currently_currently = ( isset($HTTP_POST_VARS['currently_currently']) ) ? trim($HTTP_POST_VARS['currently_currently']) : trim($HTTP_GET_VARS['currently_currently']); $currently_id = ( isset($HTTP_POST_VARS['currently_id']) ) ? intval($HTTP_POST_VARS['currently_id']) : intval($HTTP_GET_VARS['currently_id']); // If no code was entered complain ... if ( $currently_url == '') { message_die(MESSAGE, $lang['Fields_empty']); } // // Proceed with updating the currently table. // $sql = "UPDATE " . WEBLOG_ACTIONS_TABLE . " SET action_url = '" . str_replace("\'", "''", $currently_url) . "', action_text = '" . str_replace("\'", "''", $currently_currently) . "' WHERE action_id = $currently_id"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Couldn't update action info", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_currently_edit_success'] . "<br /><br />" . sprintf($lang['Click_return_currentlyadmin'], "<a href=\"" . append_sid("admin_weblog_action.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); break; case "savenew": // // Admin has submitted changes while adding a new currently. // // // Get the submitted data being careful to ensure the the data // we recieve and process is only the data we are looking for. // $currently_url = ( isset($HTTP_POST_VARS['currently_url']) ) ? $HTTP_POST_VARS['currently_url'] : $HTTP_GET_VARS['currently_url']; $currently_currently = ( isset($HTTP_POST_VARS['currently_currently']) ) ? $HTTP_POST_VARS['currently_currently'] : $HTTP_GET_VARS['currently_currently']; // If no code was entered complain ... if ($currently_url == '') { message_die(MESSAGE, $lang['Fields_empty']); } // // Save the data to the currently table. // $sql = "INSERT INTO " . WEBLOG_ACTIONS_TABLE . " (action_url, action_text) VALUES ('" . str_replace("\'", "''", $currently_url) . "', '" . str_replace("\'", "''", $currently_currently) . "')"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't insert new action", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_currently_add_success'] . "<br /><br />" . sprintf($lang['Click_return_currentlyadmin'], "<a href=\"" . append_sid("admin_weblog_action.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); break; } } else { // // This is the main display of the page before the admin has selected // any options. // $template->set_filenames(array( "body" => "admin/weblog_action_list_body.tpl") ); $template->assign_vars(array( "L_ACTION" => $lang['Action'], "L_CURRENTLY_TITLE" => $lang['Weblog_currently_title'], "L_CURRENTLY_TEXT" => $lang['Weblog_currently_explain'], "L_DELETE" => $lang['Delete'], "L_EDIT" => $lang['Edit'], "L_CURRENTLY_ADD" => $lang['Weblog_currently_add'], "L_IMAGE" => $lang['Weblog_image'], "L_CURRENTLY" => $lang['Weblog_currently'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_CURRENTLY_ACTION" => append_sid("admin_weblog_action.$phpEx")) ); // // Loop throuh the rows of currentlys setting block vars for the template. // for($i = 0; $i < count($action_data); $i++) { $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars("currently", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "CURRENTLY_IMG" => $module_root_path . 'images/weblogs/' . $action_data[$i]['action_url'], "CURRENTLY" => $action_data[$i]['action_text'], "U_CURRENTLY_EDIT" => append_sid("admin_weblog_action.$phpEx?mode=edit&id=" . $action_data[$i]['action_id']), "U_CURRENTLY_DELETE" => append_sid("admin_weblog_action.$phpEx?mode=delete&id=" . $action_data[$i]['action_id'])) ); } // // Spit out the page. // $template->pparse("body"); } // // Page Footer // include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- NEW FILE: admin_weblog_templates.php --- <?php /*************************************************************************** * admin_weblog_templates.php * -------------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: admin_weblog_templates.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL', 1); // // First we do the setmodules stuff for the admin cp. // if( !empty($setmodules) ) { $filename = basename(__FILE__); $module['Blog_admin']['Templates'] = 'modules/mx_blogs/admin/' . $filename; return; } $mx_root_path = "./../../../"; $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'language/lang_' . $use_lang . '/lang_weblog_admin.' . $phpEx); // // Check to see what mode we should operate in. // if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ""; } if ( !file_exists($module_root_path . 'weblogs/templates/') ) { @mkdir($module_root_path . 'weblogs/templates/', 0755); } @chmod ($module_root_path . 'weblogs/templates/', 0755); if( $dir = @opendir($module_root_path . "weblogs/templates/") ) { $dir_select = '<select name="template_dir" onchange="update_preview(this.form.template_dir.options[this.form.template_dir.selectedIndex].value)">'; $selected = ($template_data['template_dir'] == $sub_dir ) ? ' selected="selected"' : ''; while( $sub_dir = @readdir($dir) ) { if ( !is_file($module_root_path. "weblogs/templates/" . $sub_dir) && $sub_dir != '.' && $sub_dir != '..' ) { $dir_select .= '<option value="' . $sub_dir . '"' . $selected . '>' . $sub_dir . '</option>'; } } $dir_select .= '</select>'; } // // Select main mode // if( isset($HTTP_POST_VARS['add']) || isset($HTTP_GET_VARS['add']) ) { // // Admin has selected to add a template. // $template->set_filenames(array( "body" => "admin/weblog_template_edit_body.tpl") ); $template->assign_vars(array( "L_TEMPLATE_TITLE" => $lang['Weblog_template_title'], "L_TEMPLATE_CONFIG" => $lang['Weblog_template_config'], "L_TEMPLATE_EXPLAIN" => $lang['Weblog_template_explain'], "L_TEMPLATE_NAME" => $lang['Weblog_template_name'], "L_TEMPLATE_DIR" => $lang['Weblog_template_dir'], "L_TEMPLATE_PRIVATE" => $lang['Template_private'], "L_YES" => $lang['Yes'], "L_NO" => $lang['No'], "L_TEMPLATE_PREVIEW" => $lang['Weblog_template_preview'], "TEMPLATE_DIR" => $dir_select, "PREVIEW_IMG" => ( $template_data['template_dir'] ) ? $phpbb_root_path . 'weblogs/templates/' . $template_data['template_dir'] . '/weblog_preview.gif' : $phpbb_root_path . 'images/spacer.gif', "TEMPLATE_PRIVATE_CHECKED" => '', "TEMPLATE_NOT_PRIVATE_CHECKED" => ' checked="checked"', "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "S_TEMPLATE_ACTION" => append_sid("admin_weblog_templates.$phpEx?mode=savenew"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); } else if ( $mode != "" ) { switch( $mode ) { case 'delete': // // Admin has selected to delete a template. // $template_id = ( !empty($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); $sql = "DELETE FROM " . WEBLOG_TEMPLATES_TABLE . " WHERE template_id = " . $template_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete template", "", __LINE__, __FILE__, $sql); } // // Let's move all the users using that deleted style to the very first style // $sql = "SELECT MIN(template_id) AS min_id FROM " . WEBLOG_TEMPLATES_TABLE; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get minimum template id", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $id = $row['min_id']; } $sql = "UPDATE " . WEBLOGS_TABLE . " SET template_id = $id WHERE template_id = $template_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't set users to use another template", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_template_del_success'] . "<br /><br />" . sprintf($lang['Click_return_templateadmin'], "<a href=\"" . append_sid("admin_weblog_templates.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); break; case 'edit': // // Admin has selected to edit a template. // $template_id = ( !empty($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); $sql = "SELECT * FROM " . WEBLOG_TEMPLATES_TABLE . " WHERE template_id = " . $template_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain template information', "", __LINE__, __FILE__, $sql); } $templates_data = array(); if ( $row = $db->sql_fetchrow($result) ) { $templates_data = $row; } $template->set_filenames(array( "body" => "admin/weblog_template_edit_body.tpl") ); $s_hidden_fields = '<input type="hidden" name="mode" value="save" /><input type="hidden" name="template_id" value="' . $template_data['template_id'] . '" />'; $template->assign_vars(array( "L_TEMPLATE_TITLE" => $lang['Weblog_template_title'], "L_TEMPLATE_CONFIG" => $lang['Weblog_template_config'], "L_TEMPLATE_EXPLAIN" => $lang['Weblog_template_explain'], "L_TEMPLATE_NAME" => $lang['Weblog_template_name'], "L_TEMPLATE_PREVIEW" => $lang['Weblog_template_preview'], "L_TEMPLATE_DIR" => $lang['Weblog_template_dir'], "L_TEMPLATE_PRIVATE" => $lang['Template_private'], "L_YES" => $lang['Yes'], "L_NO" => $lang['No'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "TEMPLATE_NAME" => $templates_data['template_name'], "TEMPLATE_DIR" => $dir_select, "PREVIEW_IMG" => ( $templates_data['template_dir'] ) ? $module_root_path . 'weblogs/templates/' . $templates_data['template_dir'] . '/preview_img.gif' : $phpbb_root_path . 'images/spacer.gif', "TEMPLATE_PRIVATE_CHECKED" => ( $templates_data['template_private'] ) ? ' checked="checked"' : '', "TEMPLATE_NOT_PRIVATE_CHECKED" => ( !$templates_data['template_private'] ) ? ' checked="checked"' : '', "S_TEMPLATE_ACTION" => append_sid("admin_weblog_templates.$phpEx?mode=edit&id=$template_id"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); break; case "save": // // Admin has submitted changes while editing a template. // $template_id = ( !empty($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); // // Get the submitted data, being careful to ensure that we only // accept the data we are looking for. // $template_name = ( isset($HTTP_POST_VARS['template_name']) ) ? trim($HTTP_POST_VARS['template_name']) : trim($HTTP_GET_VARS['template_name']); $template_dir = ( isset($HTTP_POST_VARS['template_dir']) ) ? trim($HTTP_POST_VARS['template_dir']) : trim($HTTP_GET_VARS['template_dir']); $template_private = ( isset($HTTP_POST_VARS['private_template']) ) ? intval($HTTP_POST_VARS['private_template']) : intval($HTTP_GET_VARS['private_template']); // If no code was entered complain ... if ( $template_name == '' ) { mx_message_die(MESSAGE, $lang['Fields_empty']); } // // Proceed with updating the templates table. // $sql = "UPDATE " . WEBLOG_TEMPLATES_TABLE . " SET template_name = '" . str_replace("\'", "''", $template_name) . "', template_dir = '" . str_replace("\'", "''", $template_dir) . "', template_private = $template_private WHERE template_id = $template_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't update template info", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_template_edit_success'] . "<br /><br />" . sprintf($lang['Click_return_templateadmin'], "<a href=\"" . append_sid("admin_weblog_templates.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); break; case "savenew": // // Admin has submitted changes while adding a new template // // // Get the submitted data being careful to ensure the the data // we recieve and process is only the data we are looking for. // $template_name = ( isset($HTTP_POST_VARS['template_name']) ) ? trim($HTTP_POST_VARS['template_name']) : trim($HTTP_GET_VARS['template_name']); $template_dir = ( isset($HTTP_POST_VARS['template_dir']) ) ? trim($HTTP_POST_VARS['template_dir']) : trim($HTTP_GET_VARS['template_dir']); $template_private = ( isset($HTTP_POST_VARS['private_template']) ) ? intval($HTTP_POST_VARS['private_template']) : intval($HTTP_GET_VARS['private_template']); // If no code was entered complain ... if ( !$template_name ) { mx_message_die(GENERAL_ERROR, $lang['Fields_empty']); } // // Verify the template directory exists and can be read // // Chmod so we'll have no problems @chmod($module_root_path . 'weblogs/templates/' . $template_dir, 0755); @chmod($module_root_path . 'weblogs/templates/' . $template_dir . '/' . $template_dir . '.cfg', 0755); if ( !file_exists($module_root_path . 'weblogs/templates/' . $template_dir . '/' . $template_dir . '.cfg') ) { mx_message_die(GENERAL_ERROR, $lang['Template_missing']); } // // Get max template id // $sql = "SELECT MAX(template_id) AS maximum FROM " . WEBLOG_TEMPLATES_TABLE; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't get maximum template id", "", __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $next_id = $row['maximum'] + 1; } // // Save the data to the weblog templates table. // $sql = "INSERT INTO " . WEBLOG_TEMPLATES_TABLE . " (template_id, template_name, template_dir, template_private) VALUES ($next_id, '" . str_replace("\'", "''", $template_name) . "', '" . str_replace("\'", "''", $template_dir) . "', $template_private)"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't insert new template", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_template_add_success'] . "<br /><br />" . sprintf($lang['Click_return_templateadmin'], "<a href=\"" . append_sid("admin_weblog_templates.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); break; } } else { // // This is the main display of the page before the admin has selected // any options. // $template->set_filenames(array( "body" => "admin/weblog_template_list_body.tpl") ); $template->assign_vars(array( "L_ACTION" => $lang['Action'], "L_TEMPLATE_TITLE" => $lang['Weblog_template_title'], "L_TEMPLATE_TEXT" => $lang['Weblog_template_explain'], "L_DELETE" => $lang['Delete'], "L_EDIT" => $lang['Edit'], "L_TEMPLATE_ADD" => $lang['Weblog_template_add'], "L_TEMPLATE_NAME" => $lang['Weblog_template'], "L_PREVIEW_IMAGE" => $lang['Preview_image'], "L_PRIVATE" => $lang['Template_private'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_TEMPLATE_ACTION" => append_sid("admin_weblog_templates.$phpEx")) ); // // Loop throuh the rows of templates setting block vars for the template. // for($i = 0; $i < count($template_data); $i++) { $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars('template_row', array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "TEMPLATE" => $template_data[$i]['template_name'], "TEMPLATE_IMAGE" => '<img src="' . $module_root_path . 'weblogs/templates/' . $template_data[$i]['template_dir'] . '/preview_img.gif" border="0">', "TEMPLATE_PRIVATE" => ( $template_data[$i]['template_private'] ) ? $lang['Yes'] : $lang['No'], "U_TEMPLATE_EDIT" => append_sid("admin_weblog_templates.$phpEx?mode=edit&id=" . $template_data[$i]['template_id']), "U_TEMPLATE_DELETE" => append_sid("admin_weblog_templates.$phpEx?mode=delete&id=" . $template_data[$i]['template_id'])) ); } // // Spit out the page. // $template->pparse("body"); } // // Page Footer // include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- NEW FILE: admin_weblog_tools.php --- <?php /*************************************************************************** * admin_weblog_tools.php * ---------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: admin_weblog_tools.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL',1); define('IN_PHPBB', 1); if( !empty($setmodules) ) { $filename = basename(__FILE__); $module['Blog_admin']['Weblog_tools'] = 'modules/mx_blogs/admin/' . $filename; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); include($mx_root_path . 'admin/pagestart.' . $phpEx); //include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'language/lang_' . $use_lang . '/lang_weblog_admin.' . $phpEx); $html_entities_match = array('#<#', '#>#'); $html_entities_replace = array('<', '>'); // // Set mode // if( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { $mode = ( isset( $HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; $mode = htmlspecialchars($mode); } else { $mode = ''; } if ( isset($HTTP_POST_VARS['user_admin']) ) { // // Default user selection box // $template->set_filenames(array( 'body' => 'admin/user_select_body.tpl') ); $template->assign_vars(array( 'L_USER_TITLE' => $lang['Weblog_user_admin'], 'L_USER_EXPLAIN' => $lang['Weblog_user_admin_explain'], 'L_USER_SELECT' => $lang['Select_a_User'], 'L_LOOK_UP' => $lang['Look_up_user'], 'L_FIND_USERNAME' => $lang['Find_username'], 'U_SEARCH_USER' => append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"), 'S_USER_ACTION' => append_sid("admin_weblog_tools.$phpEx?mode=user_admin"), 'S_USER_SELECT' => $select_list) ); } else if ( isset($HTTP_POST_VARS['weblog_admin']) ) { // // Default user selection box // $template->set_filenames(array( 'body' => 'admin/user_select_body.tpl') ); $template->assign_vars(array( 'L_USER_TITLE' => $lang['Weblog_admin'], 'L_USER_EXPLAIN' => $lang['Weblog_admin_explain'], 'L_USER_SELECT' => $lang['Select_a_weblog'], 'L_LOOK_UP' => $lang['Look_up_weblog'], 'S_USER_ACTION' => append_sid("admin_weblog_tools.$phpEx?mode=weblog_admin"), 'S_USER_SELECT' => $select_list) ); }else if ( isset($HTTP_POST_VARS['purge']) ) { // // Find the deleted weblogs and the deleted entries // $sql = "SELECT w.*, u.user_id, u.username FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u WHERE u.user_weblog = w.weblog_id AND w.deleted = 1"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not retrieve deleted weblogs information', '', __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $del_weblogs[] = $row; } $sql = "SELECT e.*, w.*, u.user_id, u.username FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u, " . WEBLOG_ENTRIES_TABLE . " e WHERE u.user_weblog = w.weblog_id AND e.weblog_id = w.weblog_id AND e.entry_deleted = 1"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not retrieve deleted entries information', '', __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $del_entries[] = $row; } if ( isset($HTTP_POST_VARS['purge_weblogs']) ) { // // Remove all weblogs with the "deleted" flag in the database // $sql = "DELETE FROM " . WEBLOGS_TABLE . " WHERE deleted = 1"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not delete "deleted" weblogs information', '', __LINE__, __FILE__, $sql); } // // Remove all entries with the "deleted" flag in the database // $sql = "DELETE FROM " . WEBLOG_ENTRIES_TABLE . " WHERE entry_deleted = 1"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not delete "deleted" entries', '', __LINE__, __FILE__, $sql); } // That's all, Folks! $message = $lang['Weblogs_purged'] . "<br /><br />" . sprintf($lang['Click_return_weblog_tools'], '<a href="' . append_sid("admin_weblog_tools.$phpEx") . '">', '</a>') . "<br /><br />" . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else if ( isset($HTTP_POST_VARS['purge_entries']) ) { // // Remove all entries with the "deleted" flag in the database // $sql = "DELETE FROM " . WEBLOG_ENTRIES_TABLE . " WHERE entry_deleted = 1"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not delete "deleted" entries', '', __LINE__, __FILE__, $sql); } // That's all, Folks! $message = $lang['Entries_purged'] . "<br /><br />" . sprintf($lang['Click_return_weblog_tools'], '<a href="' . append_sid("admin_weblog_tools.$phpEx") . '">', '</a>') . "<br /><br />" . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else if ( isset($HTTP_POST_VARS['weblogs_restore']) ) { $sql = ''; for ( $i = 0; $i < count($del_weblogs); $i++ ) { $weblog_id = $del_weblogs[$i]['weblog_id']; if ( !empty($HTTP_POST_VARS[$weblog_id]) ) { $sql .= "UPDATE " . WEBLOGS_TABLE . " SET deleted = 0 WHERE weblog_id = $weblog_id;"; } } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error updating weblogs information', '', __LINE__, __FILE__, $sql); } $message = $lang['Weblogs_restored'] . "<br /><br />" . sprintf($lang['Click_return_weblog_tools'], '<a href="' . append_sid("admin_weblog_tools.$phpEx") . '">', '</a>') . "<br /><br />" . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else if ( isset($HTTP_POST_VARS['entries_restore']) ) { $sql = ''; for ( $i = 0; $i < count($del_entries); $i++ ) { $entry_id = $del_entries[$i]['entry_id']; if ( !empty($HTTP_POST_VARS[$entry_id]) ) { $sql .= "UPDATE " . WEBLOG_ENTRIES_TABLE . " SET entry_deleted = 0 WHERE entry_id = $entry_id;"; } } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error updating entry information', '', __LINE__, __FILE__, $sql); } $message = $lang['Entries_restored'] . "<br /><br />" . sprintf($lang['Click_return_weblog_tools'], '<a href="' . append_sid("admin_weblog_tools.$phpEx") . '">', '</a>') . "<br /><br />" . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else if ( isset($HTTP_POST_VARS['weblogs_purge']) ) { $sql = ''; for ( $i = 0; $i < count($del_weblogs); $i++ ) { $weblog_id = $del_weblogs[$i]['weblog_id']; if ( !empty($HTTP_POST_VARS[$weblog_id]) ) { $sql .= "DELETE FROM " . WEBLOGS_TABLE . " WHERE weblog_id = $weblog_id;"; } } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error deleting weblog information', '', __LINE__, __FILE__, $sql); } $message = $lang['Weblogs_purged'] . "<br /><br />" . sprintf($lang['Click_return_weblog_tools'], '<a href="' . append_sid("admin_weblog_tools.$phpEx") . '">', '</a>') . "<br /><br />" . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else if ( isset($HTTP_POST_VARS['entries_purge']) ) { $sql = ''; for ( $i = 0; $i < count($del_entries); $i++ ) { $entry_id = $del_entries[$i]['entry_id']; if ( !empty($HTTP_POST_VARS[$entry_id]) ) { $sql .= "DELETE FROM " . WEBLOG_ENTRIES_TABLE . " WHERE entry_id = $entry_id;"; } } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error deleting entry information', '', __LINE__, __FILE__, $sql); } $message = $lang['Entries_purged'] . "<br /><br />" . sprintf($lang['Click_return_weblog_tools'], '<a href="' . append_sid("admin_weblog_tools.$phpEx") . '">', '</a>') . "<br /><br />" . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } for ( $i = 0; $i < count($del_weblogs); $i++ ) { $row_class = ( !($i % 2) ) ? 'row1' : 'row2'; $template->assign_block_vars('weblogrow', array( 'ROW_CLASS' => $row_class, 'WEBLOG' => $del_weblogs[$i]['weblog_name'], 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $del_weblogs[$i]['user_id']), 'OWNER' => $del_weblogs[$i]['username'], 'WEBLOG_DESC' => $del_weblogs[$i]['weblog_desc'], 'STARTED_DATE' => create_date($board_config['default_dateformat'], $del_weblogs[$i]['weblog_create_date'], $board_config['board_timezone']), 'INPUT_NAME' => $del_weblogs[$i]['weblog_id']) ); } for ( $i = 0; $i < count($del_entries); $i++ ) { $row_class = ( !($i % 2) ) ? 'row1' : 'row2'; $template->assign_block_vars('entryrow', array( 'ROW_CLASS' => $row_class, 'ENTRY' => $del_entries[$i]['entry_subject'], 'WEBLOG' => $del_entries[$i]['weblog_name'], 'U_PROFILE' => append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $del_entries[$i]['user_id']), 'U_WEBLOG' => append_sid($module_root_path . "weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $del_entries[$i]['weblog_id']), 'OWNER' => $del_entries[$i]['username'], 'WEBLOG_DESC' => $del_entries[$i]['weblog_desc'], 'INPUT_NAME' => $del_entries[$i]['entry_id']) ); } // // Default user selection box // $template->set_filenames(array( 'body' => 'admin/weblog_purge_body.tpl') ); $template->assign_vars(array( 'L_USER_TITLE' => $lang['Weblog_user_admin'], 'L_USER_EXPLAIN' => $lang['Weblog_user_admin_explain'], 'L_USER_SELECT' => $lang['Select_a_User'], 'L_LOOK_UP' => $lang['Look_up_user'], 'L_FIND_USERNAME' => $lang['Find_username'], 'U_SEARCH_USER' => append_sid($phpbb_root_path . "search.$phpEx?mode=searchuser"), 'S_PURGE_ACTION' => append_sid("admin_weblog_tools.$phpEx?mode=purge"), 'S_USER_SELECT' => $select_list) ); } else if ( $mode == 'edit' ) { if ( isset($HTTP_POST_VARS['submit']) ) { if ( isset($HTTP_POST_VARS['ban_user']) ) { $user_allowweblog = 0; } else { $user_allowweblog = 1; } $allow_adv_weblogs = ( isset($HTTP_POST_VARS['allow_adv_weblogs']) ) ? intval($HTTP_POST_VARS['allow_adv_weblogs']) : 0; $user_id = ( isset($HTTP_POST_VARS['user_id']) ) ? intval($HTTP_POST_VARS['user_id']) : 0; $sql = "UPDATE " . USERS_TABLE . " SET user_allowweblog = $user_allowweblog, user_allowadvweblog = $allow_adv_weblogs WHERE user_id = $user_id"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error updating user information', '', __LINE__, __FILE__, $sql); } mx_message_die (GENERAL_MESSAGE, 'User updated Successfully'); } $username = ( isset($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; $sql = "SELECT * FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $username) . "'"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error querying to find weblog user information', '', __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { $weblog_user_data = $row; } else { mx_message_die(GENERAL_MESSAGE, $lang['User_not_exist']); } $template->set_filenames(array( 'body' => 'admin/weblog_users_body.tpl') ); $template->assign_vars(array( 'L_CONFIGURATION_TITLE' => $lang['Weblog_user_admin'], 'L_CONFIGURATION_EXPLAIN' => $lang['Weblog_user_admin_explain'], 'L_BAN_THIS_USER_WEBLOG' => $lang['Ban_this_user_weblog'], 'L_ALLOW_ADV_WEBLOG' => $lang['Allow_adv_weblog'], 'L_ALLOW_ADV_WEBLOG_EXPLAIN' => $lang['Allow_adv_weblog_explain'], 'S_BAN_USER_CHECKED' => ( !$weblog_user_data['user_allowweblog'] ) ? ' checked="checked"' : '', 'S_ALLOW_ADV_WEBLOGS_YES' => ( $weblog_user_data['user_allowadvweblog'] ) ? ' checked="checked"' : '', 'S_ALLOW_ADV_WEBLOGS_NO' => ( !$weblog_user_data['user_allowadvweblog'] ) ? ' checked="checked"' : '', 'USERNAME' => $username, 'S_HIDDEN_FIELDS' => '<input type="hidden" name="user_id" value="' . $weblog_user_data['user_id'] . '" />', 'S_CONFIG_ACTION' => append_sid("admin_weblog_tools.$phpEx?mode=edit")) ); } else { // // Default user selection box // $template->set_filenames(array( 'body' => 'admin/weblog_tools_body.tpl') ); $template->assign_vars(array( 'L_PICK_A_TOOL' => $lang['Pick_a_tool'], 'L_WEBLOG_ADMIN' => $lang['Weblog_admin'], 'L_WEBLOG_ADMIN_EXPLAIN' => $lang['Weblog_admin_explain'], 'L_WEBLOG_USER_ADMIN' => $lang['Weblog_user_admin'], 'L_WEBLOG_USER_ADMIN_EXPLAIN' => $lang['Weblog_user_admin_explain'], 'L_CONFIGURATION_TITLE' => $lang['Weblog_tools'], 'L_CONFIGURATION_EXPLAIN' => $lang['Weblog_tools_explain'], 'L_WEBLOG_PURGING' => $lang['Weblog_purging'], 'L_WEBLOG_PURGING_EXPLAIN' => $lang['Weblog_purging_explain'] ) ); $template->assign_vars(array( 'S_SELECT_ACTION' => append_sid("admin_weblog_tools.$phpEx")) ); } $template->assign_vars(array( 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No']) ); $template->pparse('body'); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- NEW FILE: admin_weblog_cfg.php --- <?php /*************************************************************************** * admin_weblog_config.php * ----------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: admin_weblog_config.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL', 1); if( !empty($setmodules) ) { $file = basename(__FILE__); $module['Blog_admin']['Configuration'] = "modules/mx_blogs/admin/" . "$file"; return; } // // Let's set the root dir for phpBB // //$phpbb_root_path = "./../"; $mx_root_path = '../../../'; $module_root_path = './../'; //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); //include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'language/lang_' . $use_lang . '/lang_weblog_admin.' . $phpEx); // // Pull all config data // $sql = "SELECT * FROM " . WEBLOG_CONFIG_TABLE; if(!$result = $db->sql_query($sql)) { mx_message_die(CRITICAL_ERROR, "Could not query config information in admin_weblog_config", "", __LINE__, __FILE__, $sql); } else { while( $row = $db->sql_fetchrow($result) ) { $config_name = $row['config_name']; $config_value = $row['config_value']; $default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value; $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; if ($config_name == 'cookie_name') { $cookie_name = str_replace('.', '_', $new['cookie_name']); } if( isset($HTTP_POST_VARS['submit']) ) { $sql = "UPDATE " . WEBLOG_CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", $new[$config_name]) . "' WHERE config_name = '$config_name'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update weblog configuration for $config_name", "", __LINE__, __FILE__, $sql); } } } if( isset($HTTP_POST_VARS['submit']) ) { $message = $lang['Weblog_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_weblog_config'], "<a href=\"" . append_sid("admin_weblog_config.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } } $template->set_filenames(array( "body" => "admin/weblog_config_body.tpl") ); $enable_mod_yes = ( $new['enable_mod'] ) ? ' checked="checked"' : ''; $enable_mod_no = ( !$new['enable_mod'] ) ? ' checked="checked"' : ''; $condense_index_yes = ( $new['condense_index'] ) ? ' checked="checked"' : ''; $condense_index_no = ( !$new['condense_index'] ) ? ' checked="checked"' : ''; $censor_weblogs_yes = ( $new['censor_weblog'] ) ? ' checked="checked"' : ''; $censor_weblogs_no = ( !$new['censor_weblog'] ) ? ' checked="checked"' : ''; $require_auth_yes = ( $new['require_auth'] ) ? ' checked="checked"' : ''; $require_auth_no = ( !$new['require_auth'] ) ? ' checked="checked"' : ''; $index_list_by_username_yes = ( $new['index_list_by_username'] ) ? ' checked="checked"' : ''; $index_list_by_username_no = ( !$new['index_list_by_username'] ) ? ' checked="checked"' : ''; $pic_uploading_enabled_yes = ( $new['pic_upload_enabled'] ) ? ' checked="checked"' : ''; $pic_uploading_enabled_no = ( !$new['pic_upload_enabled'] ) ? ' checked="checked"' : ''; $use_default_faceplates_yes = ( $new['use_default_faceplates'] ) ? ' checked="checked"' : ''; $use_default_faceplates_no = ( !$new['use_default_faceplates'] ) ? ' checked="checked"' : ''; $num_weblogs = array(1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 100); $select_num_weblogs = '<select name="main_blogsperpage">'; for($i = 0; $i < count($num_weblogs); $i++) { $selected = ( $num_weblogs[$i] == $new['main_blogsperpage'] ) ? ' selected="selected"' : ''; $select_num_weblogs .= '<option value="' . $num_weblogs[$i] . '"' . $selected . '>' . $num_weblogs[$i] . '</option>'; } $select_num_weblogs .= '</select>'; $sort_method = array(SORT_NEWEST_ENTRIES, SORT_WEBLOG_NAME, SORT_NUM_ENTRIES, SORT_WEBLOG_START_DATE, SORT_WEBLOG_VIEWS); $sort_method_text = array($lang['Sort_newest_entries'], $lang['Sort_weblog_name'], $lang['Sort_num_entries'], $lang['Sort_weblog_start_date'], $lang['Sort_weblog_views']); $select_sort = '<select name="main_sorttype">'; for($i = 0; $i < count($sort_method); $i++) { $selected = ( $sort_method[$i] == $new['main_sorttype'] ) ? ' selected="selected"' : ''; $select_sort .= '<option value="' . $sort_method[$i] . '"' . $selected . '>' . $sort_method_text[$i] . '</option>'; } $select_sort .= '</select>'; $sort_order = array('desc', 'asc'); $sort_order_text = array($lang['Sort_Descending'], $lang['Sort_Ascending']); $select_asc_desc = '<select name="main_sortorder">'; for($i = 0; $i < count($sort_order); $i++) { $selected = ($sort_order[$i] == $new['main_sortorder'] ) ? ' selected="selected"' : ''; $select_asc_desc .= '<option value="' . $sort_order[$i] . '"' . $selected . '>' . $sort_order_text[$i] . '</option>'; } $select_asc_desc .= '</select>'; $select_auth = make_weblog_auth_select ( $new['default_auth'], 'default_auth' ); $select_reply_auth = make_weblog_auth_select ( $new['default_reply_auth'], 'default_reply_auth' ); // // Escape any quotes in the site description for proper display in the text // box on the admin page // $template->assign_vars(array( 'S_CONFIG_ACTION' => append_sid("admin_weblog_cfg.$phpEx"), 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_CONFIGURATION_TITLE' => $lang['Weblog_configuration'], 'L_CONFIGURATION_EXPLAIN' => $lang['Weblog_configuration_explain'], 'L_GENERAL_SETTINGS' => $lang['General_settings'], 'L_ENABLE_BLOG_MOD' => $lang['Enable_blog_mod'], 'L_INDEX_BLOGS_PER_PAGE' => $lang['Index_weblogs_per_page'], 'L_CONDENSE_INDEX' => $lang['Condense_index'], 'L_CONDENSE_INDEX_EXPLAIN' => $lang['Condense_index_explain'], 'L_CENSOR_WEBLOGS' => $lang['Censor_weblogs'], 'L_CENSOR_WEBLOGS_EXPLAIN' => $lang['Censor_weblogs_explain'], 'L_REQUIRE_AUTH' => $lang['Require_authentication'], 'L_REQUIRE_AUTH_EXPLAIN' => $lang['Require_authentication_explain'], 'L_DEFAULT_SETTINGS' => $lang['Default_settings'], 'L_DEFAULT_WEBLOG_NAME' => $lang['Default_weblog_name'], 'L_DEFAULT_WEBLOG_NAME_EXPLAIN' => $lang['Default_weblog_name_explain'], 'L_DEFAULT_WEBLOG_DESC' => $lang['Default_weblog_desc'], 'L_INDEX_SORT_TYPE' => $lang['Index_sort_type'], 'L_INDEX_SORT_ORDER' => $lang['Index_sort_order'], 'L_WEBLOG_AUTH_DEFAULT' => $lang['Default_accessibility'], 'L_WEBLOG_REPLY_AUTH_DEFAULT' => $lang['Default_reply_auth'], 'L_ENTRIES_PER_PAGE' => $lang['Default_entries_per_page'], 'L_POST_REPLY_TEXT' => $lang['Default_post_reply_text'], 'L_REPLIES_TEXT' => $lang['Default_replies_text'], 'L_INDEX_LIST_BY_USERNAME' => $lang['Index_list_by_username'], 'L_BY_WEBLOG_NAME' => $lang['By_weblog_name'], 'L_BY_OWNER_NAME' => $lang['By_owner_name'], 'L_SHOUTBOX_FLOOD_DELAY' => $lang['Shoutbox_flood_delay'], 'L_PICTURE_UPLOADING' => $lang['Picture_uploading'], 'L_PICTURE_UPLOAD_ENABLED' => $lang['Picture_uploading_enabled'], 'L_MAXIMUM_PIC_SIZE' => $lang['Maximum_pic_size'], 'L_MAX_PIC_WIDTH' => $lang['Maximum_pic_width'], 'L_MAX_PIC_HEIGHT' => $lang['Maximum_pic_height'], 'L_USE_DEFAULT_FACEPLATES' => $lang['Use_default_faceplates'], 'L_USE_DEFAULT_FACEPLATES_EXPLAIN' => $lang['Use_default_faceplates_explain'], //for mx_blogs to find the pages 'L_WEBLOG_CONFIG_PAGE' => $lang['mx_weblog_config_page'], 'L_WEBLOG_LISTS_PAGE' => $lang['mx_weblog_list'], 'SHOUTBOX_FLOOD_DELAY' => intval($new['shoutbox_flood_delay']), 'BLOGS_PER_PAGE_SELECT' => $select_num_weblogs, 'INDEX_SORT_TYPE_SELECT' => $select_sort, 'INDEX_SORT_ORDER_SELECT' => $select_asc_desc, 'WEBLOG_AUTH_SELECT' => $select_auth, 'WEBLOG_REPLY_AUTH_SELECT' => $select_reply_auth, 'DEFAULT_WEBLOG_NAME' => $weblog_config['default_name'], 'DEFAULT_WEBLOG_DESC' => $weblog_config['default_desc'], 'ENTRIES_PER_PAGE' => $weblog_config['default_entries_perpage'], 'POST_REPLY_TEXT' => $weblog_config['default_post_reply_text'], 'REPLIES_TEXT' => $weblog_config['default_replies_text'], 'MAX_PIC_SIZE' => $weblog_config['max_pic_size'], 'MAX_PIC_HEIGHT' => $weblog_config['max_pic_height'], 'MAX_PIC_WIDTH' => $weblog_config['max_pic_width'], 'WEBLOG_CONFIG_PAGE' => $weblog_config['mx_weblog_config_page'], 'WEBLOG_LIST_PAGE' => $weblog_config['mx_weblog_list'], 'S_USE_DEFAULT_FACEPLATES_YES' => $use_default_faceplates_yes, 'S_USE_DEFAULT_FACEPLATES_NO' => $use_default_faceplates_no, 'S_PIC_UPLOAD_ENABLED_YES' => $pic_uploading_enabled_yes, 'S_PIC_UPLOAD_ENABLED_NO' => $pic_uploading_enabled_no, 'S_ENABLE_BLOG_MOD_YES' => $enable_mod_yes, 'S_ENABLE_BLOG_MOD_NO' => $enable_mod_no, 'S_CONDENSE_INDEX_YES' => $condense_index_yes, 'S_CONDENSE_INDEX_NO' => $condense_index_no, 'S_CENSOR_WEBLOGS_YES' => $censor_weblogs_yes, 'S_CENSOR_WEBLOGS_NO' => $censor_weblogs_no, 'S_INDEX_LIST_BY_USERNAME_YES' => $index_list_by_username_yes, 'S_INDEX_LIST_BY_USERNAME_NO' => $index_list_by_username_no, 'S_REQUIRE_AUTH_YES' => $require_auth_yes, 'S_REQUIRE_AUTH_NO' => $require_auth_no) ); $template->pparse("body"); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- NEW FILE: admin_weblog_mood.php --- <?php /*************************************************************************** * admin_weblog_mood.php * --------------------------- * begin : Monday, September 5, 2004 * copyright : (C) 2005 Hyperion * email : vi...@ho... * * $Id: admin_weblog_mood.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL', 1); // // First we do the setmodules stuff for the admin cp. // if( !empty($setmodules) ) { $filename = basename(__FILE__); $module['Blog_admin']['Mood_choices'] = 'modules/mx_blogs/admin/' . $filename; return; } $mx_root_path = "./../../../"; $module_root_path = "./../"; //include($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'admin/pagestart.' . $phpEx); include($module_root_path . 'includes/weblogs_constants.'.$phpEx); include($module_root_path . 'includes/weblogs_common.'.$phpEx); include($module_root_path . 'language/lang_' . $use_lang . '/lang_weblog_admin.' . $phpEx); // // Get the moods data // $sql = "SELECT * FROM " . WEBLOG_MOODS_TABLE . " ORDER BY mood_text"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain mood data from database", "", __LINE__, __FILE__, $sql); } $mood_data = $db->sql_fetchrowset($result); $sql = "SELECT * FROM " . WEBLOG_MOOD_SETS_TABLE . " ORDER BY set_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain mood set data from database", "", __LINE__, __FILE__, $sql); } $mood_set_data = $db->sql_fetchrowset($result); // // Check to see what mode we should operate in. // if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ""; } // // Read a listing of uploaded mood icons for use in the add or edit smliey code... // $dir = @opendir($module_root_path . 'images/weblogs/'); while($file = @readdir($dir)) { if( !@is_dir(phpbb_realpath($module_root_path . 'images/weblogs/' . $file)) ) { $img_size = @getimagesize($module_root_path . 'images/weblogs/' . $file); if( $img_size[0] && $img_size[1] ) { $mood_images[] = $file; } } } @closedir($dir); if ( isset($HTTP_POST_VARS['id']) ) { $id = intval($HTTP_POST_VARS['id']); } else if ( isset($HTTP_GET_VARS['id']) ) { $id = intval($HTTP_GET_VARS['id']); } // // Select main mode // switch( $mode ) { case 'addmood': // // Admin has selected to add a mood. // $template->set_filenames(array( "body" => "admin/weblog_mood_edit_body.tpl") ); $filename_list = ""; for( $i = 0; $i < count($mood_images); $i++ ) { $filename_list .= '<option value="' . $mood_images[$i] . '">' . $mood_images[$i] . '</option>'; } $s_hidden_fields = '<input type="hidden" name="mode" value="savenewmood" /><input type="hidden" name="id" value="' . $id . '" />'; $template->assign_vars(array( "L_MOOD_TITLE" => $lang['Weblog_mood_title'], "L_MOOD_CONFIG" => $lang['Weblog_mood_config'], "L_MOOD_EXPLAIN" => $lang['Weblog_mood_explain'], "L_MOOD_URL" => $lang['Weblog_mood_url'], "L_MOOD_MOOD" => $lang['Weblog_mood_mood'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "MOOD_IMG" => $module_root_path . 'images/weblogs/' . $mood_images[0], "S_MOOD_ACTION" => append_sid("admin_weblog_mood.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); break; case 'addset': // // Admin has selected to add a new set. // $template->set_filenames(array( "body" => "admin/weblog_mood_set_edit_body.tpl") ); $s_hidden_fields = '<input type="hidden" name="mode" value="savenewset" />'; $template->assign_vars(array( "L_MOOD_TITLE" => $lang['Weblog_mood_set_title'], "L_MOOD_CONFIG" => $lang['Weblog_mood_set_config'], "L_MOOD_EXPLAIN" => $lang['Weblog_mood_set_explain'], "L_MOOD_SET" => $lang['Mood_set'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "MOOD_SET" => '', "S_MOOD_SET_ACTION" => append_sid("admin_weblog_mood.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields) ); $template->pparse("body"); break; case 'deletemood': // // Admin has selected to delete a mood. // $mood_id = $id; $sql = "DELETE FROM " . WEBLOG_MOODS_TABLE . " WHERE mood_id = " . $mood_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete mood", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_mood_del_success'] . "<br /><br />" . sprintf($lang['Click_return_moodadmin'], "<a href=\"" . append_sid("admin_weblog_mood.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); break; case 'deleteset': // // Admin has selected to delete an entire mood set. // $set_id = $id; // Find all moods under this set $sql = "DELETE FROM " . WEBLOG_MOODS_TABLE . " WHERE mood_set = $set_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete moods under this mood set", "", __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . WEBLOG_MOOD_SETS_TABLE . " WHERE set_id = $set_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete moods under this mood set", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_mood_set_del_success'] . "<br /><br />" . sprintf($lang['Click_return_moodadmin'], "<a href=\"" . append_sid("admin_weblog_mood.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); break; case 'editmood': // // Admin has selected to edit a mood. // $mood_id = $id; $sql = "SELECT * FROM " . WEBLOG_MOODS_TABLE . " WHERE mood_id = " . $mood_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain mood information', "", __LINE__, __FILE__, $sql); } $mood_data = $db->sql_fetchrow($result); $filename_list = ""; for( $i = 0; $i < count($mood_images); $i++ ) { if( $mood_images[$i] == $mood_data['mood_url'] ) { $mood_selected = "selected=\"selected\""; $mood_edit_img = $mood_images[$i]; } else { $mood_selected = ""; } $filename_list .= '<option value="' . $mood_images[$i] . '"' . $mood_selected . '>' . $mood_images[$i] . '</option>'; } $template->set_filenames(array( "body" => "admin/weblog_mood_edit_body.tpl") ); $s_hidden_fields = '<input type="hidden" name="mode" value="savemood" /><input type="hidden" name="mood_id" value="' . $mood_data['mood_id'] . '" />'; $template->assign_vars(array( "L_MOOD_TITLE" => $lang['Weblog_mood_title'], "L_MOOD_CONFIG" => $lang['Weblog_mood_config'], "L_MOOD_EXPLAIN" => $lang['Weblog_mood_explain'], "L_MOOD_URL" => $lang['Weblog_mood_url'], "L_MOOD_MOOD" => $lang['Weblog_mood_mood'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "MOOD_IMG" => $module_root_path . 'images/weblogs/' . $mood_edit_img, "MOOD_MOOD" => $mood_data['mood_text'], "S_MOOD_ACTION" => append_sid("admin_weblog_mood.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); break; case 'editset': // // Admin has selected to edit a mood set. // $set_id = $id; $sql = "SELECT * FROM " . WEBLOG_MOOD_SETS_TABLE . " WHERE set_id = " . $set_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain mood set information', "", __LINE__, __FILE__, $sql); } $mood_set_data = $db->sql_fetchrow($result); $template->set_filenames(array( "body" => "admin/weblog_mood_set_edit_body.tpl") ); $s_hidden_fields = '<input type="hidden" name="mode" value="saveset" /><input type="hidden" name="id" value="' . $mood_set_data['set_id'] . '" />'; $template->assign_vars(array( "L_MOOD_TITLE" => $lang['Weblog_mood_set_title'], "L_MOOD_CONFIG" => $lang['Weblog_mood_set_config'], "L_MOOD_EXPLAIN" => $lang['Weblog_mood_set_explain'], "L_MOOD_SET" => $lang['Mood_set'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "MOOD_SET" => $mood_set_data['set_name'], "S_MOOD_SET_ACTION" => append_sid("admin_weblog_mood.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FILENAME_OPTIONS" => $filename_list) ); $template->pparse("body"); break; case 'savemood': // // Admin has submitted changes while editing a mood. // // // Get the submitted data, being careful to ensure that we only // accept the data we are looking for. // $mood_url = ( isset($HTTP_POST_VARS['mood_url']) ) ? trim($HTTP_POST_VARS['mood_url']) : trim($HTTP_GET_VARS['mood_url']); $mood_mood = ( isset($HTTP_POST_VARS['mood_mood']) ) ? trim($HTTP_POST_VARS['mood_mood']) : trim($HTTP_GET_VARS['mood_mood']); $mood_id = ( isset($HTTP_POST_VARS['mood_id']) ) ? intval($HTTP_POST_VARS['mood_id']) : intval($HTTP_GET_VARS['mood_id']); // If no code was entered complain ... if ( $mood_url == '') { mx_message_die(MESSAGE, $lang['Fields_empty']); } // // Proceed with updating the mood table. // $sql = "UPDATE " . WEBLOG_MOODS_TABLE . " SET mood_url = '" . str_replace("\'", "''", $mood_url) . "', mood_text = '" . str_replace("\'", "''", $mood_mood) . "' WHERE mood_id = $mood_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't update mood info", "", __LINE__, __FILE__, $sql); } $message = $lang['Weblog_mood_edit_success'] . "<br /><br... [truncated message content] |
|
From: mhewitson <mhe...@us...> - 2007-06-07 22:01:35
|
Update of /cvsroot/mxbb/mx_blogs/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv721/mx_blogs/images Added Files: xml.gif Log Message: mx_blogs, Initial checkin --- NEW FILE: xml.gif --- (This appears to be a binary file; contents omitted.) |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:51:46
|
Update of /cvsroot/mxbb/mx_blogs/images/weblogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27331/weblogs Log Message: Directory /cvsroot/mxbb/mx_blogs/images/weblogs added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:51:25
|
Update of /cvsroot/mxbb/mx_blogs/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27065/images Log Message: Directory /cvsroot/mxbb/mx_blogs/images added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:50:11
|
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25333/lang_english Log Message: Directory /cvsroot/mxbb/mx_blogs/templates/subSilver/images/lang_english added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:49:58
|
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25210/images Log Message: Directory /cvsroot/mxbb/mx_blogs/templates/subSilver/images added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:49:34
|
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24857/admin Log Message: Directory /cvsroot/mxbb/mx_blogs/templates/subSilver/admin added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:49:34
|
Update of /cvsroot/mxbb/mx_blogs/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24646/subSilver Log Message: Directory /cvsroot/mxbb/mx_blogs/templates/subSilver added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:49:14
|
Update of /cvsroot/mxbb/mx_blogs/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24397/templates Log Message: Directory /cvsroot/mxbb/mx_blogs/templates added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:49:08
|
Update of /cvsroot/mxbb/mx_blogs/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23652/admin Log Message: Directory /cvsroot/mxbb/mx_blogs/admin added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:48:28
|
Update of /cvsroot/mxbb/mx_blogs/Installation In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23432/Installation Log Message: Directory /cvsroot/mxbb/mx_blogs/Installation added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:48:04
|
Update of /cvsroot/mxbb/mx_blogs/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22879/includes Log Message: Directory /cvsroot/mxbb/mx_blogs/includes added to the repository |