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
|
Update of /cvsroot/mxbb/mx_smartor/templates/_core/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23033/templates/_core/admin Added Files: Tag: core28x album_admin_body_ext.tpl album_admin_otf.tpl album_auth_body.tpl album_cat_body.tpl album_cat_body_debug.tpl album_cat_delete_body.tpl album_cat_new_body.tpl album_cat_select_body.tpl album_clown_sp_body.tpl album_config_body.tpl album_config_clearcache_body.tpl album_config_personal_body.tpl album_personal_body.tpl album_personal_cat_body.tpl album_personal_cat_delete_body.tpl album_personal_cat_new_body.tpl index.htm Log Message: upgrade to 2.0.1 gold --- NEW FILE: album_personal_cat_new_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- function checkCategoryID() { if ({CATEGORY_ID} == document.acp.cat_parent_id.value && {CATEGORY_ID} != {ROOT_CATEGORY_ID}) { alert("{L_NO_SELF_REFERING}"); return false; } else { switch (document.acp.cat_parent_id.value) { case '{ALBUM_ROOT_CATEGORY}': case '{ALBUM_PUBLIC_GALLERY}': case '{ALBUM_USERS_GALLERY}': case '{ALBUM_JUMPBOX_SEPERATOR}': alert("{L_NO_VALID_CAT_SELECTED}"); return false; default: } } } // --> </script> <form name="acp" action="{S_ALBUM_ACTION}" method="post" onSubmit="return checkCategoryID()"> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td class="nav" width="100%"> <span class="nav"> <a href="{U_PORTAL}" class="nav">{L_HOME}</a> {NAV_SEP} <a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_ALBUM}" class="nav">{L_ALBUM}</a> {NAV_SEP} <a href="{U_PERSONAL_ALBUM}" class="nav">{L_PERSONAL_ALBUM}</a> {NAV_SEP} <a href="{U_PERSONAL_CAT_ADMIN}" class="nav">{L_PERSONAL_CAT_ADMIN}</a> </span> </td> </tr> </table> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center" width="100%"> <tr> <th colspan="2" class="thHead">{L_PERSONAL_CAT_ADMIN}</th> </tr> <tr> <td class="row1" colspan="2"><br /> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_PANEL_TITLE}</th> </tr> <tr> <td class="row1" width="20%"><span class="gen">{L_CAT_TITLE}:</span></td> <td class="row2"><input {READ_ONLY} name="cat_title" type="text" class="post" size="35" value="{S_CAT_TITLE}" /></td> </tr> <tr> <td valign="top" nowrap="nowrap" class="row1"><span class="gen">{L_CAT_DESC}: </span></td> <td class="row2"><textarea {READ_ONLY} name="cat_desc" class="post" cols="50" rows="5">{S_CAT_DESC}</textarea></td> </tr> <!-- Album Hierarchy - START --> <tr> <td valign="top" nowrap="nowrap" class="row1"><span class="gen">{L_CAT_PARENT_TITLE}: </span></td> <td class="row2"><select {DISABLED} name="cat_parent_id">{S_CAT_PARENT_OPTIONS}</select></td> </tr> <!-- Album Hierarchy - STOP --> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> </tr> <tr> <td class="row1"><span class="gen">{L_VIEW_LEVEL}:</span></td> <td class="row2"><select name="cat_view_level"><option {VIEW_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {VIEW_REG} value="{S_USER}">{L_REG}</option><option {VIEW_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option> <!-- BEGIN acp --> <option {VIEW_MOD} value="{S_MOD}">{L_MOD}</option><option {VIEW_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select> <!-- END acp --> </td> </tr> <tr> <td class="row1"><span class="gen">{L_UPLOAD_LEVEL}:</span></td> <td class="row2"><select name="cat_upload_level"><option {UPLOAD_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {UPLOAD_REG} value="{S_USER}">{L_REG}</option><option {UPLOAD_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option> <!-- BEGIN acp --> <option {UPLOAD_MOD} value="{S_MOD}">{L_MOD}</option><option {UPLOAD_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select> <!-- END acp --> </td> </tr> <tr> <td class="row1"><span class="gen">{L_RATE_LEVEL}:</span></td> <td class="row2"><select name="cat_rate_level"><option {RATE_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {RATE_REG} value="{S_USER}">{L_REG}</option><option {RATE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option> <!-- BEGIN acp --> <option {RATE_MOD} value="{S_MOD}">{L_MOD}</option><option {RATE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select> <!-- END acp --> </td> </tr> <tr> <td class="row1"><span class="gen">{L_COMMENT_LEVEL}:</span></td> <td class="row2"><span class="gen"><select name="cat_comment_level"><option {COMMENT_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {COMMENT_REG} value="{S_USER}">{L_REG}</option><option {COMMENT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option> <!-- BEGIN acp --> <option {COMMENT_MOD} value="{S_MOD}">{L_MOD}</option><option {COMMENT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></span> <!-- END acp --> </td> </tr> <!-- BEGIN acp --> <tr> <td class="row1"><span class="gen">{L_EDIT_LEVEL}:</span></td> <td class="row2"><select name="cat_edit_level"><option {EDIT_REG} value="{S_USER}">{L_REG}</option><option {EDIT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option> <option {EDIT_MOD} value="{S_MOD}">{L_MOD}</option><option {EDIT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_DELETE_LEVEL}:</span></td> <td class="row2"><select name="cat_delete_level"><option {DELETE_REG} value="{S_USER}">{L_REG}</option><option {DELETE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {DELETE_MOD} value="{S_MOD}">{L_MOD}</option><option {DELETE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_PICS_APPROVAL}:</span></td> <td class="row2"><select name="cat_approval"><option {APPROVAL_DISABLED} value="{S_USER}">{L_DISABLED}</option><option {APPROVAL_MOD} value="{S_MOD}">{L_MOD}</option><option {APPROVAL_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <!-- END acp --> <tr> <td class="catBottom" align="center" height="28" colspan="2"><input type="hidden" value="{S_MODE}" name="mode" /><input name="submit" type="submit" value="{L_PANEL_TITLE}" class="liteoption" /></td> </tr> </table> </td> </tr> </table> </form> <br /> --- NEW FILE: album_cat_body_debug.tpl --- <h1>{L_ALBUM_CAT_TITLE}</h1> <p>{L_ALBUM_CAT_EXPLAIN}</p> <form method="post" action="{S_ALBUM_ACTION}"> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td><span class="nav"><a href="{S_ALBUM_ACTION}" class="nav">{L_ALBUM_INDEX}</a></span></td> </tr> </table> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thLeft" colspan="{HEADER_INC_SPAN}" width="75%%">{L_ALBUM_TITLE} '{HEADER_INC_SPAN}'</th> <th class="thRight" colspan="3" width="25%">{L_ALBUM_ACTION} '3'</th> </tr> <!-- BEGIN catrow --> <!-- BEGIN cathead --> <tr> <!-- BEGIN inc --> <td class="row2" rowspan="{catrow.cathead.inc.ROWSPAN}" width="46"> '{catrow.cathead.inc.ROWSPAN}'</td> <!-- END inc --> <td class="{catrow.cathead.CLASS_CATLEFT}" colspan="{catrow.cathead.INC_SPAN}" {catrow.cathead.WIDTH}>'{catrow.cathead.INC_SPAN}':'{catrow.cathead.WIDTH}'<span class="cattitle"><b><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></b></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle">'1'<span class="gen"><a href="{catrow.cathead.U_CAT_EDIT}" class="gen">{L_EDIT}</a></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle">'1'<span class="gen"><a href="{catrow.cathead.U_CAT_DELETE}" class="gen">{L_DELETE}</a></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle" nowrap="nowrap">'1'<span class="gen"><a href="{catrow.cathead.U_CAT_MOVE_UP}" class="gen">{L_MOVE_UP}</a> <a href="{catrow.cathead.U_CAT_MOVE_DOWN}" class="gen">{L_MOVE_DOWN}</a></span></td> </tr> <!-- END cathead --> <!-- BEGIN cattitle --> <tr> <td class="row3" colspan="{catrow.cattitle.INC_SPAN_ALL}">'{catrow.cattitle.INC_SPAN_ALL}'<span class="gensmall">{catrow.cattitle.CAT_DESCRIPTION}</span></td> </tr> <!-- END cattitle --> <!-- BEGIN catfoot --> <tr> <!-- BEGIN inc --> <td class="row2" width="46"> </td> <!-- END inc --> <td colspan="{catrow.catfoot.INC_SPAN_ALL}" class="row2" nowrap="nowrap">'{catrow.catfoot.INC_SPAN_ALL}' <input class="post" type="text" name="{catrow.catfoot.S_ADD_NAME}" /> <input type="submit" class="liteoption" name="{catrow.catfoot.S_ADD_CAT_SUBMIT}" value="{L_CREATE_CATEGORY}" /> </td> </tr> <tr> <!-- BEGIN inc --> <td class="row2" width="46"> </td> <!-- END inc --> <td colspan="{catrow.catfoot.INC_SPAN_ALL}" height="1" class="spaceRow">'{catrow.catfoot.INC_SPAN_ALL}' </td> </tr> <!-- END catfoot --> <!-- END catrow --> <!-- BEGIN switch_board_footer --> <tr> <td colspan="{INC_SPAN_ALL}" class="catBottom">'{INC_SPAN_ALL}' <input class="post" type="text" name="name[0]" /> <input type="submit" class="liteoption" name="addcategory[0]" value="{L_CREATE_CATEGORY}" /> </td> </tr> <!-- END switch_board_footer --> </table> <input type="hidden" value="new" name="mode" /> </form> --- NEW FILE: album_personal_cat_body.tpl --- <!-- Album Hierarchy - START --> <form method="post" name="acp" action="{S_ALBUM_ACTION}"> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td class="nav" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> {ALBUM_NAVIGATION_ARROW} <a href="{U_ALBUM}" class="nav">{L_ALBUM}</a> {ALBUM_NAVIGATION_ARROW} <a href="{U_PERSONAL_ALBUM}" class="nav">{L_PERSONAL_ALBUM}</a> {ALBUM_NAVIGATION_ARROW} <a href="{U_PERSONAL_CAT_ADMIN}" class="nav">{L_PERSONAL_CAT_ADMIN}</a></span></td> </tr> </table> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center" width="100%"> <tr> <th colspan="2" class="thHead">{L_PERSONAL_CAT_ADMIN}</th> </tr> <tr> <td class="row1" colspan="2"><br /> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thLeft" colspan="{HEADER_INC_SPAN}" width="75%%">{L_ALBUM_TITLE}</th> <th class="thRight" colspan="3" width="25%">{L_ALBUM_ACTION}</th> </tr> <!-- BEGIN catrow --> <!-- BEGIN cathead --> <tr> <!-- BEGIN inc --> <td class="row2" rowspan="{catrow.cathead.inc.ROWSPAN}" width="46"> </td> <!-- END inc --> <td class="{catrow.cathead.CLASS_CATLEFT}" colspan="{catrow.cathead.INC_SPAN}" {catrow.cathead.WIDTH}><span class="cattitle"><b><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></b></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle"><span class="gen"><a href="{catrow.cathead.U_CAT_EDIT}" class="gen">{catrow.cathead.L_EDIT}</a></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle"><span class="gen"><a href="{catrow.cathead.U_CAT_DELETE}" class="gen">{catrow.cathead.L_DELETE}</a></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{catrow.cathead.U_CAT_MOVE_UP}" class="gen">{catrow.cathead.L_MOVE_UP}</a> <a href="{catrow.cathead.U_CAT_MOVE_DOWN}" class="gen">{catrow.cathead.L_MOVE_DOWN}</a></span></td> </tr> <!-- END cathead --> <!-- BEGIN cattitle --> <tr> <td class="row3" colspan="{catrow.cattitle.INC_SPAN_ALL}"><span class="gensmall">{catrow.cattitle.CAT_DESCRIPTION}</span></td> </tr> <!-- END cattitle --> <!-- BEGIN catfoot --> <tr> <!-- BEGIN inc --> <td class="row2" width="46"> </td> <!-- END inc --> <td colspan="{catrow.catfoot.INC_SPAN_ALL}" class="row2" nowrap="nowrap"> <input class="post" type="text" name="{catrow.catfoot.S_ADD_NAME}" /> <input type="submit" {DISABLE_CREATION} class="liteoption" name="{catrow.catfoot.S_ADD_CAT_SUBMIT}" value="{L_CREATE_CATEGORY}" /> </td> </tr> <tr> <!-- BEGIN inc --> <td class="row2" width="46"> </td> <!-- END inc --> <td colspan="{catrow.catfoot.INC_SPAN_ALL}" height="1" class="spaceRow"> </td> </tr> <!-- END catfoot --> <!-- END catrow --> <!-- BEGIN switch_board_footer --> <tr> <td colspan="{INC_SPAN_ALL}" class="catBottom"> <input class="post" type="text" name="name[0]" /> <input type="submit" {DISABLE_CREATION} class="liteoption" name="addcategory[0]" value="{L_CREATE_CATEGORY}" /> </td> </tr> <!-- END switch_board_footer --> </table> </td> </tr> </table> <input type="hidden" value="new" name="mode" /> </form> <!-- Album Hierarchy - STOP --> --- NEW FILE: album_config_clearcache_body.tpl --- <tr> <td class="row1" align="center" valign="top"> <table class="forumline" width="80%" align="center" cellpadding="1" cellspacing="1"> <tr> <th class="thHead" height="25" valign="middle">{MESSAGE_TITLE}</th> </tr> <tr> <td class="row1" align="center"><form action="{S_CONFIRM_ACTION}" method="post"><span class="gen"><br />{CLEARCACHE_TEXT}<br /><br />{S_HIDDEN_FIELDS}<input type="submit" name="confirm" value="{L_YES}" class="mainoption" /> <input type="submit" name="cancel" value="{L_NO}" class="liteoption" /></span></form></td> </tr> </table> </td> </tr> --- NEW FILE: album_cat_delete_body.tpl --- <h1>{L_CAT_DELETE}</h1> <p>{L_CAT_DELETE_EXPLAIN}</p> <form action="{S_ALBUM_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th colspan="2" class="thHead">{L_CAT_DELETE}</th> </tr> <tr> <td class="row1"><span class="gen">{L_CAT_TITLE}</span></td> <td class="row1"><span class="genmed">{S_CAT_TITLE}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MOVE_CONTENTS}</span></td> <td class="row1">{S_SELECT_TO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center"><input type="hidden" name="mode" value="delete" /><input type="submit" name="submit" value="{L_MOVE_DELETE}" class="mainoption" /></td> </tr> </table> </form> <br /> --- NEW FILE: album_auth_body.tpl --- <h1>{L_ALBUM_AUTH_TITLE}</h1> <p>{L_ALBUM_AUTH_EXPLAIN}</p> <form action="{S_ALBUM_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap">{L_GROUPS}</th> <th class="thTop" nowrap="nowrap">{L_VIEW}</th> <th class="thTop" nowrap="nowrap">{L_UPLOAD}</th> <th class="thTop" nowrap="nowrap">{L_RATE}</th> <th class="thTop" nowrap="nowrap">{L_COMMENT}</th> <th class="thTop" nowrap="nowrap">{L_EDIT}</th> <th class="thTop" nowrap="nowrap">{L_DELETE}</th> <th class="thCornerR" nowrap="nowrap">{L_IS_MODERATOR}</th> </tr> <!-- BEGIN grouprow --> <tr> <td class="row1" align="center" height="28"><span class="gen">{grouprow.GROUP_NAME}</span></td> <td class="row2" align="center"> <input name="view[]" type="checkbox" {grouprow.VIEW_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="upload[]" type="checkbox" {grouprow.UPLOAD_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="rate[]" type="checkbox" {grouprow.RATE_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="comment[]" type="checkbox" {grouprow.COMMENT_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="edit[]" type="checkbox" {grouprow.EDIT_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="delete[]" type="checkbox" {grouprow.DELETE_CHECKED} value="{grouprow.GROUP_ID}" /> </td> <td class="row2" align="center"> <input name="moderator[]" type="checkbox" {grouprow.MODERATOR_CHECKED} value="{grouprow.GROUP_ID}" /> </td> </tr> <!-- END grouprow --> <tr> <td class="cat" height="25" align="center" colspan="8"><input type="reset" value="{L_RESET}" class="liteoption" /> <input name="submit" type="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br /> --- NEW FILE: album_config_personal_body.tpl --- <h1>{L_ALBUM_PERSONAL_CONFIG}</h1> <p>{L_ALBUM_PERSONAL_CONFIG_EXPLAIN}</p> <form action="{S_ALBUM_PERSONAL_CONFIG_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_SHOW_ALL_PICS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_SHOW_ALL_PICS_ENABLED} name="show_all_in_personal_gallery" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_SHOW_ALL_PICS_DISABLED} name="show_all_in_personal_gallery" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_SHOW_SUBCATS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_SHOW_SUBCATS_ENABLED} name="personal_show_subcats_in_index" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_SHOW_SUBCATS_DISABLED} name="personal_show_subcats_in_index" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_GALLERY}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_GALLERY_USER} name="personal_gallery" value="{S_USER}" />{L_REG} <input onchange="setChange();" type="radio" {PERSONAL_GALLERY_PRIVATE} name="personal_gallery" value="{S_PRIVATE}" />{L_PRIVATE} <input onchange="setChange();" type="radio" {PERSONAL_GALLERY_ADMIN} name="personal_gallery" value="{S_ADMIN}" />{L_ADMIN}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ALBUM_PERSONAL_MODERATOR}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_MOD_ENABLED} name="personal_allow_gallery_mod" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_MOD_DISABLED} name="personal_allow_gallery_mod" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ALBUM_PERSONAL_PICS_APPROVAL}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_PICS_APPROVAL_DISABLED} name="personal_pics_approval" value="{S_USER}" />{L_NO} <input onchange="setChange();" type="radio" {PERSONAL_PICS_APPROVAL_MOD} name="personal_pics_approval" value="{S_MOD}" />{L_MOD} <input onchange="setChange();" type="radio" {PERSONAL_PICS_APPROVAL_ADMIN} name="personal_pics_approval" value="{S_ADMIN}" />{L_ADMIN} </span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_GALLERY_VIEW}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_GALLERY_VIEW_ALL} name="personal_gallery_view" value="{S_GUEST}" />{L_GUEST} <input onchange="setChange();" type="radio" {PERSONAL_GALLERY_VIEW_REG} name="personal_gallery_view" value="{S_USER}" />{L_REG} <input onchange="setChange();" type="radio" {PERSONAL_GALLERY_VIEW_PRIVATE} name="personal_gallery_view" value="{S_PRIVATE}" />{L_PRIVATE}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_GALLERY_LIMIT}</span></td> <td class="row2"><input onchange="setChange();" class="post" type="text" maxlength="5" size="5" name="personal_gallery_limit" value="{PERSONAL_GALLERY_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_SUB_GALLERY_LIMIT}</span></td> <td class="row2"><input onchange="setChange();" class="post" type="text" maxlength="5" size="5" name="personal_sub_category_limit" value="{PERSONAL_SUB_GALLERY_LIMIT}" /></td> </tr> <!-- <tr> <td class="row1"><span class="genmed">{L_PERSONAL_ALLOW_SUB_CATEGORY}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_SUBCAT_ENABLED} name="personal_allow_sub_categories" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_SUBCAT_DISABLED} name="personal_allow_sub_categories" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_SHOW_RECENT_IN_SUBCATS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_SHOW_RECENT_IN_SUBCATS_ENABLED} name="personal_show_recent_in_subcats" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_SHOW_RECENT_IN_SUBCATS_DISABLED} name="personal_show_recent_in_subcats" value="0" />{L_NO}</span></td> </tr> --> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED} name="personal_show_recent_instead_of_nopics" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED} name="personal_show_recent_instead_of_nopics" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_ALLOW_AVATARS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {PERSONAL_ALLOW_AVATARS_ENABLED} name="personal_allow_avatar_gallery" value="1" />{L_YES} <input onchange="setChange();" type="radio" {PERSONAL_ALLOW_AVATARS_DISABLED} name="personal_allow_avatar_gallery" value="0" />{L_NO}</span></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: album_admin_body_ext.tpl --- <table width="100%" align="center" cellspacing="1" cellpadding="2" border="0"> <tr> <td class="nav"> <span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_SEP} <a href="{U_MX_ALBUM}" class="nav">{L_ALBUM}</a> </span> </td> <td align="right"> </td> </tr> </table> <h1>{L_ALBUM_TITLE}</h1> <p>{L_ALBUM_EXPLAIN}</p> <form action="{S_FORUM_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_DEFAULT_PAGES_TITLE}<br /><span class="gensmall">{L_DEFAULT_PAGES_TITLE_EXPLAIN}</span></th> </tr> <tr> <td class="row1" width="50%">{L_ALBUM_INTEGRATION_ENABLED}<br /><span class="gensmall">{L_ALBUM_INTEGRATION_ENABLED_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="enable_integration" value="1" {ALBUM_INTEGRATION_ENABLED_YES} /><span class="gensmall">{L_ALBUM_INTEGRATION_ENABLED_YES} <input type="radio" name="enable_integration" value="0" {PHPBB_INTEGRATION_ENABLED_NO} /><span class="gensmall">{L_ALBUM_INTEGRATION_ENABLED_NO}</span></td> </tr> <tr> <td class="row1" width="50%">{L_ALBUM_INDEX}<br /><span class="gensmall">{L_ALBUM_EXPLAIN}</span></td> <td class="row2" width="50%">{ALBUM_INDEX}</td> </tr> <tr> <td class="cat" 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> --- NEW FILE: album_admin_otf.tpl --- <!-- BEGIN mooshow --> {JS_INCLUDE} <!-- END mooshow --> <table width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> <tr> <td class="nav"> <span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_SEP} <a href="{U_MX_ALBUM}" class="nav">{L_ALBUM}</a> </span> </td> <td align="right"> </td> </tr> </table> <form action="{S_ACTION}" method="post"> <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> <tr><th class="thHead" colspan="{S_COLSPAN}" height="25" valign="middle">{L_PIC_GALLERY}</th></tr> <tr> <td class="catBottom" align="center" valign="middle" colspan="{S_COLSPAN}" height="28"> <span class="genmed"> {L_CATEGORY}: {S_CATEGORY_SELECT} <input type="submit" class="liteoption" value="{L_GO}" name="pic_gallery" /> </span> </td> </tr> <!-- BEGIN mooshow --> <tr> <td class="row1" align="center" valign="middle" colspan="{S_COLSPAN}"> <div id="{SELECTED_CAT_REG}" class="mooshow"> this.speed=300; this.fadeSpeed=500; this.topNav='yes'; this.overlayNav='yes'; this.dropShadow='yes'; this.captions='yes'; this.border=20; this.copyright='yes'; this.IPTCinfo='yes' </div> </td> </tr> <!-- END mooshow --> <!-- BEGIN pic_row --> <tr> <!-- BEGIN pic_column --> <td class="row1" align="center" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';"> <table><tr><td><div class="picshadow"><div class="picframe"> <a href="{pic_row.pic_column.PIC_IMAGE}"><img src="{pic_row.pic_column.PIC_THUMB}" alt="{pic_row.pic_column.PIC_NAME}" title="{pic_row.pic_column.PIC_NAME}" border="0" /></a> </div></div></td></tr></table> <br /> <span class="genmed"><a href="javascript:void(0);" onClick="window.open('{pic_row.pic_column.PIC_IMAGE}','','scrollbars=yes,resizable=no,width=804,height=610')"><b>{pic_row.pic_column.PIC_NAME}</b></a></span> </td> <!-- END pic_column --> </tr> <tr> <!-- BEGIN pic_option_column --> <!-- <td class="row2" align="center"><input type="radio" name="pic_select" value="{pic_row.pic_option_column.S_OPTIONS_PIC}" /></td> --> <!-- END pic_option_column --> </tr> <!-- END pic_row --> <tr> <td class="catBottom" colspan="{S_COLSPAN}" align="center" height="28"> </td> </tr> </table> <!-- BEGIN upload_allowed --> <br /> <br /> <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> <tr><th class="thHead" height="25" valign="middle">{L_UPLOAD_PICS}</th></tr> <tr> <td class="row1" align="center"> <span class="genmed"> {SELECT_CAT} <input type="submit" class="liteoption" value="{L_GO}" name="pic_upload" /> </span> </td> </tr> </table> <!-- END upload_allowed --> </form> <br /> <!-- You must keep my copyright notice visible with its original content --> {ALBUM_COPYRIGHT} --- NEW FILE: album_cat_new_body.tpl --- <h1>{L_ALBUM_CAT_TITLE}</h1> <p>{L_ALBUM_CAT_EXPLAIN}</p> <form action="{S_ALBUM_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_PANEL_TITLE}</th> </tr> <tr> <td class="row1" width="20%"><span class="gen">{L_CAT_TITLE}:</span></td> <td class="row2"><input name="cat_title" type="text" class="post" size="35" value="{S_CAT_TITLE}" /></td> </tr> <tr> <td valign="top" nowrap="nowrap" class="row1"><span class="gen">{L_CAT_DESC}: </span></td> <td class="row2"><textarea name="cat_desc" class="post" cols="50" rows="5">{S_CAT_DESC}</textarea></td> </tr> <tr> <td class="row1" width="20%"> <span class="gen">{L_WATERMARK}:</span><br /> <span class="gensmall">{L_WATERMARK_EXPLAIN}</span> </td> <td class="row2"><input name="cat_wm" type="text" class="post" size="35" value="{S_CAT_WM}" /></td> </tr> <tr> <td valign="top" nowrap="nowrap" class="row1"><span class="gen">{L_CAT_PARENT_TITLE}: </span></td> <td class="row2"><select name="cat_parent_id">{S_CAT_PARENT_OPTIONS}</select></td> </tr> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> </tr> <tr> <td class="row1"><span class="gen">{L_VIEW_LEVEL}:</span></td> <td class="row2"><select name="cat_view_level"><option {VIEW_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {VIEW_REG} value="{S_USER}">{L_REG}</option><option {VIEW_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {VIEW_MOD} value="{S_MOD}">{L_MOD}</option><option {VIEW_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_UPLOAD_LEVEL}:</span></td> <td class="row2"><select name="cat_upload_level"><option {UPLOAD_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {UPLOAD_REG} value="{S_USER}">{L_REG}</option><option {UPLOAD_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {UPLOAD_MOD} value="{S_MOD}">{L_MOD}</option><option {UPLOAD_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_RATE_LEVEL}:</span></td> <td class="row2"><select name="cat_rate_level"><option {RATE_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {RATE_REG} value="{S_USER}">{L_REG}</option><option {RATE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {RATE_MOD} value="{S_MOD}">{L_MOD}</option><option {RATE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_COMMENT_LEVEL}:</span></td> <td class="row2"><span class="gen"><select name="cat_comment_level"><option {COMMENT_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {COMMENT_REG} value="{S_USER}">{L_REG}</option><option {COMMENT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {COMMENT_MOD} value="{S_MOD}">{L_MOD}</option><option {COMMENT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></span></td> </tr> <tr> <td class="row1"><span class="gen">{L_EDIT_LEVEL}:</span></td> <td class="row2"><select name="cat_edit_level"><option {EDIT_REG} value="{S_USER}">{L_REG}</option><option {EDIT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {EDIT_MOD} value="{S_MOD}">{L_MOD}</option><option {EDIT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_DELETE_LEVEL}:</span></td> <td class="row2"><select name="cat_delete_level"><option {DELETE_REG} value="{S_USER}">{L_REG}</option><option {DELETE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {DELETE_MOD} value="{S_MOD}">{L_MOD}</option><option {DELETE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="row1"><span class="gen">{L_PICS_APPROVAL}:</span></td> <td class="row2"><select name="cat_approval"><option {APPROVAL_DISABLED} value="{S_USER}">{L_DISABLED}</option><option {APPROVAL_MOD} value="{S_MOD}">{L_MOD}</option><option {APPROVAL_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> <td class="catBottom" align="center" height="28" colspan="2"><input type="hidden" value="{S_MODE}" name="mode" /><input name="submit" type="submit" value="{L_PANEL_TITLE}" class="liteoption" /></td> </tr> </table> </form> <br /> --- 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: album_personal_cat_delete_body.tpl --- <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td class="nav" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> {ALBUM_NAVIGATION_ARROW} <a href="{U_ALBUM}" class="nav">{L_ALBUM}</a> {ALBUM_NAVIGATION_ARROW} <a href="{U_PERSONAL_ALBUM}" class="nav">{L_PERSONAL_ALBUM}</a> {ALBUM_NAVIGATION_ARROW} <a href="{U_PERSONAL_CAT_ADMIN}" class="nav">{L_PERSONAL_CAT_ADMIN}</a></span></td> </tr> </table> <form action="{S_ALBUM_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center" width="100%"> <tr> <th colspan="2" class="thHead">{L_PERSONAL_CAT_ADMIN}</th> </tr> <tr> <td class="row1" colspan="2"><br /> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center" width="100%"> <tr> <th colspan="2" class="thHead">{L_CAT_DELETE}</th> </tr> <tr> <td class="row1" width="25%"><span class="gen">{L_CAT_TITLE}</span></td> <td class="row1"><span class="genmed">{S_CAT_TITLE}</span></td> </tr> <tr> <td class="row1" width="25%"><span class="genmed">{L_MOVE_CONTENTS}</span></td> <td class="row1">{S_SELECT_TO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center"><input type="hidden" name="mode" value="delete" /><input type="submit" name="submit" value="{L_MOVE_DELETE}" class="mainoption" /></td> </tr> </table> </td> </tr> </table> </form> <br /> --- NEW FILE: album_cat_select_body.tpl --- <h1>{L_ALBUM_AUTH_TITLE}</h1> <p>{L_ALBUM_AUTH_EXPLAIN}</p> <form action="{S_ALBUM_ACTION}" method="post"> <table width="50%" align="center" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" colspan="2" height="28">{L_SELECT_CAT}</th> </tr> <tr> <td class="row1" height="25"><select name="cat_id">{CAT_SELECT_TITLE}</select></td> <td class="row1" width="100%" align="center"><input name="submit" type="submit" value="{L_LOOK_UP_CAT}" class="liteoption" /></td> </tr> </table> </form> <br /> --- NEW FILE: album_config_body.tpl --- <h1>{L_ALBUM_CONFIG}</h1> <p>{L_ALBUM_CONFIG_EXPLAIN}</p> <form action="{S_ALBUM_CONFIG_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" colspan="2">{L_ALBUM_CONFIG}</th> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_PERSONAL_GALLERY_LINK}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED} name="show_personal_gallery_link" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_SHOW_PERSONAL_GALLERY_LINK_DISABLED} name="show_personal_gallery_link" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_SHOW_SUBCATS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_SHOW_SUBCATS_ENABLED} name="show_index_subcats" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_SHOW_SUBCATS_DISABLED} name="show_index_subcats" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_LINEBREAK_SUBCATS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_LINEBREAK_ENABLED} name="line_break_subcats" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_LINEBREAK_DISABLED} name="line_break_subcats" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_THUMB}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_THUMB_ENABLED} name="show_index_thumb" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_THUMB_DISABLED} name="show_index_thumb" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_TOTAL_PICS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_TOTAL_PICS_ENABLED} name="show_index_total_pics" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_TOTAL_PICS_DISABLED} name="show_index_total_pics" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_TOTAL_COMMENTS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_TOTAL_COMMENTS_ENABLED} name="show_index_total_comments" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_TOTAL_COMMENTS_DISABLED} name="show_index_total_comments" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_LAST_COMMENT}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_LAST_COMMENT_ENABLED} name="show_index_last_comment" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_LAST_COMMENT_DISABLED} name="show_index_last_comment" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_LAST_PIC}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_LAST_PIC_ENABLED} name="show_index_last_pic" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_LAST_PIC_DISABLED} name="show_index_last_pic" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_COMMENTS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_COMMENTS_ENABLED} name="show_index_comments" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_COMMENTS_DISABLED} name="show_index_comments" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INDEX_PICS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_PICS_ENABLED} name="show_index_pics" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_PICS_DISABLED} name="show_index_pics" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_NEW_PIC_CHECK_INTERVAL}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="text" class="post" maxlength="4" size="4" name="new_pic_check_interval" value="{NEW_PIC_CHECK_INTERVAL}" /> {L_NEW_PIC_CHECK_INTERVAL_DESC}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_NEW_PIC_CHECK_INTERVAL_LV}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_LAST_PIC_LV_ENABLED} name="show_index_last_pic_lv" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_LAST_PIC_LV_DISABLED} name="show_index_last_pic_lv" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ENABLE_SUPERCELLS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INDEX_SUPERCELLS_ENABLED} name="index_enable_supercells" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INDEX_SUPERCELLS_DISABLED} name="index_enable_supercells" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_OTF_LINK}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_OTF_LINK_ENABLED} name="show_otf_link" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_OTF_LINK_DISABLED} name="show_otf_link" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_ALL_PICS_LINK}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_ALL_PICS_LINK_ENABLED} name="show_all_pics_link" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_ALL_PICS_LINK_DISABLED} name="show_all_pics_link" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_PERSONAL_GALLERIES_LINK}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_PERSONAL_GALLERIES_LINK_ENABLED} name="show_personal_galleries_link" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_PERSONAL_GALLERIES_LINK_DISABLED} name="show_personal_galleries_link" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_LAST_COMMENTS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_LAST_COMMENTS_ENABLED} name="show_last_comments" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_LAST_COMMENTS_DISABLED} name="show_last_comments" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1" width="45%"><span class="genmed">{L_MAX_PICS}</span></td> <td class="row2"><input class="post" type="text" maxlength="9" size="9" name="max_pics" value="{MAX_PICS}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_USER_PICS_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="5" name="user_pics_limit" value="{USER_PICS_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MOD_PICS_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="5" name="mod_pics_limit" value="{MOD_PICS_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_FILE_SIZE}</span></td> <td class="row2"><input class="post" type="text" maxlength="12" size="12" name="max_file_size" value="{MAX_FILE_SIZE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_FILE_SIZE_RESAMPLING}</span></td> <td class="row2"><input onchange="setChange();" class="post" type="text" maxlength="12" size="12" name="max_file_size_resampling" value="{MAX_FILE_SIZE_RESAMPLING}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_DYNAMIC_PIC_RESAMPLING}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {DYNAMIC_PIC_RESAMPLING_ENABLED} name="dynamic_pic_resampling" value="1" />{L_YES} <input onchange="setChange();" type="radio" {DYNAMIC_PIC_RESAMPLING_DISABLED} name="dynamic_pic_resampling" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_WIDTH}</span></td> <td class="row2"><input class="post" type="text" maxlength="9" size="9" name="max_width" value="{MAX_WIDTH}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_HEIGHT}</span></td> <td class="row2"><input class="post" type="text" maxlength="9" size="9" name="max_height" value="{MAX_HEIGHT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_MAX_FILES_TO_UPLOAD}</span></td> <td class="row2"><input class="post" type="text" maxlength="2" size="2" name="max_files_to_upload" value="{MAX_FILES_TO_UPLOAD}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PIC_DESC_MAX_LENGTH}</span></td> <td class="row2"><input class="post" type="text" size="6" name="desc_length" value="{PIC_DESC_MAX_LENGTH}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PROPERCASE_TITLE}</span></td> <td class="row2"><span class="genmed"><input type="radio" {PROPERCASE_TITLE_ENABLED} name="propercase_pic_title" value="1" />{L_YES} <input type="radio" {PROPERCASE_TITLE_DISABLED} name="propercase_pic_title" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"> <span class="genmed">{L_SET_MEMORY}</span><br /> <span class="gensmall">{L_SET_MEMORY_EXPLAIN}</span> </td> <td class="row2"><input onchange="setChange();" class="post" type="text" name="set_memory" value="{SET_MEMORY}" size="3" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_GD_VERSION}</span></td> <td class="row2"><span class="genmed"><input type="radio" {NO_GD} name="gd_version" value="0" />{L_MANUAL_THUMBNAIL} <input type="radio" {GD_V1} name="gd_version" value="1" />GD1 <input type="radio" {GD_V2} name="gd_version" value="2" />GD2</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_JPG_ALLOWED}</span></td> <td class="row2"><span class="genmed"><input type="radio" {JPG_ENABLED} name="jpg_allowed" value="1" />{L_YES} <input type="radio" {JPG_DISABLED} name="jpg_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PNG_ALLOWED}</span></td> <td class="row2"><span class="genmed"><input type="radio" {PNG_ENABLED} name="png_allowed" value="1" />{L_YES} <input type="radio" {PNG_DISABLED} name="png_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_GIF_ALLOWED}</span></td> <td class="row2"><span class="genmed"><input type="radio" {GIF_ENABLED} name="gif_allowed" value="1" />{L_YES} <input type="radio" {GIF_DISABLED} name="gif_allowed" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_DOWNLOAD}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_DOWNLOAD_ALWAYS} name="show_download" value="2" />{L_ALWAYS} <input onchange="setChange();" type="radio" {SHOW_DOWNLOAD_ENABLED} name="show_download" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_DOWNLOAD_DISABLED} name="show_download" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_SLIDESHOW}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_SLIDESHOW_ENABLED} name="show_slideshow" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_SLIDESHOW_DISABLED} name="show_slideshow" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_SLIDESHOW_SCRIPT}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SLIDESHOW_SCRIPT_ENABLED} name="slideshow_script" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SLIDESHOW_SCRIPT_DISABLED} name="slideshow_script" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_PICS_NAV}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_PICS_NAV_ENABLED} name="show_pics_nav" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_PICS_NAV_DISABLED} name="show_pics_nav" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_INVERT_NAV_ARROWS}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {INVERT_NAV_ARROWS_ENABLED} name="invert_nav_arrows" value="1" />{L_YES} <input onchange="setChange();" type="radio" {INVERT_NAV_ARROWS_DISABLED} name="invert_nav_arrows" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_INLINE_COPYRIGHT}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_INLINE_COPYRIGHT_ENABLED} name="show_inline_copyright" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_INLINE_COPYRIGHT_DISABLED} name="show_inline_copyright" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ENABLE_NUFFIMAGE}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {NUFFIMAGE_ENABLED} name="enable_nuffimage" value="1" />{L_YES} <input onchange="setChange();" type="radio" {NUFFIMAGE_DISABLED} name="enable_nuffimage" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ENABLE_SEPIA_BW}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SEPIABW_ENABLED} name="enable_sepia_bw" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SEPIABW_DISABLED} name="enable_sepia_bw" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_EXIF}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_EXIF_ENABLED} name="show_exif" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_EXIF_DISABLED} name="show_exif" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ENABLE_BBCODE}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {BBCODE_ENABLED} name="album_bbcode" value="1" />{L_YES} <input onchange="setChange();" type="radio" {BBCODE_DISABLED} name="album_bbcode" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_HOTLINK_PREVENT}</span></td> <td class="row2"><span class="genmed"><input type="radio" {HOTLINK_PREVENT_ENABLED} name="hotlink_prevent" value="1" />{L_YES} <input type="radio" {HOTLINK_PREVENT_DISABLED} name="hotlink_prevent" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_HOTLINK_ALLOWED}</span></td> <td class="row2"><input class="post" type="text" size="40" name="hotlink_allowed" value="{HOTLINK_ALLOWED}" /></td> </tr> <tr> <th class="thHead" colspan="2">{L_THUMBNAIL_SETTINGS}</th> </tr> <tr> <td class="row1"><span class="genmed">{L_THUMBNAIL_CACHE}</span></td> <td class="row2"><span class="genmed"><input type="radio" {THUMBNAIL_CACHE_ENABLED} name="thumbnail_cache" value="1" />{L_YES} <input type="radio" {THUMBNAIL_CACHE_DISABLED} name="thumbnail_cache" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_THUMBNAIL_SIZE}</span></td> <td class="row2"><input class="post" type="text" maxlength="4" size="4" name="thumbnail_size" value="{THUMBNAIL_SIZE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_THUMBNAIL_QUALITY}</span></td> <td class="row2"><input class="post" type="text" maxlength="3" size="3" name="thumbnail_quality" value="{THUMBNAIL_QUALITY}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_ROWS_PER_PAGE}</span></td> <td class="row2"><input class="post" type="text" maxlength="2" size="2" name="rows_per_page" value="{ROWS_PER_PAGE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_COLS_PER_PAGE}</span></td> <td class="row2"><input class="post" type="text" maxlength="2" size="2" name="cols_per_page" value="{COLS_PER_PAGE}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_DEFAULT_SORT_METHOD}</span></td> <td class="row2"> <select name="sort_method"> <option {SORT_TIME} value='pic_time'>{L_TIME}</option> <option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option> <option {SORT_USERNAME} value='username'>{L_USERNAME}</option> <option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option> <option {SORT_RATING} value='rating'>{L_RATING}</option> <option {SORT_COMMENTS} value='comments'>{L_COMMENTS}</option> <option {SORT_NEW_COMMENT} value='new_comment'>{L_NEW_COMMENT}</option> </select> </td> </tr> <tr> <td class="row1"><span class="genmed">{L_DEFAULT_SORT_ORDER}</span></td> <td class="row2"> <select name="sort_order"> <option {SORT_ASC} value='ASC'>{L_ASC}</option> <option {SORT_DESC} value='DESC'>{L_DESC}</option> </select> </td> </tr> <tr> <td class="row1"><span class="genmed">{L_FULLPIC_POPUP}</span></td> <td class="row2"><span class="genmed"><input type="radio" {FULLPIC_POPUP_ENABLED} name="fullpic_popup" value="1" />{L_YES} <input type="radio" {FULLPIC_POPUP_DISABLED} name="fullpic_popup" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_IMG_NO_GD}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_IMG_NO_GD_ENABLED} name="show_img_no_gd" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_IMG_NO_GD_DISABLED} name="show_img_no_gd" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_GIF_MID_THUMB}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_GIF_MID_THUMB_ENABLED} name="show_gif_mid_thumb" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_GIF_MID_THUMB_DISABLED} name="show_gif_mid_thumb" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_SHOW_PIC_SIZE}</span></td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {SHOW_PIC_SIZE_ENABLED} name="show_pic_size_on_thumb" value="1" />{L_YES} <input onchange="setChange();" type="radio" {SHOW_PIC_SIZE_DISABLED} name="show_pic_size_on_thumb" value="0" />{L_NO}</span></td> </tr> <tr> <td class="row1"> <span class="genmed">{L_LB_PREVIEW}</span><br /> <span class="gensmall">{L_LB_PREVIEW_EXPLAIN}</span><br /> </td> <td class="row2"><span class="genmed"><input onchange="setChange();" type="radio" {LB_PREVIEW_ENABLED} name="lb_preview" value="1" />{L_YES} <input onchange="setChange();" type="radio" {LB_PREVIEW_DISABLED} name="lb_preview" value="0" />{L_NO}</span></td> </tr> <tr> <th class="thHead" colspan="2">{L_EXTRA_SETTINGS}</th> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_GALLERY}</span></td> <td class="row2"><span class="genmed"><input type="radio" {PERSONAL_GALLERY_USER} name="personal_gallery" value="{S_USER}" />{L_REG} <input type="radio" {PERSONAL_GALLERY_PRIVATE} name="personal_gallery" value="{S_PRIVATE}" />{L_PRIVATE} <input type="radio" {PERSONAL_GALLERY_ADMIN} name="personal_gallery" value="{S_ADMIN}" />{L_ADMIN}</span></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_GALLERY_LIMIT}</span></td> <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="personal_gallery_limit" value="{PERSONAL_GALLERY_LIMIT}" /></td> </tr> <tr> <td class="row1"><span class="genmed">{L_PERSONAL_GALLERY_VIEW}</span></td> <td class="row2"><span class="genmed"><input type="radio" {PERSONAL_GALLERY_VIEW_ALL} name="personal_gallery_view" value="{S_GUEST}" />{L_GUEST} <input type="radio" {PERSONAL_GALLERY_VIEW_REG} name="personal_gallery_view" value="{S_USER}" />{L_REG} <input type="radio" {PERSONAL_GALLERY_VIEW_PRIVATE} name="personal_gallery_view" value="{S_PRIVATE}" />{L_PRIVATE}</span></td> </tr> <!-- <tr> <td class="row1"><span class="genmed">{L_RATE_SYSTEM}</span></td> <td class="row2"><span class="genmed"><input type="radio" {RATE_ENABLED} name="rate" value="1" />{L_YES} <input type="radio" {RATE_DISABLED} name="rate" value="0" />{L_NO}</span></td> </tr> --> <tr> <td class="row1"><span class="genmed">{L_RATE_SCALE}</span></td> <td class="row2"><input class="post" type="text" name="rate_scale" value="{RATE_SCALE}" size="3" /></td> </tr> <!-- <tr> <td class="row1"><span class="genmed">{L_COMMENT_SYSTEM}</span></td> <td class="row2"><span class="genmed"><input type="radio" {COMMENT_ENABLED} name="comment" value="1" />{L_YES} <input type="radio" {COMMENT_DISABLED} name="comment" value="0" />{L_NO}</span></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: album_cat_body.tpl --- <h1>{L_ALBUM_CAT_TITLE}</h1> <p>{L_ALBUM_CAT_EXPLAIN}</p> <form method="post" action="{S_ALBUM_ACTION}"> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td><span class="nav"><a href="{S_ALBUM_ACTION}" class="nav">{L_ALBUM_INDEX}</a></span></td> </tr> </table> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thLeft" colspan="{HEADER_INC_SPAN}" width="75%">{L_ALBUM_TITLE}</th> <th class="thRight" colspan="3" width="25%">{L_ALBUM_ACTION}</th> </tr> <!-- BEGIN catrow --> <!-- BEGIN cathead --> <tr> <!-- BEGIN inc --> <td class="row2" rowspan="{catrow.cathead.inc.ROWSPAN}" width="46"> </td> <!-- END inc --> <td class="{catrow.cathead.CLASS_CATLEFT}" colspan="{catrow.cathead.INC_SPAN}" {catrow.cathead.WIDTH}><span class="cattitle"><b><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></b></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle"><span class="gen"><a href="{catrow.cathead.U_CAT_EDIT}" class="gen">{catrow.cathead.L_EDIT}</a></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle"><span class="gen"><a href="{catrow.cathead.U_CAT_DELETE}" class="gen">{catrow.cathead.L_DELETE}</a></span></td> <td class="{catrow.cathead.CLASS_CATMIDDLE}" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{catrow.cathead.U_CAT_MOVE_UP}" class="gen">{catrow.cathead.L_MOVE_UP}</a> <a href="{catrow.cathead.U_CAT_MOVE_DOWN}" class="gen">{catrow.cathead.L_MOVE_DOWN}</a></span></td> </tr> <!-- END cathead --> <!-- BEGIN cattitle --> <tr> <td class="row3" colspan="{catrow.cattitle.INC_SPAN_ALL}"><span class="gensmall">{catrow.cattitle.CAT_DESCRIPTION}</span></td> </tr> <!-- END cattitle --> <!-- BEGIN catfoot --> <tr> <!-- BEGIN inc --> <td class="row2" width="46"> </td> <!-- END inc --> <td colspan="{catrow.catfoot.INC_SPAN_ALL}" class="row2" nowrap="nowrap"> <input class="post" type="text" name="{catrow.catfoot.S_ADD_NAME}" /> <input type="submit" {DISABLE_CREATION} class="liteoption" name="{catrow.catfoot.S_ADD_CAT_SUBMIT}" value="{L_CREATE_CATEGORY}" /> </td> </tr> <tr> <!-- BEGIN inc --> <td class="row2" width="46"> </td> <!-- END inc --> <td colspan="{catrow.catfoot.INC_SPAN_ALL}" height="1" class="spaceRow"> </td> </tr> <!-- END catfoot --> <!-- END catrow --> <!-- BEGIN switch_board_footer --> <tr> <td colspan="{INC_SPAN_ALL}" class="catBottom"> <input class="post" type="text" name="name[0]" /> <input type="submit" {DISABLE_CREATION} class="liteoption" name="addcategory[0]" value="{L_CREATE_CATEGORY}" /> </td> </tr> <!-- END switch_board_footer --> </table> <input type="hidden" value="new" name="mode" /> </form> --- NEW FILE: album_personal_body.tpl --- <h1>{L_ALBUM_PERSONAL_TITLE}</h1> <p>{L_ALBUM_PERSONAL_EXPLAIN}</p> <form action="{S_ALBUM_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead" height="25" colspan="2">{L_GROUP_CONTROL}</th> </tr> <!-- BEGIN creation_grouprow --> <tr> <td class="row1" align="center" height="28"><span class="gen">{creation_grouprow.GROUP_NAME}</span></td> <td class="row2" align="center"><input name="private[]" type="checkbox" {creation_grouprow.PRIVATE_CHECKED} value="{creation_grouprow.GROUP_ID}" /></td> </tr> <!-- END creation_grouprow --> <tr> <td class="catHead" height="25" align="center" nowrap="nowrap" colspan="2"><input type="reset" value="{L_RESET}" class="liteoption" /> <input name="submit" type="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> <p>{L_ALBUM_AUTH_EXPLAIN}</p> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap">{L_GROUPS}</th> <th class="thTop" nowrap="nowrap">{L_VIEW}</th> <th class="thTop" nowrap="nowrap">{L_UPLOAD}</th> <th class="thTop" nowrap="nowrap">{L_RATE}</th> <th class="thTop" nowrap="nowrap">{L_COMMENT}</th> <th class="thTop" nowrap="nowrap">{L_EDIT}</th> <th class="thTop" nowrap="nowrap">{L_DELETE}</th> <th class="thCornerR" nowrap="nowrap">{L_IS_MODERATOR}</th> </tr> <!-- BEGIN grouprow --> <tr> <td class="row1" align="center" height="28"><span class="gen">{grouprow.GROUP_NAME}</span></td> <td class="row2" align="center"><input name="view[]" type="checkbox" {grouprow.VIEW_CHECKED} value="{grouprow.GROUP_ID}" /></td> <td class="row2" align="center"><input name="upload[]" type="checkbox" {grouprow.UPLOAD_CHECKED} value="{grouprow.GROUP_ID}" /></td> <td class="row2" align="center"><input name="rate[]" type="checkbox" {grouprow.RATE_CHECKED} value="{grouprow.GROUP_ID}" /></td> <td class="row2" align="center"><input name="comment[]" type="checkbox" {grouprow.COMMENT_CHECKED} value="{grouprow.GROUP_ID}" /></td> <td class="row2" align="center"><input name="edit[]" type="checkbox" {grouprow.EDIT_CHECKED} value="{grouprow.GROUP_ID}" /></td> <td class="row2" align="center"><input name="delete[]" type="checkbox" {grouprow.DELETE_CHECKED} value="{grouprow.GROUP_ID}" /></td> <td class="row2" align="center"><input name="moderator[]" type="checkbox" {grouprow.MODERATOR_CHECKED} value="{grouprow.GROUP_ID}" /></td> </tr> <!-- END grouprow --> <tr> <td class="catBottom" height="25" align="center" colspan="8"><input ... [truncated message content] |
Update of /cvsroot/mxbb/mx_smartor/album_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23033/album_mod/includes Added Files: Tag: core28x album_acp_functions.php album_bbcode.php album_constants.php album_exif_info.php album_functions.php album_hierarchy_auth.php album_hierarchy_debug.php album_hierarchy_functions.php album_hierarchy_sql.php album_image_class.php album_integration.php album_nuffimage_box.php clown_album_functions.php Log Message: upgrade to 2.0.1 gold --- NEW FILE: album_constants.php --- <?php /** * * @package Mx-Publisher Module - mx_smartor * @version $Id: album_constants.php,v 1.1.2.1 2008/03/12 22:34:25 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /*************************************************************************** * * MODIFICATION: * -inserted few extra session handlings * -inserted SP table constant * -inserted medium thumb path constant * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } // ------------------------------------------------------------------------- // Extend User Style with module lang and images // Usage: $mx_user->extend(LANG, IMAGES) // Switches: // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- $mx_user->extend(MX_LANG_NONE, MX_IMAGES); // Album Tables !defined('ALBUM_TABLE') ? define('ALBUM_TABLE', $mx_table_prefix.'smartor_album') : false; !defined('ALBUM_CAT_TABLE') ? define('ALBUM_CAT_TABLE', $mx_table_prefix.'smartor_album_cat') : false; !defined('ALBUM_CONFIG_TABLE') ? define('ALBUM_CONFIG_TABLE', $mx_table_prefix.'smartor_album_config') : false; !defined('ALBUM_COMMENT_TABLE') ? define('ALBUM_COMMENT_TABLE', $mx_table_prefix.'smartor_album_comment') : false; !defined('ALBUM_RATE_TABLE') ? define('ALBUM_RATE_TABLE', $mx_table_prefix.'smartor_album_rate') : false; !defined('ALBUM_SP_CONFIG_TABLE') ? define('ALBUM_SP_CONFIG_TABLE', $mx_table_prefix.'smartor_album_sp_config') : false; define('PAGE_ALBUM', -50); // for Session Handling define('PAGE_ALBUM_PERSONAL', -51); define('PAGE_ALBUM_PICTURE', -52); define('PAGE_ALBUM_SEARCH', -53); define('PERSONAL_GALLERY', 0); // pic_cat_id <- do NOT change this value define('ALBUM_NAV_ARROW',' » '); define('ALBUM_DATA_ALREADY_READ', -127); define('ALBUM_ROOT_CATEGORY', -1); define('ALBUM_PUBLIC_GALLERY', 0); // Special album jumpbox/selection values define('ALBUM_JUMPBOX_SEPERATOR', -99999900); define('ALBUM_JUMPBOX_DELETE', -99999901); define('ALBUM_JUMPBOX_USERS_GALLERY', -99999902); define('ALBUM_JUMPBOX_PUBLIC_GALLERY', -99999903); // Permission rights defined flags define('ALBUM_AUTH_VIEW', 1); define('ALBUM_AUTH_UPLOAD', 2); define('ALBUM_AUTH_CREATE_PERSONAL', 2); define('ALBUM_AUTH_RATE', 4); define('ALBUM_AUTH_COMMENT', 8); define('ALBUM_AUTH_EDIT', 16); define('ALBUM_AUTH_DELETE', 32); define('ALBUM_AUTH_MODERATOR', 64); define('ALBUM_AUTH_MANAGE_PERSONAL_CATEGORIES', 128); // Special 'predefined' combinations define('ALBUM_AUTH_ALL', 255); define('ALBUM_AUTH_VIEW_AND_UPLOAD', 3); // Used to indicate if you are going to read both public & personal album categories define('ALBUM_READ_ALL_CATEGORIES', 512); define('ALBUM_CREATE_CAT_ID_LIST', 1024); // Select/jumpbox defined flags define('ALBUM_SELECTBOX_INCLUDE_ALL', 1); define('ALBUM_SELECTBOX_INCLUDE_ROOT', 2); define('ALBUM_SELECTBOX_DELETING', 4); define('ALBUM_SELECTBOX_ALL', 7); // all three options define('ALBUM_VIEW_ALL', 'all'); define('ALBUM_VIEW_ALL_PICS', 'allpics'); define('ALBUM_VIEW_LIST', 'list'); define('ALBUM_VIEW_NORMAL', ''); define('ALBUM_LISTTYPE_PICTURES', 'pic'); define('ALBUM_LISTTYPE_COMMENTS', 'comment'); define('ALBUM_LISTTYPE_RATINGS', 'rating'); define('ALBUM_INCLUDE_PARENT_ID', true); define('ALBUM_EXCLUDE_PARENT_ID', false); // User Levels for Album system <- do NOT change these values define('ALBUM_ANONYMOUS', -1); define('ALBUM_GUEST', -1); define('ALBUM_USER', 0); define('ALBUM_ADMIN', 1); define('ALBUM_MOD', 2); define('ALBUM_PRIVATE', 3); !defined('PAGE_ALBUM') ? define('PAGE_ALBUM', -502) : false; //Redefine some GD constants !defined('IMAGETYPE_PNG') ? define('IMAGETYPE_PNG', 3) : false; !defined('IMAGETYPE_JPEG') ? define('IMAGETYPE_JPEG', 2) : false; !defined('IMAGETYPE_GIF') ? define('IMAGETYPE_GIF', 1) : false; !defined('IMG_PNG') ? define('IMG_PNG', IMAGETYPE_PNG) : false; !defined('IMG_JPG') ? define('IMG_JPG', IMAGETYPE_JPEG) : false; !defined('IMG_GIF') ? define('IMG_GIF', IMAGETYPE_GIF) : false; // Path (trailing slash required) define('ALBUM_UPLOAD_PATH', $module_root_path . 'upload/'); define('ALBUM_OTF_PATH', $module_root_path . 'upload/otf/'); define('ALBUM_JUPLOAD_PATH', $module_root_path . 'upload/jupload/'); define('ALBUM_CACHE_PATH', $module_root_path . 'upload/cache/'); define('ALBUM_MED_CACHE_PATH', $module_root_path . 'upload/med_cache/'); define('ALBUM_WM_CACHE_PATH', $module_root_path . 'upload/wm_cache/'); define('ALBUM_WM_FILE', $module_root_path . 'album_mod/mark_fap.png'); ?> --- NEW FILE: album_hierarchy_functions.php --- <?php /** * * @package Mx-Publisher Module - mx_smartor * @version $Id: album_hierarchy_functions.php,v 1.1.2.1 2008/03/12 22:34:26 orynider Exp $ * @copyright (c) 2003 [bla...@ya..., idl...@sl...] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * * some of the code was taken from phpbb forum (generate_smilies function) */ /*************************************************************************** * * This mod is strongly based on the Forum Hiearchy Category Mod by Ptirhiik * A lot of credit goes to Ptirhiik * And some small part of this code is copyrighted by Ptirhiik. * ***************************************************************************/ [...1727 lines suppressed...] 'LAST_COMMENT_OVER_COLOR' => $overColor, 'LAST_COMMENT_OUT_COLOR' => $outColor ) ); } if ($album_config['show_index_last_pic'] == 1 && $indexes[$i] == 6) { $template->assign_vars(array( 'COL6' => $rowClass, 'LAST_PIC_OVER_COLOR' => $overColor, 'LAST_PIC_OUT_COLOR' => $outColor ) ); } $toggle = !$toggle; } } ?> --- NEW FILE: album_hierarchy_sql.php --- <?php /** * * @package Mx-Publisher Module - mx_smartor * @version $Id: album_hierarchy_sql.php,v 1.1.2.1 2008/03/12 22:34:26 orynider Exp $ * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /*************************************************************************** * album_hierarchy_sql.php * ------------------------------------------------ * begin : Friday, June 12, 2004 * copyright : (C) 2004 IdleVoid * email : idl...@sl... * file version : 1.2.0 * release : 2.0.0 ****************************************************************************/ [...2105 lines suppressed...] 'THUMBNAIL' => $thumbnail_file, 'PIC_PREVIEW' => $pic_preview, 'DESC' => $commentsrow[$i]['pic_desc'], 'COMMENT_TEXT' => $commentsrow[$i]['comment_text'], 'PIC_ID' => $commentsrow[$i]['pic_id'], 'TITLE' => '<a href = "' . mx_append_sid(this_smartor_mxurl("smartor_mode=album_showpage&pic_id=" . $commentsrow[$i]['pic_id'])) . '">' . $commentsrow[$i]['pic_title'] . '</a>', 'POSTER' => $poster, 'TIME' => create_date2($board_config['default_dateformat'], $commentsrow[$i]['comment_time'], $board_config['board_timezone']), 'VIEW' => $commentsrow[$i]['pic_view_count'], 'RATING' => ($album_config['rate'] == 1) ? ( '<a href="'. mx_append_sid(this_smartor_mxurl("smartor_mode=album_showpage&pic_id=" . $commentsrow[$i]['pic_id'])) . '" ' . $image_rating_link_style .'>' . $lang['Rating'] . '</a>: ' . $image_rating . '<br />') : '', 'COMMENTS' => ($album_config['comment'] == 1) ? ( '<a href="' . mx_append_sid(this_smartor_mxurl("smartor_mode=album_showpage&pic_id=" . $commentsrow[$i]['pic_id'])) . '">' . $lang['Comments'] . '</a>: ' . $image_comment . '<br />') : '', 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://whois.sc/' . decode_ip($commentsrow[$i]['pic_user_ip']) . '" target="_blank">' . decode_ip($commentsrow[$i]['pic_user_ip']) .'</a><br />' : '' ) ); } } } ?> --- NEW FILE: album_acp_functions.php --- <?php if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } if (!defined('IN_ADMIN')) { die('Can only be used from the album ACP'); } //------------------------------------------------------------------------ // This file is included in the admin/admin_album_config_extended.php // which is the new ACP for the ablum. // // The file contains all the helper functions nedded for the ACP //------------------------------------------------------------------------ //------------------------------------------------------------------------ // this little helper function basicly does the template generation // NOTE : the $config_box_generation_function is defined in the // $album_config_tabs array that exists in all of the admin_album_config_* // files. It is just a function 'pointer' to the actual generator function //------------------------------------------------------------------------ function build_config_box($config_data) { global $template; $function = $config_data['generate_function']; $template->set_filenames(array('configuration_box' => $config_data['template_file'])); build_subtab_box($config_data); if (!empty($function)) { $function($config_data); } $template->assign_var_from_handle('CONFIGURATION_BOX', 'configuration_box'); } function build_sub_config_box($config_data) { global $template; $selected_subtab = $config_data['selected_subtab']; $function = (!empty($selected_subtab['generate_function'])) ? $selected_subtab['generate_function'] : $config_data['generate_function']; $template->set_filenames(array('sub_configuration_box' => $selected_subtab['template_file'])); if (!empty($function)) { $function($config_data); } $template->assign_var_from_handle('SUB_CONFIGURATION_BOX', 'sub_configuration_box'); } function build_subtab_box($config_data) //, $selected_subtab) { global $template; $selected_index = 0; $selected_subtab = get_selected_tab_from_config($config_data); if (0 == count($selected_subtab)) { return; } build_sub_config_box($config_data); for ($i = 0; $i < count($config_data['sub_config']); $i++) { if ($config_data['sub_config'][$i]['selection'] == $selected_subtab['selection']) { $selected_index = $i; } $template->assign_block_vars('subtab_row', array( 'TAB_SELECT_NAME' => $config_data['sub_config'][$i]['selection'], 'L_TAB_TITLE' => $config_data['sub_config'][$i]['title'], 'TAB_LINKS' => ($config_data['sub_config'][$i]['selection'] == $selected_subtab['selection']) ? 'tab_links' : 'tab_links_unsel', 'TAB_CLASS' => ($config_data['sub_config'][$i]['selection'] == $selected_subtab['selection']) ? 'tab_headers' : 'tab_headers_unsel' ) ); $template->assign_vars(array( 'L_CONFIGURATION_BOX' => $config_data['sub_config'][$selected_index]['title'] ) ); } } function get_selected_tab_from_config($config_data) { return $config_data['selected_subtab']; } function get_config_table($selection) { global $album_config_tabs; for ($i = 0; $i < count($album_config_tabs); $i++) { if ( 0 == strcasecmp($album_config_tabs[$i]['selection'],$selection) ) { return $album_config_tabs[$i]['config_table_name']; } } return ''; } function is_valid_config_tab($config_array) { // these two array holds the minimum required fields for an config tab array // if there are other that's accepted just don't remove these // NOTE : the order of the keys are not important $valid_config_keys = array( 0 => 'order',1 => 'selection',2 => 'title',3 => 'detail',4 => 'sub_config',5 => 'config_table_name',6 => 'generate_function',7 => 'template_file'); $valid_sub_config_keys = array( 0 => 'order',1 => 'selection',2=> 'title',3 => 'detail',4 => 'template_file'); if (count($config_array) == 0) { return false; } for ($outer = 0; $outer < count($valid_config_keys); $outer++) { // does the key exists ? if (@!array_key_exists($valid_config_keys[$outer],$config_array)) { return false; } if (strcasecmp($valid_config_keys[$outer], 'sub_config') == 0) { // check each sub_config in the config array for ($inner = 0; $inner < count($config_array['sub_config']); $inner++) { // and check eacj key in each sub_config array for ($i = 0; $i < count($valid_sub_config_keys); $i++) { // does the key exists ? if (@!array_key_exists($valid_sub_config_keys[$i],$config_array['sub_config'][$inner])) { return false; } } } } } return true; } function remove_config_array($config_array, $index) { $temp_array = array(); for($i = 0; $i < count($config_array); $i++) { if ($i != $index) { $temp_array[] = $config_array[$i]; } } return $temp_array; } ?> --- NEW FILE: album_functions.php --- <?php /** * * @package Mx-Publisher Module - mx_smartor * @version $Id: album_functions.php,v 1.1.2.1 2008/03/12 22:34:25 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // ------------------------------------ // All common functions are here! // ------------------------------------ // You cannot call this file directly from your browser // if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } if(!function_exists(create_date)) { function create_date($format, $gmepoch, $tz) { return phpBB2::create_date($format, $gmepoch, $tz); } if(!function_exists(create_date2)) { function create_date2($format, $gmepoch, $tz) { return create_date($format, $gmepoch, $tz); } } if(!function_exists(decode_ip)) { function decode_ip($int_ip) { return phpBB2::decode_ip($int_ip); } } // ---------------------------------------------------------------------------- // This function will return the access data of the current user for a category // Default returning value is "0" (means NOT AUTHORISED) // // All $*_check must be "1" or "0" // // $passed_auth must be a full row from ALBUM_CAT_TABLE. This function still works without // ... but $passed_auth will make it worked very much faster (because this function is often // called in a loop) // function album_user_access($cat_id, $passed_auth = 0, $view_check, $upload_check, $rate_check, $comment_check, $edit_check, $delete_check) { global $db, $album_config, $userdata; // -------------------------------- // Force to check moderator status // -------------------------------- $moderator_check = 1; // -------------------------------- // Here the array which this function would return. Now we initiate it! // -------------------------------- $album_user_access = array( 'view' => 0, 'upload' => 0, 'rate' => 0, 'comment' => 0, 'edit' => 0, 'delete' => 0, 'moderator' => 0 ); $album_user_access_keys = array_keys($album_user_access); // // END initiation $album_user_access // // -------------------------------- // Check $cat_id // -------------------------------- if ($cat_id == PERSONAL_GALLERY) { $personal_gallery_access = personal_gallery_access(1,1); if ($personal_gallery_access['view']) { $album_user_access['view'] = 1; } if ($personal_gallery_access['upload']) { $album_user_access['upload'] = 1; $album_user_access['rate'] = 1; $album_user_access['comment'] = 1; $album_user_access['edit'] = 1; $album_user_access['delete'] = 1; if ($userdata['session_logged_in']) { if ($userdata['user_level'] == ADMIN) { $album_user_access['moderator'] = 1; } } } return $album_user_access; } else if ($cat_id < 0) { mx_message_die(GENERAL_ERROR, 'Bad cat_id arguments for function album_user_access()'); } // // END check $cat_id // // -------------------------------- // If the current user is an ADMIN (ALBUM_ADMIN == ADMIN) // -------------------------------- if ($userdata['user_level'] == ADMIN) { for ($i = 0; $i < count($album_user_access); $i++) { $album_user_access[$album_user_access_keys[$i]] = 1; // Authorised All } // // Function EXIT here // return $album_user_access; } // // END check ADMIN // // -------------------------------- // if this is a GUEST, we will ignore some checking // -------------------------------- if (!$userdata['session_logged_in']) { $edit_check = 0; $delete_check = 0; $moderator_check = 0; } // // END check GUEST // // -------------------------------- // check if RATE or COMMENT are turned off by Album Config, so we can ignore them // -------------------------------- if ($album_config['rate'] == 0) { $rate_check = 0; } if ($album_config['comment'] == 0) { $comment_check = 0; } // // END Check RATE & COMMENT // // -------------------------------- // The array that list all access type this function will look for (except MODERATOR) // -------------------------------- $access_type = array(); if ($view_check != 0) { $access_type[] = 'view'; } if ($upload_check != 0) { $access_type[] = 'upload'; } if ($rate_check != 0) { $access_type[] = 'rate'; } if ($comment_check != 0) { $access_type[] = 'comment'; } if ($edit_check != 0) { $access_type[] = 'edit'; } if ($delete_check != 0) { $access_type[] = 'delete'; } // // END generating array $access_type // // -------------------------------- // If everything is empty // -------------------------------- if( empty($access_type) and (!$moderator_check) ) { // // Function EXIT here // return $album_user_access; } // // END check empty // // -------------------------------- // Generate the SQL query based on $access_type and $moderator_check // -------------------------------- $sql = 'SELECT cat_id'; for ($i = 0; $i < count($access_type); $i++) { $sql .= ', cat_'. $access_type[$i] .'_level, cat_'. $access_type[$i] .'_groups'; } if ($moderator_check) { $sql .= ', cat_moderator_groups'; } $sql .= " FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '$cat_id'"; // // END SQL query generating // // -------------------------------- // Query the $sql then Fetchrow if $passed_auth == 0 // -------------------------------- if( !is_array($passed_auth) ) { if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not query Album Category information' ,'' , __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); } else { $thiscat = $passed_auth; } // // END Query and Fetchrow // // -------------------------------- // Maybe the access level is not PRIVATE or the groups list is empty // ... so we can skip some queries ;) // -------------------------------- $groups_access = array(); for ($i = 0; $i < count($access_type); $i++) { switch ($thiscat['cat_'. $access_type[$i] .'_level']) { case ALBUM_GUEST: $album_user_access[$access_type[$i]] = 1; break; case ALBUM_USER: if ($userdata['session_logged_in']) { $album_user_access[$access_type[$i]] = 1; } break; case ALBUM_PRIVATE: if( ($thiscat['cat_'. $access_type[$i] .'_groups'] != '') and ($userdata['session_logged_in']) ) { $groups_access[] = $access_type[$i]; } break; case ALBUM_MOD: // this will be checked later break; case ALBUM_ADMIN: // ADMIN already returned before at the checking code // at the top of this function. So this user cannot be authorised $album_user_access[$access_type[$i]] = 0; break; default: $album_user_access[$access_type[$i]] = 0; } } // // END Check Access Level // // -------------------------------- // We can return now if $groups_access is empty AND $moderator_check == 0 // -------------------------------- if( ($moderator_check == 1) and ($thiscat['cat_moderator_groups'] != '') ) { // We can merge them now $groups_access[] = 'moderator'; } if (empty($groups_access)) { // // Function EXIT here // return $album_user_access; } // -------------------------------- // Now we have the list of usergroups have PRIVATE/MODERATOR access // So we will check if this user is in these usergroups or not... // -------------------------------- // upto (6 + 1) loops maximum when this user logged in and All Levels // are set to PRIVATE and this function was called to check all. // So avoiding PRIVATE will speed up your album. However, these queries are very fast for ($i = 0; $i < count($groups_access); $i++) { $sql = "SELECT group_id, user_id FROM ". USER_GROUP_TABLE ." WHERE user_id = '". $userdata['user_id'] ."' AND user_pending = 0 AND group_id IN (". $thiscat['cat_'. $groups_access[$i] .'_groups'] .")"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not query User-Group information' ,'' , __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) > 0 ) { $album_user_access[$groups_access[$i]] = 1; } } // // END check PRIVATE/MODERATOR groups // // -------------------------------- // If $moderator_check was called and this user is a MODERATOR he // will be authorised for all accesses which were not set to ADMIN // -------------------------------- if( ($album_user_access['moderator'] == 1) and ($moderator_check == 1) ) { for ($i = 0; $i < count($album_user_access); $i++) { if( $thiscat['cat_'. $album_user_access_keys[$i] .'_level'] != ALBUM_ADMIN ) { $album_user_access[$album_user_access_keys[$i]] = 1; } } } // // END Moderator // // -------------------------------- // Return result... // -------------------------------- return $album_user_access; } // // END function album_user_access() // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // This function will check the access (VIEW, UPLOAD) of current user on // any personal galleries function personal_gallery_access($check_view, $check_upload) { global $db, $userdata, $album_config; // This array will contain the result $personal_gallery_access = array( 'view' => 0, 'upload' => 0, ); // -------------------------------- // Who can create personal gallery? // -------------------------------- if ($check_upload) { switch ($album_config['personal_gallery']) { case ALBUM_USER: if ($userdata['session_logged_in']) { $personal_gallery_access['upload'] = 1; } break; case ALBUM_PRIVATE: if( ($userdata['session_logged_in']) and ($userdata['user_level'] == ADMIN) ) { $personal_gallery_access['upload'] = 1; } else if(!empty($album_config['personal_gallery_private']) and $userdata['session_logged_in']) { $sql = "SELECT group_id, user_id FROM ". USER_GROUP_TABLE ." WHERE user_id = '". $userdata['user_id'] ."' AND user_pending = 0 AND group_id IN (". $album_config['personal_gallery_private'] .")"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not query User-Group information' ,'' , __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) > 0 ) { $personal_gallery_access['upload'] = 1; } } break; case ALBUM_ADMIN: if( ($userdata['session_logged_in']) and ($userdata['user_level'] == ADMIN) ) { $personal_gallery_access['upload'] = 1; } break; } } // -------------------------------- // Who can view other personal gallery? // -------------------------------- if ($check_view) { switch ($album_config['personal_gallery_view']) { case ALBUM_GUEST: $personal_gallery_access['view'] = 1; break; case ALBUM_USER: if ($userdata['session_logged_in']) { $personal_gallery_access['view'] = 1; } break; case ALBUM_PRIVATE: if( ($userdata['session_logged_in']) and ($userdata['user_level'] == ADMIN) ) { $personal_gallery_access['view'] = 1; } else if(!empty($album_config['personal_gallery_private']) and $userdata['session_logged_in']) { $sql = "SELECT group_id, user_id FROM ". USER_GROUP_TABLE ." WHERE user_id = '". $userdata['user_id'] ."' AND user_pending = 0 AND group_id IN (". $album_config['personal_gallery_private'] .")"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not query User-Group information' ,'' , __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) > 0 ) { $personal_gallery_access['view'] = 1; } } break; } } return $personal_gallery_access; } // // END function personal_gallery_access() // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Build up the array similar to $thiscat array // function init_personal_gallery_cat($user_id = 0) { global $userdata, $db, $lang; if ($user_id == 0) { $user_id = $userdata['user_id']; } $sql = "SELECT COUNT(pic_id) AS count FROM ". ALBUM_TABLE ." WHERE pic_cat_id = ". PERSONAL_GALLERY ." AND pic_user_id = ". $user_id; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not count pics for this personal gallery', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $count = $row['count']; if ($user_id != $userdata['user_id']) { $sql = "SELECT user_id, username FROM ". USERS_TABLE ." WHERE user_id = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); } $user_row = $db->sql_fetchrow($result); $username = $user_row['username']; } else { $username = $userdata['username']; } $thiscat = array( 'cat_id' => 0, 'cat_title' => sprintf($lang['Personal_Gallery_Of_User'], $username), 'cat_desc' => '', 'cat_order' => 0, 'count' => $count, 'cat_view_level' => $album_config['personal_gallery_view'], 'cat_upload_level' => $album_config['personal_gallery'], 'cat_rate_level' => $album_config['personal_gallery_view'], 'cat_comment_level' => $album_config['personal_gallery_view'], 'cat_edit_level' => $album_config['personal_gallery'], 'cat_delete_level' => $album_config['personal_gallery'], 'cat_view_groups' => $album_config['personal_gallery_private'], 'cat_upload_groups' => $album_config['personal_gallery_private'], 'cat_rate_groups' => $album_config['personal_gallery_private'], 'cat_comment_groups' => $album_config['personal_gallery_private'], 'cat_edit_groups' => $album_config['personal_gallery_private'], 'cat_delete_groups' => $album_config['personal_gallery_private'], 'cat_delete_groups' => $album_config['personal_gallery_private'], 'cat_moderator_groups' => '', 'cat_approval' => 0 ); return $thiscat; } // // END function init_personal_gallery_cat() // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // You must keep my copyright notice with its original content visible // Do NOT modify anything!!! function album_end() { global $album_config; echo '<div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Photo Album Addon 2' . $album_config['album_version'] . ' © 2002, 2003 <a href="http://smartor.is-root.com" target="_blank">Smartor</a></div>'; } //--- Multiple File Upload - BEGIN // ---------------------------------------------------------------- // check if the file at index $index was uploaded // ---------------------------------------------------------------- function was_file_uploaded($files_array, $index) { if ( @phpversion() < '4.2.0' ) { return ( (empty($files_array['tmp_name'][$index]) || $files_array['tmp_name'][$index] == 'none') || $files_array['size'][$index] == 0 ) ? false : true; } else { return ( ((empty($files_array['tmp_name'][$index]) || $files_array['tmp_name'][$index] == 'none') || $files_array['size'][$index] == 0) || $files_array['error'][$index] == 4) ? false : true; } } // ---------------------------------------------------------------- // check if the file has exceeded the maximum allowed file upload // set in php.ini // ---------------------------------------------------------------- function file_uploaded_exceeds_max_size($files_array, $index) { // for some bizar reason I can't get the next few lines to work right 'error' is always = 0 if (@phpversion() >= '4.2.0') { // UPLOAD_ERR_INI_SIZE == 1 (was first defined in 4.3.0, so 1 here instead) return ($files_array['error'][$index] == 1) ? true : false; } else { // earlier version of PHP (before 4.2.0) the error associated array didn't exist // so we need to TRY to check if the file was too big // the rule is the following (not fool proof): // // if 'name' isn't empty BUT 'tmp_name' and 'size' are empty (or for size = 0) // then we must have exceeded our max file size (or another error occured) return ( !empty($files_array['name'][$index]) && ( (empty($files_array['tmp_name'][$index]) || $files_array['tmp_name'][$index] == 'none') && $files_array['size'][$index] == 0 ) ) ? true : false; } } // ---------------------------------------------------------------- // generates a picture title, depending on the parameter supplied // ---------------------------------------------------------------- function generate_picture_title($file_name, $pic_title, $pic_filetype) { global $album_config; static $counter = 1; // if the user didn't supply a picture title then generate it from the // picture filename..and clean it up (remove trailing space, underscores and propercase it) if ( empty($pic_title) ) { // remove file extension, // NOTE : were do a lowecase of the filename, to ensure that extension with in BIG or misc cApS get removed also $pic_title = str_replace($pic_filetype, '', strtolower($file_name)); // remove underscores '_' and traling spaces $pic_title = trim(str_replace('_', ' ', $pic_title)); if ($album_config['propercase_pic_title'] == 1) { // convert the first character in each word to upper case and the rest to lower case $pic_title = ucwords(strtolower($pic_title)); } /* else { // convert only the first character in a string to upper case, the rest to lower case $pic_title = ucfirst(strtolower($pic_title)); } */ } else { if ($album_config['propercase_pic_title'] == 1) { // convert the first character in each word to upper case and the rest to lower case $pic_title = ucwords(strtolower($pic_title)); } /* else { // convert only the first character in a string to upper case, the rest to lower case $pic_title = ucfirst(strtolower($pic_title)); } */ switch ($counter) { case ($counter < 10): $pic_title .= ' - 00' . $counter; break; case (($counter >= 10) && ($counter < 100)): $pic_title .= ' - 0' . $counter; break; default: $pic_title .= ' - ' . $counter; break; } $counter++; } return $pic_title; } //--- Multiple File Upload - END function generate_single_pic_title($file_name, $pic_title, $pic_filetype) { global $album_config; // if the user didn't supply a picture title then generate it from the // picture filename and clean it up (remove trailing space, underscores and propercase it) if ( empty($pic_title) ) { // remove file extension, // NOTE : were do a lowecase of the filename, to ensure that extension with in BIG or misc cApS get removed also $pic_title = str_replace($pic_filetype, '', strtolower($file_name)); // remove underscores '_' and traling spaces $pic_title = trim(str_replace('_', ' ', $pic_title)); if ($album_config['propercase_pic_title'] == 1) { // convert the first character in each word to upper case and the rest to lower case $pic_title = ucwords(strtolower($pic_title)); } /* else { // convert only the first character in a string to upper case, the rest to lower case $pic_title = ucfirst(strtolower($pic_title)); } */ } else { if ($album_config['propercase_pic_title'] == 1) { // convert the first character in each word to upper case and the rest to lower case $pic_title = ucwords(strtolower($pic_title)); } /* else { // convert only the first character in a string to upper case, the rest to lower case $pic_title = ucfirst(strtolower($pic_title)); } */ } return $pic_title; } //to have smilies window popup function generate_smilies_album($mode, $page_id) //borrowed from phpbbforums...modified to work with album { global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path, $mx_root_path; global $user_ip, $session_length, $starttime; global $userdata; // Vars needed for CH 2.1.4 global $config, $user, $censored_words, $icons, $navigation, $themes, $smilies; $inline_columns = 4; $inline_rows = 5; $window_columns = 8; if ($mode == 'window') { //$userdata = session_pagestart( $user_ip, $page_id ); //init_userprefs( $userdata ); $gen_simple_header = true; $page_title = "Smilies"; if ( !$is_block) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'smiliesbody' => 'album_posting_smilies.tpl') ); } $sql = "SELECT emoticon, code, smile_url FROM " . SMILIES_TABLE . " ORDER BY smilies_id"; if ($result = $db->sql_query($sql)) { $num_smilies = 0; $rowset = array(); while ($row = $db->sql_fetchrow($result)) { if (empty($rowset[$row['smile_url']])) { $rowset[$row['smile_url']]['code'] = str_replace("'", "\\'", str_replace('\\', '\\\\', $row['code'])); $rowset[$row['smile_url']]['emoticon'] = $row['emoticon']; $num_smilies++; } } if ($num_smilies) { $smilies_count = ($mode == 'inline') ? min(19, $num_smilies) : $num_smilies; $smilies_split_row = ($mode == 'inline') ? $inline_columns - 1 : $window_columns - 1; $s_colspan = 0; $row = 0; $col = 0; while (list($smile_url, $data) = @each($rowset)) { if (!$col) { $template->assign_block_vars('smilies_row', array()); } $template->assign_block_vars('smilies_row.smilies_col', array( 'SMILEY_CODE' => $data['code'], 'SMILEY_IMG' => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smile_url, 'SMILEY_DESC' => $data['emoticon']) ); $s_colspan = max($s_colspan, $col + 1); if ($col == $smilies_split_row) { if ( ($mode == 'inline') && ($row == $inline_rows - 1) ) { break; } $col = 0; $row++; } else { $col++; } } if ( ($mode == 'inline') && ($num_smilies > $inline_rows * $inline_columns) ) { $template->assign_block_vars('switch_smilies_extra', array()); $template->assign_vars(array( 'L_MORE_SMILIES' => $lang['More_emoticons'], 'U_MORE_SMILIES' => mx_append_sid($phpbb_root_path . "posting.$phpEx?mode=smilies")) ); } $template->assign_vars(array( 'L_EMOTICONS' => $lang['Emoticons'], 'L_CLOSE_WINDOW' => $lang['Close_window'], 'S_SMILIES_COLSPAN' => $s_colspan) ); } } if ($mode == 'window') { $template->pparse('smiliesbody'); if ( !$is_block) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } } } if (!function_exists(setFlag)) { function setFlag($flags, $flag) { return $flags | $flag; } } if (!function_exists(clearFlag)) { function clearFlag($flags, $flag) { return ($flags & ~$flag); } } if (!function_exists(checkFlag)) { function checkFlag($flags, $flag) { return (($flags & $flag) == $flag) ? true : false; } } function mx_album_assign_var_from_handle($varname, $handle) { if (!$this->loadfile($handle)) { die("Template->assign_var_from_handle(): Couldn't load template file for handle $handle"); } // Compile it, with the "no echo statements" option on. $_str = ""; $code = $this->compile($this->uncompiled_code[$handle], true, '_str'); // evaluate the variable assignment. eval($code); // assign the value of the generated variable to the given varname. $this->assign_var($varname, $_str); return true; } function mx_album_uploadfilename($UploadFile) { $UploadFileNameTmp = explode(".", $UploadFile); $y = count($UploadFileNameTmp) - 1; $r = ""; for ($a = 0; $y > $a; $a++) { $r .= ".".$UploadFileNameTmp[$a]; } return $r; } function mx_album_uploadfiletype($UploadFile) { $UploadFileTypeTmp = explode(".", $UploadFile); $y = count($UploadFileTypeTmp) - 1; $r = $UploadFileTypeTmp[$y];; return $r; } // +------------------------------------------------------+ // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | // +------------------------------------------------------+ ?> --- NEW FILE: album_exif_info.php --- <?php /*************************************************************************** * exif_info.php * --------------- * begin : 03/18/2005 * copyright : Pgh-Biker * email : * * version : 1.0.0 ***************************************************************************/ /*************************************************************************** * * 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); // $phpbb_root_path = './'; define('IN_PORTAL', true); global $board_config; function make_exif($xkey, $xval) { global $board_config; $exif_info = array( // 'FILE_FileName' => 'File Name', 'FILE_FileDateTime' => 'File Date and Time', 'FILE_FileSize' => array( 'Name' => 'File Size', 'Units' => ' bytes' ), // 'FILE_MimeType' => 'Mime Type', 'COMPUTED_Height' => array( 'Name' => 'Image Height', 'Units' => ' pixels' ), 'COMPUTED_Width' => array( 'Name' => 'Image Width', 'Units' => ' pixels' ), 'COMPUTED_ApertureFNumber' => 'Aperture F Number', 'COMPUTED_UserComment' => 'User Comment', 'IFD0_ImageDescription' => 'Image Description', 'IFD0_Make' => 'Camera Make (Manufacturer)', 'IFD0_Model' => 'Camera Model', 'IFD0_XResolution' => array( 'Name' => 'X Resolution', 'Units' => ' Pixels per' ), 'IFD0_YResolution' => array( 'Name' => 'Y Resolution', 'Units' => ' Pixels per' ), 'IFD0_ResolutionUnit' => array( 'Name' => 'Resolution Unit', 2 => ' Inch', 3 => ' Centimeter' ), 'IFD0_Software' => 'Software or Firmware', 'IFD0_Artist' => 'Artist', 'IFD0_Copyright' => 'Copyright', 'EXIF_ExposureTime' => array( 'Name' => 'Exposure Time', 'Units' => ' seconds' ), // 'EXIF_FNumber' => 'F Number', 'EXIF_ExposureProgram' => array( 'Name' => 'Exposure Program', 0 => 'Not defined', 1 => 'Manual', 2 => 'Normal program', 3 => 'Aperture priority', 4 => 'Shutter priority', 5 => 'Creative program (biased toward depth of field)', 6 => 'Action program (biased toward fast shutter speed)', 7 => 'Portrait mode (for closeup photos with the background out of focus)', 8 => 'Landscape mode (for landscape photos with the background in focus)' ), 'EXIF_ISOSpeedRatings' => 'ISO Speed Ratings', 'EXIF_DateTimeOriginal' => 'Date and Time of Original', 'EXIF_DateTimeDigitized' => 'Date and Time when Digitized', 'EXIF_ExposureBiasValue' => array( 'Name' => 'APEX Exposure Bias Value', 'Units' => ' EV' ), 'EXIF_MaxApertureValue' => 'APEX Maximum Aperture Value', 'EXIF_MeteringMode' => array( 'Name' => 'Metering Mode', 0 => 'Unknown', 1 => 'Average', 2 => 'Center Weighted Average', 3 => 'Spot', 4 => 'Multi Spot', 5 => 'Pattern', 6 => 'Partial', 255 => 'Other' ), 'EXIF_LightSource' => array( 'Name' => 'Light Source', 0 => 'Unknown', 1 => 'Daylight', 2 => 'Fluorescent', 3 => 'Tungsten (incandescent light)', 4 => 'Flash', 9 => 'Fine weather', 10 => 'Cloudy weather', 11 => 'Shade', 12 => 'Daylight fluorescent (D 5700 7100K)', 13 => 'Day white fluorescent (N 4600 5400K)', 14 => 'Cool white fluorescent (W 3900 4500K)', 15 => 'White fluorescent (WW 3200 3700K)', 17 => 'Standard light A', 18 => 'Standard light B', 19 => 'Standard light C', 20 => 'D55', 21 => 'D65', 22 => 'D75', 23 => 'D50', 24 => 'ISO studio tungsten', 255 => 'Other' ), 'EXIF_Flash' => array( 'Name' => 'Flash Mode', 0 => 'Flash did not fire', 1 => 'Flash fired', 5 => 'Strobe return light not detected', 7 => 'Strobe return light detected', 9 => 'Flash fired, compulsory flash mode', 13 => 'Flash fired, compulsory flash mode, return light not detected', 15 => 'Flash fired, compulsory flash mode, return light detected', 16 => 'Flash did not fire, compulsory flash suppression mode', 24 => 'Flash did not fire, auto mode', 25 => 'Flash fired, auto mode', 29 => 'Flash fired, auto mode, return light not detected', 31 => 'Flash fired, auto mode, return light detected', 32 => 'No flash function', 65 => 'Flash fired, red-eye reduction mode', 69 => 'Flash fired, red-eye reduction mode, return light not detected', 71 => 'Flash fired, red-eye reduction mode, return light detected', 73 => 'Flash fired, compulsory flash mode, red-eye reduction mode', 77 => 'Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected', 79 => 'Flash fired, compulsory flash mode, red-eye reduction mode, return light detected', 89 => 'Flash fired, auto mode, red-eye reduction mode', 93 => 'Flash fired, auto mode, return light not detected, red-eye reduction mode', 95 => 'Flash fired, auto mode, return light detected, red-eye reduction mode' ), 'EXIF_FocalLength' => array( 'Name' => 'Focal Length', 'Units' => 'mm' ), 'EXIF_SensingMethod' => array( 'Name' => 'Sensing Method', 1 => 'Not defined', 2 => 'One-chip colour area sensor', 3 => 'Two-chip colour area sensor', 4 => 'Three-chip colour area sensor', 5 => 'Colour sequential area sensor', 7 => 'Trilinear sensor', 8 => 'Colour sequential linear sensor' ), 'EXIF_CustomRendered' => array( 'Name' => 'Custom Renderd Mode', 0 => 'Normal Process', 1 => 'Custom Process', ), 'EXIF_ExposureMode' => array( 'Name' => 'Exposure Mode', 0 => 'Auto exposure', 1 => 'Manual exposure', 2 => 'Auto bracket' ), 'EXIF_WhiteBalance' => array( 'Name' => 'White Balance', 0 => 'Auto white balance', 1 => 'Manual white balance' ), 'EXIF_DigitalZoomRatio' => array( 'Name' => 'Digital Zoom Ratio', 'Units' => ' ( Zero = Digital Zoom Not Used )' ), 'EXIF_FocalLengthIn35mmFilm' => array( 'Name' => 'Equivalent Focal Length In 35mm Film', 'Units' => 'mm' ), 'EXIF_SceneCaptureType' => array( 'Name' => 'Scene Capture Type', 0 => 'Standard', 1 => 'Landscape', 2 => 'Portrait', 3 => 'Night scene' ), 'EXIF_GainControl' => array( 'Name' => 'Gain Control', 0 => 'None', 1 => 'Low gain up', 2 => 'High gain up', 3 => 'Low gain down', 4 => 'High gain down' ), 'EXIF_Contrast' => array( 'Name' => 'Contrast', 0 => 'Normal', 1 => 'Soft', 2 => 'Hard' ), 'EXIF_Saturation' => array( 'Name' => 'Saturation', 0 => 'Normal', 1 => 'Low saturation', 2 => 'High saturation' ), 'EXIF_Sharpness' => array( 'Name' => 'Sharpness', 0 => 'Normal', 1 => 'Soft', 2 => 'Hard' ), 'EXIF_SubjectDistanceRange' => array( 'Name' => 'Subject Distance Range', 0 => 'Unknown', 1 => 'Macro', 2 => 'Close view', 3 => 'Distant view' ), ); $i = 0; $rexif = array(); while (!empty($xkey[$i]) ) { if ( ereg("([0-9]{1,})/([0-9]{1,})", $xval[$i], $num) ) { if ( $num[1] > 1 ) $xval[$i] = round( ($num[1] / $num[2]), 6); } if ( is_array($exif_info[$xkey[$i]]) && $xkey[$i] != 'IFD0_ResolutionUnit' ) { if ( isset($exif_info[$xkey[$i]]['Units']) ) { if ( $xkey[$i+2] == 'IFD0_ResolutionUnit' ) { $rexif[$exif_info[$xkey[$i]]['Name']] = ($xval[$i] . $exif_info[$xkey[$i]]['Units'] . $exif_info[$xkey[$i+2]][$xval[$i+2]]); } else if ( $xkey[$i+1] == 'IFD0_ResolutionUnit' ) { $rexif[$exif_info[$xkey[$i]]['Name']] = ($xval[$i] . $exif_info[$xkey[$i]]['Units'] . $exif_info[$xkey[$i+1]][$xval[$i+1]]); } else { $rexif[$exif_info[$xkey[$i]]['Name']] = ($xval[$i] . $exif_info[$xkey[$i]]['Units']); } } else { $rexif[$exif_info[$xkey[$i]]['Name']] = $exif_info[$xkey[$i]][$xval[$i]]; } } else if ( isset($exif_info[$xkey[$i]]) && $xkey[$i] != 'IFD0_ResolutionUnit' ) { $rexif[$exif_info[$xkey[$i]]] = $xval[$i]; if ( $xkey[$i] == 'FILE_FileDateTime' ) { $rexif[$exif_info[$xkey[$i]]] = create_date('Y:m:d H:i:s', $xval[$i], $board_config['board_timezone']); } } $i++; } return $rexif; } $template->assign_block_vars('switch_exif_enabled.exif_switch', array()); $i = 0; $xkey = array(); $xval = array(); while (list($xk1,$xv1) = each($xif)) { $xkey[$i] = $xk1; $xval[$i] = $xv1; if (is_array($xif[$xk1])) { while (list($xk2,$xv2) = each($xif[$xk1])) { $xkey[$i] = $xk1.'_'.$xk2; $xval[$i] = $xv2; $i++; } } else { $i++; } } $exif = make_exif($xkey, $xval); $i = 0; $key = array(); $val = array(); while (list($k1,$v1) = each($exif)) { $key[$i] = $k1; $val[$i] = $v1; $i++; } $x = intval(($i/2)+.5); for ($n = 0; $n < $x; $n++) { $template->assign_block_vars('switch_exif_enabled.exif_switch.exif_data', array( 'EXIFc1' => (!empty($key[$n])) ? $key[$n].':' : '', 'EXIFd1' => ' '.$val[$n], 'EXIFc2' => (!empty($key[$n+$x])) ? $key[$n+$x].':' : '', 'EXIFd2' => ' '.$val[$n+$x] ) ); } ?> --- NEW FILE: album_hierarchy_auth.php --- <?php /*************************************************************************** * album_hierarchy_auth.php * ------------------------------------------------ * begin : Friday, June 12, 2004 * copyright : (C) 2004 IdleVoid * email : idl...@sl... * file version : 1.0.7 * release : 1.3.0 ****************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ /*************************************************************************** * * This mod is strongly based on the Forum Hiearchy Category Mod by Ptirhiik * Alot of credit goes to Ptirhiik * And some small part of this code is copyrighted by Ptirhiik. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } // Album Data Structure description // indexes : // - id : the category id : ie ALBUM_ROOT_CATEGORY, 1, 20, 12 and so on // - idx : array index // $album_data['keys'][id] => idx, returns the key value for the sub, parent, id and data array // $album_data['auth'][id] => auth_value array : ie album_tree_data['auth'][id]['auth_view'], // $album_data['sub'][id] => array of sub-level ids, // $album_data['parent'][idx] => parent id, // $album_data['id'][idx] => value of the row id : cat_id for cats // $album_data['personal'][idx] => list of db table row which indicated if it's personal category, // $album_data['data'][idx] => db table row, // -------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------ // generate the album category hierarchy // authentication data for the tree // ------------------------------------------------------------------------ function album_create_user_auth($user_id) { global $album_data; // read the user auth if requiered if (empty ($album_data['auth'])) { $album_data['auth'] = array (); for ($idx = 0; $idx < count($album_data['data']); $idx ++) { $cat = $album_data['data'][$idx]; $cat_id = $cat['cat_id']; // check all access rights for current user //$album_user_access = album_user_access($cat_id, $cat, 1, 1, 1, 1, 1, 1); $album_user_access = album_permissions($user_id, $cat_id, ALBUM_AUTH_ALL, $cat); if (!empty ($album_user_access)) { reset($album_user_access); while (list ($key, $data) = each($album_user_access)) { $album_data['auth'][$cat_id][$key] = $data; } } } } return $album_data['auth']; } // ------------------------------------------------------------------------ // Builds the array of authentication row ids // where authentication means where $auth_key was // fullfiled // ------------------------------------------------------------------------ // Authentication data structure // // - id : the category id : ie ALBUM_ROOT_CATEGORY, 1, 20, 12 and so on // - auth_id : array index // - idx : array in the album_data array structure // // $keys['keys'][id] => returns , // $keys['id'][auth_id] => id (used by $album_data ), // $keys['real_level'][auth_id] => level in this auth-tree (root=-1), // $keys['level'][auth_id] => level adjust for display (sub-level=parent level under certain conditions) // $keys['idx'][auth_id] => idx (used by $album_data) // -------------------------------------------------------------------------------------------------- function album_get_auth_keys($cur_cat_id = ALBUM_ROOT_CATEGORY, $auth_key = ALBUM_AUTH_VIEW, $all = false, $level = -1, $max = -1) { global $album_data, $album_config; $keys = array (); $last_i = -1; /* if ($album_config['album_debug_mode'] != '0') { // define('ALBUM_HIERARCHY_DEBUG_ENABLED', true); } else { // define('ALBUM_HIERARCHY_DEBUG_ENABLED', false); } */ // add the level if ( ($max < ALBUM_ROOT_CATEGORY + 1) || ($level < $max) || (($level == $max) && ($album_data['parent'][$album_data['keys'][$cur_cat_id]] == ALBUM_ROOT_CATEGORY)) ) { if ($cur_cat_id == ALBUM_ROOT_CATEGORY || album_check_permission($album_data['auth'][$cur_cat_id], $auth_key) || $all) { // if child of cat, align the level on the parent one $orig_level = $level; // store this level $last_i ++; $keys['keys'][$cur_cat_id] = $last_i; $keys['id'][$last_i] = $cur_cat_id; $keys['real_level'][$last_i] = $orig_level; $keys['level'][$last_i] = $level; $keys['idx'][$last_i] = (isset ($album_data['keys'][$cur_cat_id]) ? $album_data['keys'][$cur_cat_id] : ALBUM_ROOT_CATEGORY); // get sub-levels for ($i = 0; $i < count($album_data['sub'][$cur_cat_id]); $i ++) { $subkeys = array (); $subkeys = album_get_auth_keys($album_data['sub'][$cur_cat_id][$i], $auth_key, $all, $orig_level +1, $max); // add sub-levels for ($j = 0; $j < count($subkeys['id']); $j ++) { $last_i ++; $keys['keys'][$subkeys['id'][$j]] = $last_i; $keys['id'][$last_i] = $subkeys['id'][$j]; $keys['real_level'][$last_i] = $subkeys['real_level'][$j]; $keys['level'][$last_i] = $subkeys['level'][$j]; $keys['idx'][$last_i] = $subkeys['idx'][$j]; } // for( $j = 0..... } // for($i = 0..... } // if ($cur_cat_id == ALBUM_ROOT.... } // if (($max < 0 ..... //if ($level <= ALBUM_ROOT_CATEGORY && ALBUM_HIERARCHY_DEBUG_ENABLED == true) if ($level <= ALBUM_ROOT_CATEGORY && $album_config['album_debug_mode'] != '0') { album_debug('album_get_auth_keys = %s', $keys); } return $keys; } // ------------------------------------------------------------------------ // Check the permissions for public and personal galleries // If we are checking a personal gallery and it doesn't exists // the function will then validate it by calling 'personal_gallery_access' // if the gallery exists or its a public gallery then we use the code in // album_user_access. After these calls, some more checks are done in this // function. // ------------------------------------------------------------------------ function album_permissions($user_id, $cat_id, $permission_checks, $catdata = 0) { global $db, $lang, $userdata, $album_config, $album_data; $moderator_check = 1; if (album_is_debug_enabled() == true) { if (!defined('ALBUM_AUTH_VIEW') || !defined('ALBUM_AUTH_UPLOAD') || !defined('ALBUM_AUTH_DELETE') ) { album_debug("album_permissions : The defined authentication constants are NOT found !!!"); } } $view_check = (int) checkFlag($permission_checks, ALBUM_AUTH_VIEW); $upload_check = (int) checkFlag($permission_checks, ALBUM_AUTH_UPLOAD); $rate_check = (int) checkFlag($permission_checks, ALBUM_AUTH_RATE); $comment_check = (int) checkFlag($permission_checks, ALBUM_AUTH_COMMENT); $edit_check = (int) checkFlag($permission_checks, ALBUM_AUTH_EDIT); $delete_check = (int) checkFlag($permission_checks, ALBUM_AUTH_DELETE); // ------------------------------------------------------------------------ // if we are checkinfg the personal gallery cateogry management permission // we need to do these also : view and upload // ------------------------------------------------------------------------ if ( checkFlag($permission_checks, ALBUM_AUTH_MANAGE_PERSONAL_CATEGORIES) == true) { $view_check = 1; $upload_check = 1; } // ------------------------------------------------------------------------ // did we pass some category data or not ? // ------------------------------------------------------------------------ if (!is_array($catdata)) { $sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not query Album Category information for authentication' ,'' , __LINE__, __FILE__, $sql); } // ------------------------------------------------------------------------ // did we find the category or not ? // ------------------------------------------------------------------------ if ($db->sql_numrows($result) == 0) { // ------------------------------------------------------------------------ // is it a personal gallery ? // ------------------------------------------------------------------------ if ($user_id != ALBUM_PUBLIC_GALLERY) { $AH_thiscat = init_personal_gallery_cat($user_id); $album_permission = personal_gallery_access(1,1); //$view_check, $upload_check); } else { mx_message_die(GENERAL_ERROR, $lang['Category_not_exist'] ,'' , __LINE__, __FILE__, $sql); } } else { $AH_thiscat = $db->sql_fetchrow($result); } } else { $AH_thiscat = $catdata; // ------------------------------------------------------------------------ // it is the root category of a non existing personal gallery // ------------------------------------------------------------------------ if ($AH_thiscat['cat_user_id'] != 0 && $AH_thiscat['cat_id'] == 0) { $album_permission = personal_gallery_access(1,1); //$view_check, $upload_check); } } // ------------------------------------------------------------------------ // if we set our $AH_thiscat and not our permission array then we must // authenticate it // ------------------------------------------------------------------------ if (album_is_debug_enabled() == true) { album_debug('album_permissions : before album_user_access : %s(id=%d), $album_permission = %s',$AH_thiscat['cat_title'],$AH_thiscat['cat_id'], $album_permission); } if (empty($album_permission)) { $album_permission = personal_gallery_access(1,1); //$view_check, $upload_check); } if (!empty($AH_thiscat) && !is_array($album_permission)) { $album_permission = album_user_access($cat_id, $AH_thiscat, $view_check, $upload_check, $rate_check, $comment_check, $edit_check, $delete_check); } if (album_is_debug_enabled() == true) { album_debug('album_permissions : after album_user_access : %s(id=%d), $album_permission = %s',$AH_thiscat['cat_title'],$AH_thiscat['cat_id'], $album_permission); } // ------------------------------------------------------------------------ // as default nobody can manage the galleries (personal galleries that is) // check is done later, but only for personal galleries, so its not possible // to manage the categories in the public galleries, only in the ACP // ------------------------------------------------------------------------ $album_permission['manage'] = 0; // ------------------------------------------------------------------------ // $album_permission should now hold our permission stuff for either a personal // gallery or a public gallery. // lets now do some more authentication for the personal galleries // ------------------------------------------------------------------------ if ($AH_thiscat['cat_user_id'] != 0) { if (album_is_debug_enabled() == true) { album_Debug('$album_config[\'personal_gallery\'] = %d', $album_config['personal_gallery']); } switch ($album_config['personal_gallery']) { case ALBUM_USER: // ------------------------------------------------------------------------ // are we checking a non existing personal gallery ? // ------------------------------------------------------------------------ if (empty($AH_thiscat) || $AH_thiscat['cat_id'] == 0 || $cat_id == ALBUM_ROOT_CATEGORY) { // ------------------------------------------------------------------------ // if the admin has set the creation of personal galleries to 'registered users' // then filter out all other users then the current logged in user (and NON ADMIN) // ------------------------------------------------------------------------ if ($userdata['user_id'] != $AH_thiscat['cat_user_id'] && $userdata['user_level'] != ADMIN) { $album_permission['upload'] = 0; } // ------------------------------------------------------------------------ // set the other permissions to the same value of the upload // for this non exsting personal gallery, // ------------------------------------------------------------------------ $album_permission['rate'] = $album_permission['upload']; $album_permission['edit'] = $album_permission['upload']; $album_permission['delete'] = $album_permission['upload']; $album_permission['comment'] = $album_permission['upload']; } break; case ALBUM_ADMIN: // ------------------------------------------------------------------------ // Only admins can upload images to users personal gallery // ------------------------------------------------------------------------ if ($userdata['user_level'] != ADMIN) { $album_permission['upload'] = 0; } break; default: // NOTHING; } // ------------------------------------------------------------------------ // we need to check the upload permission again to full fill all the // permission criterias // ------------------------------------------------------------------------ switch ($AH_thiscat['cat_upload_level']) { case ALBUM_PRIVATE: // ------------------------------------------------------------------------ // make sure the owner of the personal gallery can upload to his personal gallery // it the permission is set to pri... [truncated message content] |
|
From: OryNider <ory...@us...> - 2008-03-12 22:29:26
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20322/includes Log Message: Directory /cvsroot/mxbb/mx_smartor/album_mod/includes added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-03-12 22:29:26
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20322/modules Log Message: Directory /cvsroot/mxbb/mx_smartor/album_mod/modules added to the repository --> Using per-directory sticky tag `core28x' |
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18042/album_mod Modified Files: Tag: core28x album_bbconstants.php album_common.php Removed Files: Tag: core28x album_acp_functions.php album_bbcode.php album_constants.php album_exif_info.php album_functions.php album_hierarchy_auth.php album_hierarchy_debug.php album_hierarchy_functions.php album_hierarchy_sql.php album_image_class.php album_integration.php album_nuffimage_box.php clown_album_functions.php Log Message: upgrade to 2.0.1 gold --- album_constants.php DELETED --- --- album_hierarchy_functions.php DELETED --- --- album_hierarchy_sql.php DELETED --- Index: album_bbconstants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_bbconstants.php,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** album_bbconstants.php 8 Feb 2008 10:40:42 -0000 1.1.2.7 --- album_bbconstants.php 12 Mar 2008 22:25:51 -0000 1.1.2.8 *************** *** 29,33 **** if ( !($result = $db->sql_query($sql)) ) { ! message_die(CRITICAL_ERROR, 'Could not query album config database'); } --- 29,33 ---- if ( !($result = $db->sql_query($sql)) ) { ! $album_index = 6; } *************** *** 38,63 **** } ! function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $album_index, $phpEx, $integration_enabled; ! ! $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! ! if( $force_standalone_mode ) ! { ! $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); ! } ! else { ! $mxurl = $mx_root_path . 'index.' . $phpEx; ! $mxurl .= '?page=' . $album_index . ($args == '' ? '' : '&' . $args); } - return $mxurl; } ! define('ALBUM_INDEX', this_smartor_mxurl()); ! define('ALBUM_SHOWPAGE', this_smartor_mxurl('smartor_mode=album_showpage', false)); ! define('ALBUM_PICM', this_smartor_mxurl('smartor_mode=album_picm', true)); ! define('ALBUM_THUMBNAIL', this_smartor_mxurl('smartor_mode=album_thumbnail', true)); ?> \ No newline at end of file --- 38,71 ---- } ! if (!function_exists('this_smartor_mxurl')) { ! function this_smartor_mxurl($args = '', $force_standalone_mode = '') { ! global $mx_root_path, $module_root_path, $page_id, $album_index, $phpEx, $integration_enabled; ! ! if($force_standalone_mode) ! { ! $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); ! } ! else ! { ! $mxurl = $mx_root_path . 'index.' . $phpEx; ! if( is_numeric($page_id) && !empty($page_id) ) ! { ! $mxurl .= '?page=' . $page_id . ($args == '' ? '' : '&' . $args); ! } ! else ! { ! $mxurl .= '?page=' . $album_index . ($args == '' ? '' : '&' . $args); ! } ! } ! return $mxurl; } } ! @define('ALBUM_INDEX', this_smartor_mxurl()); ! @define('ALBUM_SHOWPAGE', this_smartor_mxurl('smartor_mode=album_showpage', false)); ! @define('ALBUM_PICM', this_smartor_mxurl('smartor_mode=album_picm', true)); ! @define('ALBUM_THUMBNAIL', this_smartor_mxurl('smartor_mode=album_thumbnail', true)); ?> \ No newline at end of file --- album_acp_functions.php DELETED --- --- album_functions.php DELETED --- --- album_exif_info.php DELETED --- --- album_hierarchy_auth.php DELETED --- Index: album_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_common.php,v retrieving revision 1.19.2.5 retrieving revision 1.19.2.6 diff -C2 -d -r1.19.2.5 -r1.19.2.6 *** album_common.php 8 Feb 2008 10:40:43 -0000 1.19.2.5 --- album_common.php 12 Mar 2008 22:25:51 -0000 1.19.2.6 *************** *** 24,28 **** } ! include_once($album_root_path . 'album_constants.'.$phpEx); --- 24,28 ---- } ! include_once($album_root_path . 'includes/album_constants.'.$phpEx); *************** *** 30,71 **** // Read main language definition and theme images definition // ********************************************************************** $mx_user->extend(MX_LANG_MAIN, MX_IMAGES); // // Get Album Config // ! $sql = "SELECT * ! FROM ". ALBUM_CONFIG_TABLE; ! if(!$result = $db->sql_query($sql, false, true)) { ! mx_message_die(GENERAL_ERROR, 'Could not query Album config information', '', __LINE__, __FILE__, $sql); } ! while( $row = $db->sql_fetchrow($result) ) { ! $album_config_name = $row['config_name']; ! $album_config_value = $row['config_value']; ! $album_config[$album_config_name] = $album_config_value; ! } ! /* ! // for compatibility with mxBB 2.7.x and SP... ! $album_config['rate'] = '1'; ! $album_config['comment'] = '1'; ! $album_config['fullpic_popup'] = '0'; ! */ //get SP config info ! $sql = "SELECT * ! FROM ". ALBUM_SP_CONFIG_TABLE; ! if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, "Could not query SP config information", "", __LINE__, __FILE__, $sql); } ! while( $row = $db->sql_fetchrow($result) ) { ! $album_sp_config_name = $row['config_name']; ! $album_sp_config_value = $row['config_value']; ! ! $album_sp_config[$album_sp_config_name] = $album_sp_config_value; } //end get SP config info --- 30,109 ---- // Read main language definition and theme images definition // ********************************************************************** + $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x $mx_user->extend(MX_LANG_MAIN, MX_IMAGES); + // Cache settings + $use_cache = 1; + // // Get Album Config // ! if (($mx_cache->get('album_config')) && ($use_cache)) { ! $album_config = $mx_cache->get('album_config'); } ! else { ! $sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE; ! if (!($result = $db->sql_query($sql))) ! { ! if (!function_exists('mx_message_die')) ! { ! die("Couldnt query smartor album config information, Allso this hosting or server is using a cache optimizer not compatible with MX-Publisher or just lost connection to database wile query."); ! } ! else ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt query smartor album config information', '', __LINE__, __FILE__, $sql ); ! } ! } ! ! while ($row = $db->sql_fetchrow($result)) ! { ! $album_config_name = $row['config_name']; ! $album_config_value = $row['config_value']; ! $album_config[$album_config_name] = $album_config_value; ! } ! $db->sql_freeresult($result); ! ! if ($use_cache) ! { ! $mx_cache->put('album_config', $album_config); ! } ! } //get SP config info ! if (($mx_cache->get('album_sp_config')) && ($use_cache)) { ! $album_sp_config = $mx_cache->get('album_sp_config'); } ! else { ! $sql = "SELECT * FROM " . ALBUM_SP_CONFIG_TABLE; ! ! if (!($result = $db->sql_query($sql))) ! { ! if (!function_exists('mx_message_die')) ! { ! die("Couldnt query smartor album sp config information, Allso this hosting or server is using a cache optimizer not compatible with MX-Publisher or just lost connection to database wile query."); ! } ! else ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt query smartor album sp config information', '', __LINE__, __FILE__, $sql ); ! } ! } ! ! while ($row = $db->sql_fetchrow($result)) ! { ! $album_sp_config_name = $row['config_name']; ! $album_sp_config_value = $row['config_value']; ! $album_sp_config[$album_sp_config_name] = $album_sp_config_value; ! } ! $db->sql_freeresult($result); ! ! if ($use_cache) ! { ! $mx_cache->put('album_sp_config', $album_sp_config); ! } } //end get SP config info *************** *** 149,155 **** } ! include_once($album_root_path . 'album_integration.' . $phpEx); ! include_once($album_root_path . 'album_functions.' . $phpEx); ! include_once($album_root_path . 'clown_album_functions.' . $phpEx); // // Set ALBUM Version --- 187,193 ---- } ! include_once($album_root_path . 'includes/album_integration.' . $phpEx); ! include_once($album_root_path . 'includes/album_functions.' . $phpEx); ! include_once($album_root_path . 'includes/clown_album_functions.' . $phpEx); // // Set ALBUM Version *************** *** 223,230 **** if ($album_config['album_bbcode'] == 1) { ! include_once($album_root_path . 'album_bbcode.' . $phpEx); } ! include_once($album_root_path . 'album_hierarchy_functions.' . $phpEx); ?> \ No newline at end of file --- 261,268 ---- if ($album_config['album_bbcode'] == 1) { ! include_once($album_root_path . 'includes/album_bbcode.' . $phpEx); } ! include_once($album_root_path . 'includes/album_hierarchy_functions.' . $phpEx); ?> \ No newline at end of file --- album_image_class.php DELETED --- --- album_integration.php DELETED --- --- clown_album_functions.php DELETED --- --- album_bbcode.php DELETED --- --- album_hierarchy_debug.php DELETED --- --- album_nuffimage_box.php DELETED --- |
|
From: OryNider <ory...@us...> - 2008-03-12 22:26:27
|
Update of /cvsroot/mxbb/mx_smartor/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18042/admin Modified Files: Tag: core28x admin_album_auth.php admin_album_cat.php admin_album_cfg.php admin_album_clearcache.php admin_album_clown_SP.php admin_album_config_personal.php admin_album_ext.php admin_album_personal.php Log Message: upgrade to 2.0.1 gold Index: admin_album_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_cfg.php,v retrieving revision 1.4.2.3 retrieving revision 1.4.2.4 diff -C2 -d -r1.4.2.3 -r1.4.2.4 *** admin_album_cfg.php 8 Feb 2008 10:40:31 -0000 1.4.2.3 --- admin_album_cfg.php 12 Mar 2008 22:25:49 -0000 1.4.2.4 *************** *** 74,77 **** --- 74,79 ---- mx_message_die(GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql); } + $default_config[$config_name] = $new[$config_name]; + $mx_cache->put('album_config', $default_config); } } Index: admin_album_clown_SP.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_clown_SP.php,v retrieving revision 1.13.2.3 retrieving revision 1.13.2.4 diff -C2 -d -r1.13.2.3 -r1.13.2.4 *** admin_album_clown_SP.php 8 Feb 2008 10:40:35 -0000 1.13.2.3 --- admin_album_clown_SP.php 12 Mar 2008 22:25:49 -0000 1.13.2.4 *************** *** 72,75 **** --- 72,77 ---- mx_message_die(GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql); } + $default_config[$config_name] = $new[$config_name]; + $mx_cache->put('album_sp_config', $default_config); } } |
|
From: OryNider <ory...@us...> - 2008-03-12 22:26:23
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18042 Modified Files: Tag: core28x album.php album_lists.php db_install.php db_uninstall.php db_upgrade.php hierarchy_db_migrate.php mx_install_readme.htm welcome.php Log Message: upgrade to 2.0.1 gold Index: album.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album.php,v retrieving revision 1.17.2.7 retrieving revision 1.17.2.8 diff -C2 -d -r1.17.2.7 -r1.17.2.8 *** album.php 8 Feb 2008 10:40:39 -0000 1.17.2.7 --- album.php 12 Mar 2008 22:25:43 -0000 1.17.2.8 *************** *** 12,19 **** * MODIFICATIONS * --------------- ! * started : Saturday, January 18, 2004 ! * copyright : © Volodymyr (CLowN) Skoryk ! * email : bla...@ya... ! * version : 1.5 * * MODIFICATIONS: --- 12,19 ---- * MODIFICATIONS [...970 lines suppressed...] ! // include our special personal gallery files ! // this file holds all the code to handle personal galleries ! // except moderation and management of personal gallery categories. ! include ($album_root_path . 'album_personal.' . $phpEx); ! } } ! */ ! album_display_index($album_user_id, ALBUM_ROOT_CATEGORY, true, true, true); ! // Generate the page ! $template->pparse('body'); ! if ( !is_object($mx_block)) ! { ! include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } } ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_upgrade.php,v retrieving revision 1.15.2.4 retrieving revision 1.15.2.5 diff -C2 -d -r1.15.2.4 -r1.15.2.5 *** db_upgrade.php 8 Feb 2008 10:40:41 -0000 1.15.2.4 --- db_upgrade.php 12 Mar 2008 22:25:46 -0000 1.15.2.5 *************** *** 30,34 **** } ! $mx_module_version = '2.0.0'; $mx_module_copy = 'Mx-Publisher <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The Mx-Publisher Development Team</a>'; --- 30,34 ---- } ! $mx_module_version = '2.0.1'; $mx_module_copy = 'Mx-Publisher <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The Mx-Publisher Development Team</a>'; Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_install.php,v retrieving revision 1.15.2.4 retrieving revision 1.15.2.5 diff -C2 -d -r1.15.2.4 -r1.15.2.5 *** db_install.php 8 Feb 2008 10:40:40 -0000 1.15.2.4 --- db_install.php 12 Mar 2008 22:25:44 -0000 1.15.2.5 *************** *** 32,36 **** } ! $mx_module_version = '2.0.0'; $mx_module_copy = 'Mx-Publisher <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The Mx-Publisher Development Team</a>'; --- 32,36 ---- } ! $mx_module_version = '2.0.1'; $mx_module_copy = 'Mx-Publisher <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The Mx-Publisher Development Team</a>'; |
|
From: OryNider <ory...@us...> - 2008-03-12 22:26:03
|
Update of /cvsroot/mxbb/mx_smartor/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18042/language/lang_english Modified Files: Tag: core28x lang_admin.php Log Message: upgrade to 2.0.1 gold |
|
From: OryNider <ory...@us...> - 2008-03-12 22:26:02
|
Update of /cvsroot/mxbb/mx_smartor/docs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18042/docs Modified Files: Tag: core28x albuming.txt Log Message: upgrade to 2.0.1 gold Index: albuming.txt =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/docs/albuming.txt,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** albuming.txt 27 Sep 2007 16:10:56 -0000 1.1.2.3 --- albuming.txt 12 Mar 2008 22:25:56 -0000 1.1.2.4 *************** *** 215,224 **** #-----[ OPEN ]------------------------------------------------ # ! mx_phpbb/includes/forum_hack.php # #-----[ FIND ]------------------------------------------------ # ! include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx); # --- 215,224 ---- #-----[ OPEN ]------------------------------------------------ # ! mx_root_path/common.php # #-----[ FIND ]------------------------------------------------ # ! ?> # |
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15388 Removed Files: Tag: core28x .htaccess album_allpics.php album_cat.php album_cat_sort.php album_comment.php album_comment_delete.php album_comment_edit.php album_delete.php album_download.php album_edit.php album_hotornot.php album_jupload.php album_memberlist.php album_modcp.php album_nuffload.php album_nuffload_pbar.php album_otf.php album_otf_thumbnail.php album_page.php album_pclzip_lib.php album_personal.php album_personal_cat_admin.php album_personal_index.php album_personal_old.php album_personal_random.php album_pic.php album_pic_nuffed.php album_picm.php album_rate.php album_rdf.php album_rss.php album_search.php album_showpage.php album_thumbnail.php album_upload.php index.htm Log Message: --- album_personal.php DELETED --- --- album_edit.php DELETED --- --- album_comment_edit.php DELETED --- --- album_modcp.php DELETED --- --- album_search.php DELETED --- --- album_delete.php DELETED --- --- album_download.php DELETED --- --- album_page.php DELETED --- --- album_pic.php DELETED --- --- album_rss.php DELETED --- --- album_thumbnail.php DELETED --- --- index.htm DELETED --- --- album_hotornot.php DELETED --- --- album_cat_sort.php DELETED --- --- album_showpage.php DELETED --- --- album_cat.php DELETED --- --- album_personal_random.php DELETED --- --- album_comment_delete.php DELETED --- --- album_jupload.php DELETED --- --- album_pclzip_lib.php DELETED --- --- album_allpics.php DELETED --- --- album_picm.php DELETED --- --- album_upload.php DELETED --- --- album_otf_thumbnail.php DELETED --- --- album_rate.php DELETED --- --- album_personal_cat_admin.php DELETED --- --- album_rdf.php DELETED --- --- album_memberlist.php DELETED --- --- album_pic_nuffed.php DELETED --- --- .htaccess DELETED --- --- album_personal_old.php DELETED --- --- album_comment.php DELETED --- --- album_nuffload_pbar.php DELETED --- --- album_otf.php DELETED --- --- album_nuffload.php DELETED --- --- album_personal_index.php DELETED --- |
|
From: OryNider <ory...@us...> - 2008-03-12 07:15:44
|
Update of /cvsroot/mxbb/mx_music In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27206 Modified Files: music_center.pak Added Files: music_flv.php Log Message: new block Index: music_center.pak =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_center.pak,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_center.pak 10 Sep 2007 22:27:38 -0000 1.3 --- music_center.pak 12 Mar 2008 07:15:29 -0000 1.4 *************** *** 1,10 **** ! module=+:57=+:Media Center=+:modules/mx_music/=+:mxBB Media Center=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:57=+:60=+:music_center=+:Media Center=+:music.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Media Center=+:Demo block=+:60=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:57=+:61=+:Music_list=+:Media toplists=+:music_lists.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Media Toplist=+:Demo block=+:61=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 ! function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 1,16 ---- ! module=+:74=+:Media Center=+:modules/mx_music/=+:mxBB Media Center=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:74=+:89=+:music_center=+:Media Center=+:music.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:music_center=+:Demo block=+:89=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:74=+:91=+:music_flv=+:flv_player=+:music_flv.php=+: ! parameter=+:91=+:199=+:flv_file=+:Text=+:no_image.flv=+:=+:1=+:0 ! parameter=+:91=+:200=+:flv_img=+:Text=+:no_image.gif=+:=+:1=+:0 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:music_flv=+:Demo block=+:91=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 ! New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:74=+:90=+:Music_list=+:Media toplists=+:music_lists.php=+: ! parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Music_list=+:Demo block=+:90=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 ! function=+:0=+:0=+:0=+:endoflist=+:0=+:0 \ No newline at end of file --- NEW FILE: music_flv.php --- <?php /** * * @package mxBB Portal Module - mx_music * @version $Id: music_flv.php,v 1.1 2008/03/12 07:15:31 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // ERROR HANDLING // //error_reporting( E_ALL ); @ini_set( 'display_errors', '1' ); $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define('MXBB_MODULE', false); define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; include($phpbb_root_path . 'common.' . $phpEx); include($mx_mod_path . "includes/functions_required.$phpEx"); //Check if forum_hack is installed if (!isset($mx_root_path)) { $mx_root_path = './'; @define('IN_PORTAL', true); include_once($mx_mod_path . "includes/mx_constants.$phpEx"); include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); } else { @define('IN_PORTAL', true); include_once($mx_root_path . "includes/mx_constants.$phpEx"); include_once($mx_root_path . "includes/shared/phpbb2/includes/functions.$phpEx"); //Redefine mx_root_path to include phpbb page_tail.php $mx_root_path = $phpbb_root_path; } require($mx_mod_path . "includes/functions_core.$phpEx"); require($mx_mod_path . "includes/functions_styles.$phpEx"); //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); } //@ini_set( 'display_errors', '1' ); error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables //error_reporting(E_ALL & ~E_NOTICE); define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) // // Instatiate the mx_cache class // $mx_cache = new mx_cache(); // // Get mxBB config settings // //$portal_config = $mx_cache->obtain_mxbb_config(); // // instatiate the mx_request_vars class // $mx_request_vars = new mx_request_vars(); // // Page selector // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $is_block = false; // // instatiate the mx_user class // $mx_user = new mx_user(); if (file_exists("./modcp.$phpEx")) // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); //init_userprefs($userdata); $mx_user->init_style(); //Overwrite template class /* $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x if (!$userdata['user_level'] == ADMIN) { die('Only admins may run this script!!!'); } */ include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx); include_once($phpbb_root_path . 'includes/functions_post.' . $phpEx); } else if (@file_exists("./mcp.$phpEx")) // phpBB3 { define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); $user->setup(); // // End session management // /* $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x if ($userdata['user_type'] != USER_FOUNDER) { die('Only admins may run this script!!!'); } */ include_once($mx_mod_path . "includes/shared/phpbb2/includes/bbcode.$phpEx"); include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions_post.$phpEx"); } else { die('Copy this file in phpbb_root_path were is your viewtopic.php file!!!'); } } else { if( !defined('IN_PORTAL') || !is_object($mx_block)) { @define("IN_PORTAL", true); $mx_root_path = '../../'; // // Let's include some stuff... // $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.' . $phpEx); // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); // // End session management // $block_id = ( !empty($HTTP_GET_VARS['block_id']) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if( empty($block_id) ) { $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Music Center' LIMIT 1"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query Music Center module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $block_id = $row['block_id']; } $is_block = FALSE; } else { // // Read block Configuration // $title = $mx_block->block_info['block_title']; $block_size = isset($block_size) && !empty($block_size) ? $block_size : '100%'; $flv_file = $mx_block->get_parameters('flv_file') ? $mx_block->get_parameters('flv_file') : $music_root_path . 'upload/default.flv'; $flv_img = $mx_block->get_parameters('flv_img') ? $mx_block->get_parameters('flv_img') : $images['no_image']; if(is_object($mx_block)) { $is_block = TRUE; } global $images; } @define("MXBB_MODULE", true); @define("MXBB_27x", file_exists($mx_root_path . "mx_login.$phpEx")); } $music_root_path = $module_root_path . 'music_box/'; // // Get general music information // include_once($module_root_path . "music_box/music_common.$phpEx"); $song_image_path = MUSIC_IMAGE_PATH; $song_image_default = $images['no_image']; // The default image // // Start output of page // $page_title = $lang['Music']; if ( !$is_block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->set_filenames(array( 'body' => 'music_flv_body.tpl') ); if (is_numeric($flv_file)) { $song_id = $flv_file; // ------------------------------------ // PREVIOUS & NEXT // ------------------------------------ if( isset($HTTP_GET_VARS['mode']) ) { if( ($HTTP_GET_VARS['mode'] == 'next') or ($HTTP_GET_VARS['mode'] == 'previous') ) { $sql = "SELECT song_id, song_cat_id, song_user_id FROM ". MUSIC_TABLE ." WHERE song_id = $song_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( empty($row) ) { mx_message_die(GENERAL_ERROR, 'Bad song_id'); } $sql = "SELECT new.song_id, new.song_time FROM ". MUSIC_TABLE ." AS new, ". MUSIC_TABLE ." AS cur WHERE cur.song_id = $song_id AND new.song_id <> cur.song_id AND new.song_cat_id = cur.song_cat_id"; $sql .= ($HTTP_GET_VARS['mode'] == 'next') ? " AND new.song_time >= cur.song_time" : " AND new.song_time <= cur.song_time"; $sql .= ($HTTP_GET_VARS['mode'] == 'next') ? " ORDER BY song_time ASC LIMIT 1" : " ORDER BY song_time DESC LIMIT 1"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if( empty($row) ) { mx_message_die(GENERAL_ERROR, $lang['Song_not_exist']); } $song_id = $row['song_id']; // NEW song_id } } // ------------------------------------ // Get this song info // ------------------------------------ $sql = "SELECT s.*, u.user_id, u.username, r.rate_song_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id LEFT JOIN ". MUSIC_RATE_TABLE ." AS r ON s.song_id = r.rate_song_id LEFT JOIN ". MUSIC_COMMENT_TABLE ." AS c ON s.song_id = c.comment_song_id WHERE song_id = '$song_id' GROUP BY s.song_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query song information', '', __LINE__, __FILE__, $sql); } $thissong = $db->sql_fetchrow($result); $cat_id = $thissong['song_cat_id']; $user_id = $thissong['song_user_id']; if( empty($thissong['song_url']) && !file_exists(MUSIC_UPLOAD_PATH . $thissong['song_filename']) ) { mx_message_die(GENERAL_ERROR, $lang['Song_not_exist']); } if ( $thissong['song_imagename'] == '' ) { $img_id = $song_image_default; } else { $img_id = $song_image_path . $thissong['song_imagename']; } if ( $thissong['song_url'] == '' ) { $song_filetype = substr($thissong['song_filename'], strlen($thissong['song_filename']) - 3, 3); $song_filename = ( !empty($thissong['song_filename']) ? $thissong['song_filename'] : '' ); } else { $song_filetype = substr($thissong['song_url'], strlen($thissong['song_url']) - 3, 3); $song_url = $thissong['song_url']; } // ------------------------------------ // Get the current Category Info // ------------------------------------ $sql = "SELECT * FROM ". MUSIC_CAT_TABLE ." WHERE cat_id = '$cat_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql); } $thiscat = $db->sql_fetchrow($result); if (empty($thiscat)) { mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } // ------------------------------------ // Check the permissions // ------------------------------------ $music_user_access = music_user_access($cat_id, $thiscat, 1, 0, 0, 0, 0, 0); // UPLOAD if ($music_user_access['view'] == 0) { if (!$userdata['session_logged_in']) { mx_redirect(mx_append_sid($mx_root_path . "login.php?redirect=" . this_mo_loginurl("music_mode=music_page&song_id=$song_id"), true)); } else { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } // ------------------------------------ // Check song Approval // ------------------------------------ if ($userdata['user_level'] != ADMIN) { if( ($thiscat['cat_approval'] == ADMIN) or (($thiscat['cat_approval'] == MOD) and !$music_user_access['moderator']) ) { if ($thissong['song_approval'] != 1) { mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } // ------------------------------------ // Increase view counter // ------------------------------------ $sql = "UPDATE ". MUSIC_TABLE ." SET song_view_count = song_view_count + 1 WHERE song_id = '$song_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not update song information', '', __LINE__, __FILE__, $sql); } /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ if( ($thissong['song_user_id'] == MUSIC_GUEST) or ($thissong['username'] == '') ) { $poster = ($thissong['song_username'] == '') ? $lang['Guest'] : $thissong['song_username']; } else { $poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thissong['song_user_id']) .'">'. $thissong['song_username'] .'</a>'; } if ($music_config['rate']) { $template->assign_block_vars('rate_switch', array()); } if ($music_config['comment']) { $template->assign_block_vars('comment_switch', array()); } if ($music_config['download']) { $template->assign_block_vars('download_switch', array()); } $url_player = ''; // // Media Center // if ( $song_filetype == 'swf' ) { $template->assign_block_vars('flash', array()); $url_download = mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); $url_video = $url_download; } else if ( $song_filetype == 'ram' ) { $template->assign_block_vars('ram', array()); $url_download = mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); $url_video = $url_download; } else if ( $song_filetype == '.rm' ) { $template->assign_block_vars('rm', array()); $url_download = mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); $url_video = $url_download; } else if ( $song_filetype == '.qt' ) { $template->assign_block_vars('qt', array()); $url_download = mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); $url_video = $url_download; } else if ( $song_filetype == 'flv' ) { /* if ( !is_object($mx_page) ) { $mx_page = new mx_page(); } $mx_page->add_footer_text( $music_root_path . 'music_player.js', true ); */ $template->assign_block_vars('flv', array()); $url_download = mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); $url_video = $music_root_path . 'music_player.swf'; } else if ( ( $song_filetype == 'jpg' ) || ( $song_filetype == 'gif' ) || ( $song_filetype == 'png' ) ) { $url_download = !empty($thissong['song_url']) ? $thissong['song_url'] : mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); $url_video = $url_download; $row_type = 'img'; $template->assign_block_vars('img', array( 'VIDEO_URL' => $url_video, 'SONG_URL' => $url_video )); } else if( ($song_filetype == 'pls') && !empty($thissong['song_url']) ) { $template->assign_block_vars('media', array()); $url_download = mx_append_sid($module_root_path . 'galerie_media.' . $phpEx . '?music_mode=music_stream&song_id=' . $song_id); $lang['Download'] = ( !empty($lang['Listen']) ? $lang['Listen'] : 'Listen URL' ); $url_video = $url_download; } else if(!empty($thissong['song_url'])) { $host = explode("//", $thissong['song_url']); $host = $host[1]; $host = explode("/", $host); $domain = $host[0]; $counthost = count($host) - 1; $docid2 = $host[$counthost]; // $domaintmp = explode(".", $domain, -1); // Php 5 only // $sitename = implode(".", $domaintmp); function mx_music_sitename($domain) { $domaintmp = explode(".", $domain); $y = count($domaintmp) - 1; $r = ""; for ($a = 0; $y > $a; $a++) { $r .= ".".$domaintmp[$a]; } return $r; } $sitename = substr(mx_music_sitename($domain), 1); function mx_music_sitesufix($domain) { $domaintmp = explode(".", $domain); $y = count($domaintmp) - 1; $r = $domaintmp[$y];; return $r; } $sitesufix = mx_music_sitesufix($domain); if (!empty($sitesufix) ) { if ($sitesufix == 'de') { $sitelngprefix = 'de.'; } else { $sitelngprefix = 'en.'; } } else { $sitelngprefix = ''; } if ($sitename == 'video.google') { $videoid['song_url'] = explode("-", $thissong['song_url']); if (empty($videoid['song_url'][1]) ) { $docid['song_url'] = explode("?", $thissong['song_url']); if (empty($docid['song_url'][1]) ) { $template->assign_block_vars('flashvideo', array()); $url_video = ( !empty($docid['song_url'][1]) ? 'http://' . $domain . '/googleplayer.swf?' . $docid['song_url'][1] : $thissong['song_url'] ); $url_download = ( !empty($docid['song_url'][1]) ? 'http://' . $domain . '/videoplay?' . $docid['song_url'][1] : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); } else { $template->assign_block_vars('youtube', array()); $url_video = ( !empty($docid['song_url'][1]) ? 'http://' . $domain . '/googleplayer.swf?' . $docid['song_url'][1] : $thissong['song_url'] ); $url_download = ( !empty($docid['song_url'][1]) ? 'http://' . $domain . '/videoplay?' . $docid['song_url'][1] : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Share']) ? $lang['Watch'] : 'Watch URL' ); } } else { $template->assign_block_vars('youtube', array()); $url_video = ( !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/googleplayer.swf?docId=-' . $videoid['song_url'][1] : $thissong['song_url'] ); $url_download = ( !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/videoplay?docid=-' . $videoid['song_url'][1] : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Watch']) ? $lang['Watch'] : 'Watch URL' ); } } else if ( ($sitename == 'www.youtube') || ($sitename == 'youtube') ) { $videoid['song_url'] = explode("=", $thissong['song_url']); if (empty($videoid['song_url'][1]) ) { $videoid['song_url'] = explode("/v/", $thissong['song_url']); } if (empty($videoid['song_url'][1]) ) { $template->assign_block_vars('flashvideo', array()); } else { $template->assign_block_vars('youtube', array()); } if ($sitename == 'www.youtube') { $domain = 'youtube.' . $sitesufix; } $url_download = mx_append_sid($thissong['song_url']); $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); $img_id = !empty($thissong['song_imagename']) ? $thissong['song_imagename'] : 'http://img.' . $domain . '/vi/' . $videoid['song_url'][1] . '/default.jpg'; $url_video = !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/v/' . $videoid['song_url'][1] : $url_download; //$url_player = !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/player2.swf?video_id=' . $videoid['song_url'][1] : $url_download; } else if ( ($sitename == 'www.clipfish') || ($sitename == 'clipfish') ) { $thisvid['song_url'] = explode("videoid", $thissong['song_url']); $videoid['song_url'] = explode("=", $thisvid['song_url'][1]); if (empty($videoid['song_url'][1]) ) { $template->assign_block_vars('flashvideo', array()); $url_download = mx_append_sid($thissong['song_url']); $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); $url_video = $url_download; } else { $template->assign_block_vars('youtube', array()); $url_download = ( !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/player.php?videoid=' . $videoid['song_url'][1] : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Watch']) ? $lang['Watch'] : 'Watch URL' ); $url_video = ( !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/videoplayer.swf?as=0&videoid=' . $videoid['song_url'][1] : $url_download ); } } else if ( ($sitename == 'www.myvideo') || ($sitename == 'myvideo') ) { if (empty($docid2) ) { $template->assign_block_vars('flashvideo', array()); $url_download = mx_append_sid($thissong['song_url']); $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); $url_video = $url_download; } else { $template->assign_block_vars('youtube', array()); $url_download = ( !empty($docid2) ? 'http://' . $domain . '/watch/' . $docid2 : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); $url_video = ( !empty($docid2) ? 'http://' . $domain . '/movie/' . $docid2 : $url_download ); } } else if ( ($sitename == 'de.sevenload') || ($sitename == 'sevenload') || ($sitename == 'page.sevenload') || ($sitename == 'www.sevenload') ) { $videoid['song_url'] = explode("=", $thissong['song_url']); if (empty($videoid['song_url'][1]) ) { if (empty($docid2) ) { $template->assign_block_vars('flashvideo', array()); $url_download = mx_append_sid($thissong['song_url']); $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); $url_video = $url_download; } else { $template->assign_block_vars('youtube', array()); $url_download = ( !empty($docid2) ? 'http://' . $sitelngprefix . 'sevenload.' . 'com' . '/videos/' . $docid2 : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); $url_video = ( !empty($docid2) ? 'http://' . $domain . '/swf/player.swf?id=' . $docid2 : $url_download ); } } else { $template->assign_block_vars('youtube', array()); $url_download = ( !empty($videoid['song_url'][1]) ? 'http://' . $sitelngprefix . 'sevenload.'. 'com' . '/videos/' . $videoid['song_url'][1] : $thissong['song_url'] ); $lang['Download'] = ( !empty($lang['Share']) ? $lang['Share'] : 'Share URL' ); $url_video = ( !empty($videoid['song_url'][1]) ? 'http://' . $domain . '/swf/player.swf?id=' . $videoid['song_url'][1] : $url_download ); } } else { $template->assign_block_vars('media', array()); $url_download = mx_append_sid($thissong['song_url']); $lang['Download'] = ( !empty($lang['Direct_url']) ? $lang['Direct_url'] : 'Direct URL' ); $url_video = $url_download; } } else { $template->assign_block_vars('media', array()); //$url_download = mx_append_sid($module_root_path . 'galerie_media.' . $phpEx . '?music_mode=music_download&song_id=' . $song_id); $url_download = mx_append_sid(this_mo_mxurl("music_mode=music_download&song_id=" . $song_id)); $url_video = $url_download; } if ( $song_filetype == 'flv' ) { $url_song = PORTAL_URL . MUSIC_UPLOAD_PATH . $thissong['song_filename']; } else { $url_song = mx_append_sid(this_mo_mxurl("music_mode=music_song&song_id=" . $song_id, true)); } $template->assign_vars(array( 'CAT_TITLE' => $thiscat['cat_title'], 'U_VIEW_CAT' => mx_append_sid(this_mo_mxurl("music_mode=music_cat&cat_id=$cat_id")), 'U_SONG' => $url_song, 'U_IMG' => mx_append_sid("$img_id"), 'SONG_TITLE' => $thissong['song_title'], 'SONG_URL' => !empty($thissong['song_url']) ? $thissong['song_url'] : $url_song, 'SONG_THUMB_URL' => !empty($thissong['song_url']) ? $thissong['song_url'] : mx_append_sid(this_mo_mxurl("music_mode=music_song&song_id=" . $song_id . "&item_size=425", true)), 'SONG_FULL_URL' => !empty($thissong['song_url']) ? $thissong['song_url'] : mx_append_sid(this_mo_mxurl("music_mode=music_song&song_id=" . $song_id . "&item_size=800", true)), 'VIDEO_URL' => !empty($url_player) ? $url_player : $url_video, 'SONG_DESC' => nl2br($thissong['song_desc']), 'SINGER' => $thissong['song_singer'], 'POSTER' => $poster, 'SONG_TIME' => (@function_exists( 'create_date' )) ? create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']) : phpBB2::create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']), 'SONG_VIEW' => $thissong['song_view_count'], 'SONG_DOWNLOAD' => ( !empty($thissong['song_download_count']) ? $thissong['song_download_count'] : '0' ), 'SONG_RATING' => ($thissong['rating'] != 0) ? round($thissong['rating'], 2) : $lang['Not_rated'], 'SONG_COMMENTS' => $thissong['comments'], 'U_RATE' => mx_append_sid(this_mo_mxurl("music_mode=music_rate&song_id=$song_id")), 'U_COMMENT' => mx_append_sid(this_mo_mxurl("music_mode=music_comment&song_id=$song_id")), 'U_DOWNLOAD' => $url_download, 'U_NEXT' => mx_append_sid(this_mo_mxurl("music_mode=music_page&song_id=$song_id&mode=next")), 'U_PREVIOUS' => mx_append_sid(this_mo_mxurl("music_mode=music_page&song_id=$song_id&mode=previous")), 'L_NEXT' => $lang['Next'], 'L_PREVIOUS' => $lang['Previous'], 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'MUSIC_VERSION' => '2' . $music_config['music_version'], 'L_INDEX' => '<<', 'U_INDEX' => mx_append_sid($mx_root_path . "index.".$phpEx), 'L_MUSIC_INDEX' => $lang['Music'], 'L_MUSIC' => $lang['Music'], 'U_MUSIC' => mx_append_sid(this_mo_mxurl()), 'U_MX_MUSIC' => mx_append_sid(this_mo_portalurl()), 'WIDTH' => ( !empty($media_width) ? $media_width : '228' ), 'HEIGHT' => ( !empty($media_height) ? $media_height : '300' ), 'FLASH' => 'flash', 'RAM' => 'ram', 'FLASHVIDEO' => 'flashvideo', 'YOUTUBE' => 'youtube', 'QT' => 'qt', 'FLV' => 'flv', 'IMG' => 'img', 'MEDIA' => 'media', 'L_RATING' => $lang['Rating'], 'L_SONG_TITLE' => $lang['Song_Title'], 'L_SONG_DESC' => $lang['Song_Desc'], 'L_SINGER' => $lang['Singer'], 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], 'L_VIEW' => $lang['View'], 'L_DOWNLOAD' => $lang['Download'], 'L_COMMENTS' => $lang['Comments']) ); } else { $template->assign_block_vars('flv', array()); $url_download = ''; $url_video = $music_root_path . 'music_player.swf'; if (@file_exists($mx_root_path . $flv_file)) { $url_song = PORTAL_URL . $flv_file; } elseif (@file_exists($mx_root_path . 'modules/mx_music/upload/' . $flv_file)) { $url_song = PORTAL_URL . 'modules/mx_music/upload/' . $flv_file; } else { $url_song = $flv_file; } if (@file_exists($mx_root_path . $flv_img)) { $img_id = PORTAL_URL . $flv_img; } elseif (@file_exists($mx_root_path . 'modules/mx_music/upload/song_image/' . $flv_img)) { $img_id = PORTAL_URL . 'modules/mx_music/upload/song_image/' . $flv_img; } else { $img_id = $flv_img; } $template->assign_vars(array( 'CAT_TITLE' => '', 'U_VIEW_CAT' => '', 'U_SONG' => $url_song, 'U_IMG' => mx_append_sid("$img_id"), 'SONG_TITLE' => '', 'SONG_URL' => $url_song, 'SONG_THUMB_URL' => $flv_img, 'SONG_FULL_URL' => '', 'VIDEO_URL' => $url_video, 'SONG_DESC' => '', 'SINGER' => '', 'POSTER' => '', 'SONG_TIME' => '', 'SONG_VIEW' => '', 'SONG_DOWNLOAD' => '', 'SONG_RATING' => '', 'SONG_COMMENTS' => '', 'U_RATE' => '', 'U_COMMENT' => '', 'U_DOWNLOAD' => '', 'U_NEXT' => '', 'U_PREVIOUS' => '', 'L_NEXT' => $lang['Next'], 'L_PREVIOUS' => $lang['Previous'], 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', 'MUSIC_VERSION' => '2' . $music_config['music_version'], 'L_INDEX' => '<<', 'U_INDEX' => mx_append_sid($mx_root_path . "index.".$phpEx), 'L_MUSIC_INDEX' => $lang['Music'], 'L_MUSIC' => $lang['Music'], 'U_MUSIC' => mx_append_sid(this_mo_mxurl()), 'U_MX_MUSIC' => mx_append_sid(this_mo_portalurl()), 'WIDTH' => ( !empty($media_width) ? $media_width : '228' ), 'HEIGHT' => ( !empty($media_height) ? $media_height : '300' ), 'FLASH' => 'flash', 'RAM' => 'ram', 'FLASHVIDEO' => 'flashvideo', 'YOUTUBE' => 'youtube', 'QT' => 'qt', 'FLV' => 'flv', 'IMG' => 'img', 'MEDIA' => 'media', 'L_RATING' => $lang['Rating'], 'L_SONG_TITLE' => $lang['Song_Title'], 'L_SONG_DESC' => $lang['Song_Desc'], 'L_SINGER' => $lang['Singer'], 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], 'L_VIEW' => $lang['View'], 'L_DOWNLOAD' => $lang['Download'], 'L_COMMENTS' => $lang['Comments']) ); } // // Generate the page // $template->pparse('body'); if (!$is_block) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } ?> |
|
From: OryNider <ory...@us...> - 2008-03-12 07:15:43
|
Update of /cvsroot/mxbb/mx_music/upload/song_image In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27206/upload/song_image Added Files: no_image.gif Log Message: new block --- NEW FILE: no_image.gif --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2008-03-12 07:15:43
|
Update of /cvsroot/mxbb/mx_music/upload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27206/upload Added Files: no_image.flv Log Message: new block --- NEW FILE: no_image.flv --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2008-03-12 05:05:54
|
Update of /cvsroot/mxbb/mx_mod_core/root In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22568 Modified Files: mx_mod_install.php mx_mod_uninstall.php Log Message: Index: mx_mod_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_mod_core/root/mx_mod_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_mod_install.php 10 Mar 2008 06:02:35 -0000 1.1 --- mx_mod_install.php 12 Mar 2008 05:05:02 -0000 1.2 *************** *** 16,19 **** --- 16,28 ---- define( 'IN_PHPBB', true ); + if (file_exists("./modcp.$phpEx")) // phpBB2 + { + define('PORTAL_BACKEND', 'phpbb2'); + } + else if (@file_exists("./mcp.$phpEx")) // phpBB3 + { + define('PORTAL_BACKEND', 'phpbb3'); + } + $phpbb_root_path = $module_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; *************** *** 39,43 **** require($mx_mod_path . "includes/functions_core.$phpEx"); require($mx_mod_path . "includes/functions_styles.$phpEx"); ! //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) --- 48,52 ---- require($mx_mod_path . "includes/functions_core.$phpEx"); require($mx_mod_path . "includes/functions_styles.$phpEx"); ! //Check for cash mod if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) *************** *** 71,76 **** // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); - - $is_block = false; // --- 80,83 ---- *************** *** 79,87 **** $mx_user = new mx_user(); ! if (file_exists("./modcp.$phpEx")) // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; ! // // Start user session --- 86,96 ---- $mx_user = new mx_user(); ! $is_block = false; ! ! if (PORTAL_BACKEND == 'phpbb2') // phpBB2 { define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; ! // // Start user session *************** *** 90,93 **** --- 99,103 ---- $mx_user->init($user_ip, $page_id, false); init_userprefs($userdata); + //$mx_user->init_style(); //Overwrite template class $mx_user->set_module_default_style('prosilver'); // For compatibility with core 2.8.x *************** *** 99,105 **** } ! else if (@file_exists("./mcp.$phpEx")) // phpBB3 { - define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; --- 109,114 ---- } ! else if (PORTAL_BACKEND == 'phpbb3') // phpBB3 { $tplEx = 'html'; Index: mx_mod_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_mod_core/root/mx_mod_uninstall.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_mod_uninstall.php 10 Mar 2008 06:02:35 -0000 1.1 --- mx_mod_uninstall.php 12 Mar 2008 05:05:02 -0000 1.2 *************** *** 16,19 **** --- 16,28 ---- define( 'IN_PHPBB', true ); + if (file_exists("./modcp.$phpEx")) // phpBB2 + { + define('PORTAL_BACKEND', 'phpbb2'); + } + else if (@file_exists("./mcp.$phpEx")) // phpBB3 + { + define('PORTAL_BACKEND', 'phpbb3'); + } + $phpbb_root_path = $module_root_path = './'; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; *************** *** 79,87 **** $mx_user = new mx_user(); ! if (file_exists("./modcp.$phpEx")) // phpBB2 { - define('PORTAL_BACKEND', 'phpbb2'); $tplEx = 'tpl'; ! // // Start user session --- 88,95 ---- $mx_user = new mx_user(); ! if (PORTAL_BACKEND == 'phpbb2') // phpBB2 { $tplEx = 'tpl'; ! // // Start user session *************** *** 99,105 **** } ! else if (@file_exists("./mcp.$phpEx")) // phpBB3 { - define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; --- 107,112 ---- } ! else if (PORTAL_BACKEND == 'phpbb3') // phpBB3 { $tplEx = 'html'; |
|
From: Jon O. <jon...@us...> - 2008-03-11 21:05:41
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32144 Modified Files: mx_functions_style.php Log Message: Reduced code with a help method for doing all ifs in make_filename() Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** mx_functions_style.php 11 Mar 2008 19:57:47 -0000 1.64 --- mx_functions_style.php 11 Mar 2008 21:05:36 -0000 1.65 *************** *** 195,198 **** --- 195,199 ---- // $filename2 = substr_count($filename, 'html') ? str_replace(".html", ".tpl", $filename) : str_replace(".tpl", ".html", $filename); + // // Look at MX-Publisher-Module folder.........................................................................MX-Publisher-module *************** *** 203,274 **** $moduleDefault = !empty($mx_user->loaded_default_styles[$mx_block->module_root_path]) ? $mx_user->loaded_default_styles[$mx_block->module_root_path] : $mx_user->default_template_name; ! if( file_exists($module_root_path . 'templates/' . $style_path . '/' . $filename) ) ! { ! // ! // First check current template ! // ! $filename = $module_root_path . 'templates/' . $style_path . '/' . $filename; ! $this->module_template_path = 'templates/' . $style_path . '/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $style_path . '/' . $filename2) ) ! { ! // ! // tpl - html ! // ! $filename = $module_root_path . 'templates/' . $style_path . '/' . $filename2; ! $this->module_template_path = 'templates/' . $style_path . '/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename) && !empty($mx_user->cloned_template_name)) ! { ! // ! // Then check Cloned template ! // ! $filename = $module_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename; ! $this->module_template_path = 'templates/' . $mx_user->cloned_template_name . '/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename2) && !empty($mx_user->cloned_template_name)) ! { ! // ! // tpl - html ! // ! $filename = $module_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename2; ! $this->module_template_path = 'templates/' . $mx_user->cloned_template_name . '/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $moduleDefault . '/' . $filename) ) ! { ! // ! // Then check default template ! // ! $filename = $module_root_path . 'templates/' . $moduleDefault . '/' . $filename; ! $this->module_template_path = 'templates/' . $moduleDefault . '/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $moduleDefault . '/' . $filename2) ) ! { ! // ! // tpl - html ! // ! $filename = $module_root_path . 'templates/' . $moduleDefault . '/' . $filename2; ! $this->module_template_path = 'templates/' . $moduleDefault . '/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $filename) ) ! { ! // ! // Finally check the template root (for compatibility with some old modules) ! // ! $filename = $module_root_path . 'templates/' . $filename; ! $this->module_template_path = 'templates/'; ! } ! else if( file_exists($module_root_path . 'templates/' . $filename2) ) ! { ! // ! // tpl - html ! // ! $filename = $module_root_path . 'templates/' . $filename2; ! $this->module_template_path = 'templates/'; ! } if (!empty($this->module_template_path)) { ! return $filename; } } --- 204,217 ---- $moduleDefault = !empty($mx_user->loaded_default_styles[$mx_block->module_root_path]) ? $mx_user->loaded_default_styles[$mx_block->module_root_path] : $mx_user->default_template_name; ! $fileSearch = array(); ! $fileSearch[] = $style_path; // First check current template ! $fileSearch[] = $mx_user->cloned_template_name; // Then check Cloned template ! $fileSearch[] = $moduleDefault; // Finally check Default template ! $fileSearch[] = './'; // Compatibility with primitive modules + $temppath = $this->doFileSearch($fileSearch, $filename, $filename2, 'templates/', $module_root_path); if (!empty($this->module_template_path)) { ! return $temppath; } } *************** *** 277,458 **** // Look at MX-Publisher-Root folder.........................................................................MX-Publisher-Root // ! if( file_exists($mx_root_path . 'templates/' . $style_path . '/' . $filename) ) ! { ! // ! // First check current template ! // ! $filename = $mx_root_path . 'templates/' . $style_path . '/' . $filename; ! } ! else if( file_exists($mx_root_path . 'templates/' . $style_path . '/' . $filename2) ) ! { ! // ! // tpl - html ! // ! $filename = $mx_root_path . 'templates/' . $style_path . '/' . $filename2; ! } ! else if( file_exists($mx_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename) && !empty($mx_user->cloned_template_name)) ! { ! // ! // Then check Cloned template ! // ! $filename = $mx_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename; ! } ! else if( file_exists($mx_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename2) && !empty($mx_user->cloned_template_name)) ! { ! // ! // tpl - html ! // ! $filename = $mx_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename2; ! } ! else if( file_exists($mx_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename) ) ! { ! // ! // Then check Default template ! // ! $filename = $mx_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename; ! } ! else if( file_exists($mx_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename2) ) { ! // ! // tpl - html ! // ! $filename = $mx_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename2; } // // Look at Custom Root folder..............this is used my mx_mod installers too.......this does not use standard templates folders wich are set when the template was re-initialized and defined as custom var // ! else if( file_exists( $this->root . '/' . $filename) ) ! { ! $filename = $this->root . '/' . $filename; ! } ! else if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) ! { ! // ! // First check current template ! // ! $filename = $this->root . '/' . $style_path . '/' . $filename; ! } ! else if( file_exists($this->root . '/' . $style_path . '/' . $filename2) ) ! { ! // ! // tpl - html ! // ! $filename = $this->root. '/' . $style_path . '/' . $filename2; ! } ! else if( file_exists($this->root . '/' . $mx_user->default_template_name . '/' . $filename) ) { ! // ! // Then check current template ! // ! $filename = $mx_root_path . '/' . $mx_user->default_template_name . '/' . $filename; } ! else if( file_exists($this->root . '/' . $moduleDefault . '/' . $filename) ) { // ! // Finally check the Custom Root folde(for compatibility with some old modules) // ! $filename = $this->root . '/' . $moduleDefault . '/' . $filename; ! } ! else ! { // ! // phpBB.........................................................................phpBB // ! switch (PORTAL_BACKEND) ! { ! // ! // Look at phpBB2-Root folder... ! // ! case 'internal': ! case 'phpbb2': ! if( file_exists($phpbb_root_path . 'templates/' . $style_path . '/' . $filename) ) ! { ! // ! // First check current template ! // ! $filename = $phpbb_root_path . 'templates/' . $style_path . '/' . $filename; ! } ! else if( file_exists($phpbb_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename) && !empty($mx_user->cloned_template_name)) ! { ! // ! // Then check Cloned ! // ! $filename = $phpbb_root_path . 'templates/' . $mx_user->cloned_template_name . '/' . $filename; ! } ! else if( file_exists($phpbb_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename) && !empty($mx_user->default_template_name)) ! { ! // ! // Then check Default ! // ! $filename = $phpbb_root_path . 'templates/' . $mx_user->default_template_name . '/' . $filename; ! } ! else if( file_exists($phpbb_root_path . $this->root . '/' . $filename) ) ! { ! $filename = $phpbb_root_path . $this->root . '/' . $filename; ! } ! else if( file_exists($this->root . '/' . $filename) ) ! { ! // ! // Check if it's an absolute or relative path. ! // ! if( substr($filename, 0, 1) != '/' ) ! { ! $filename = ($rp_filename = phpBB2::phpbb_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename; ! } ! } ! break; // ! // Look at phpBB3-Root folder... // ! case 'phpbb3': ! if( file_exists($phpbb_root_path . 'styles/' . $style_path . '/' . 'theme/' . $filename) ) ! { ! // ! // First check current template ! // ! $filename = $phpbb_root_path . 'styles/' . $style_path . '/' . 'theme/' . $filename; ! } ! else if( file_exists($phpbb_root_path . 'styles/' . $mx_user->cloned_template_name . '/' . 'theme/' . $filename) && !empty($mx_user->cloned_template_name)) ! { ! // ! // Then check Cloned Template ! // ! $filename = $phpbb_root_path . 'styles/' . $mx_user->cloned_template_name . '/' . 'theme/' . $filename; ! } ! else if( file_exists($phpbb_root_path . $this->root . '/' . $filename) ) ! { ! $filename = $phpbb_root_path . $this->root . '/' . $filename; ! } ! if( file_exists($phpbb_root_path . 'adm/style/' . $filename) ) ! { ! // ! // First check ACP template ! // ! $filename = $phpbb_root_path . 'adm/style/' . $filename; ! } ! else if( file_exists($this->root . '/' . $filename) ) { ! // ! // Check if it's an absolute or relative path. ! // ! if( substr($filename, 0, 1) != '/' ) ! { ! $filename = ($rp_filename = phpBB2::phpbb_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename; ! } } ! ! break; } ! ! if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist. <br />Class-Root: $this->root <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); } } - - return $filename; } --- 220,361 ---- // Look at MX-Publisher-Root folder.........................................................................MX-Publisher-Root // ! $fileSearch = array(); ! $fileSearch[] = $style_path; // First check current template ! $fileSearch[] = $mx_user->cloned_template_name; // Then check Cloned template ! $fileSearch[] = $mx_user->default_template_name; // Then check Default template ! $fileSearch[] = './'; ! ! $temppath = $this->doFileSearch($fileSearch, $filename, $filename2, 'templates/'); ! if (!empty($this->module_template_path)) { ! return $temppath; } + // // Look at Custom Root folder..............this is used my mx_mod installers too.......this does not use standard templates folders wich are set when the template was re-initialized and defined as custom var // ! $fileSearch = array(); ! $fileSearch[] = './'; ! $fileSearch[] = $style_path; // First check current template ! $fileSearch[] = $mx_user->cloned_template_name; // Then check Cloned template ! $fileSearch[] = $mx_user->default_template_name; // Then check Default template ! ! $temppath = $this->doFileSearch($fileSearch, $filename, $filename2, $this->root); ! if (!empty($this->module_template_path)) { ! return $temppath; } ! ! ! // ! // phpBB.........................................................................phpBB ! // ! switch (PORTAL_BACKEND) { // ! // Look at phpBB2-Root folder... // ! case 'internal': ! case 'phpbb2': ! ! $fileSearch = array(); ! $fileSearch[] = $style_path; // First check current template ! $fileSearch[] = $mx_user->cloned_template_name; // Then check Cloned template ! $fileSearch[] = $mx_user->default_template_name; // Then check Default template ! $fileSearch[] = './'; ! ! $temppath = $this->doFileSearch($fileSearch, $filename, $filename2, 'templates/', $phpbb_root_path, false); ! if (!empty($this->module_template_path)) ! { ! return $temppath; ! } ! ! break; // ! // Look at phpBB3-Root folder... // ! case 'phpbb3': ! $fileSearch = array(); ! $fileSearch[] = $style_path . '/' . 'theme'; // First check current template ! $fileSearch[] = $mx_user->cloned_template_name . '/' . 'theme'; // Then check Cloned template ! $fileSearch[] = $mx_user->default_template_name . '/' . 'theme'; // Then check Default template ! $fileSearch[] = './'; ! $temppath = $this->doFileSearch($fileSearch, $filename, $filename2, 'styles/', $phpbb_root_path, false); ! if (!empty($this->module_template_path)) ! { ! return $temppath; ! } // ! // This doesn't fit in...so left as is. // ! if( file_exists($phpbb_root_path . 'adm/style/' . $filename) ) ! { ! // ! // First check ACP template ! // ! $this->module_template_path = $phpbb_root_path . 'adm/style/'; ! $temppath = $phpbb_root_path . 'adm/style/' . $filename; ! } ! ! if (!empty($this->module_template_path)) ! { ! return $temppath; ! } ! ! break; ! } ! ! die("Template->make_filename(): Error - file $filename does not exist. <br />Class-Root: $this->root <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); ! } ! ! /** ! * Help function ! * ! * @param unknown_type $fileSearch ! * @param unknown_type $filename ! * @param unknown_type $filename2 ! * @param unknown_type $module_root_path ! * @return unknown ! */ ! function doFileSearch($fileSearch, $filename, $filename2, $root, $module_root_path = '', $check_file2 = true) ! { ! foreach ($fileSearch as $key => $path) ! { ! if (!empty($path)) ! { ! if( file_exists($module_root_path . $root . $path . '/' . $filename) ) ! { ! $this->module_template_path = $root . $path . '/'; ! return $module_root_path . $root . $path . '/' . $filename; ! } ! if ($check_file2) ! { ! if( file_exists($module_root_path . $root . $path . '/' . $filename2) ) { ! $this->module_template_path = $root . $path . '/'; ! return $module_root_path . $root . $path . '/' . $filename2; } ! } } ! else if ($path == './') { ! if( file_exists($module_root_path . $root . $filename) ) ! { ! $this->module_template_path = $root; ! return $module_root_path . $root . $filename; ! } ! if ($check_file2) ! { ! if( file_exists($module_root_path . $root . $filename2) ) ! { ! $this->module_template_path = $root; ! return $module_root_path . $root . $filename2; ! } ! } } } } |
|
From: Jon O. <jon...@us...> - 2008-03-11 20:39:42
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9766 Modified Files: mx_functions_core.php Log Message: typho Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** mx_functions_core.php 11 Mar 2008 19:57:47 -0000 1.85 --- mx_functions_core.php 11 Mar 2008 20:39:36 -0000 1.86 *************** *** 281,285 **** // $sql = "SELECT blk.*, ! mdl.module_path fnc.function_file, fnc.function_id, fnc.function_admin FROM " . BLOCK_TABLE . " blk, --- 281,285 ---- // $sql = "SELECT blk.*, ! mdl.module_path, fnc.function_file, fnc.function_id, fnc.function_admin FROM " . BLOCK_TABLE . " blk, |
|
From: Jon O. <jon...@us...> - 2008-03-11 19:58:34
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4607 Modified Files: Tag: core28x mx_functions_style.php Log Message: core now support modulename.cfg out of the box ;) Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.23 retrieving revision 1.17.2.24 diff -C2 -d -r1.17.2.23 -r1.17.2.24 *** mx_functions_style.php 9 Mar 2008 11:55:14 -0000 1.17.2.23 --- mx_functions_style.php 11 Mar 2008 19:58:29 -0000 1.17.2.24 *************** *** 47,52 **** function mx_Template($root = '.') { ! $this->root = $root; ! parent::Template($this->root); } --- 47,59 ---- function mx_Template($root = '.') { ! parent::Template($root); ! ! // ! // Temp solution when the rootdir is not created ! // ! if (empty($this->root)) ! { ! $this->root = $root; ! } } *************** *** 147,151 **** $filename = $this->root . '/' . $filename; } ! if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) { // --- 154,158 ---- $filename = $this->root . '/' . $filename; } ! else if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) { // *************** *** 237,240 **** --- 244,248 ---- define('MX_IMAGES' , 50); define('MX_IMAGES_NONE' , 60); + define('MX_LANG_CUSTOM' , 70); /**#@-*/ *************** *** 277,280 **** --- 285,289 ---- var $default_module_style = ''; + var $module_lang_path = array(); var $is_admin = false; *************** *** 737,740 **** --- 746,750 ---- { global $images, $board_config, $template, $phpbb_root_path, $mx_root_path, $theme, $current_module_images; + global $mx_block; //unset($GLOBALS['MX_TEMPLATE_CONFIG']); *************** *** 742,745 **** --- 752,760 ---- // + // Load module cfg + // + $moduleCfgFile = str_replace('/', '', str_replace('modules/', '', $mx_block->module_root_path)); + + // // Load mxBB Template configuration data // - First try current template *************** *** 749,770 **** $default_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->template_name; ! ! // ! // If use default template with difrent modules config file name ! // ! if (!empty($this->module_cfg_name[$module_root_path])) ! { ! $module_cfg_info = "<br />Custom module config file: " . $this->module_cfg_name[$module_root_path]; ! $default_cfg_file = $this->module_cfg_name[$module_root_path]; ! ! } ! else { ! $module_cfg_info = "<br />Custom module config file: Not set"; ! $default_cfg_file = false; } - - - @include($mx_root_path . $module_root_path . $this->current_template_path . '/' . $this->template_name . '.cfg'); // --- 764,773 ---- $default_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->template_name; ! ! @include($mx_root_path . $module_root_path . $this->current_template_path . '/' . $template_name . '.cfg'); ! if (!$mx_template_config) { ! @include($mx_root_path . $module_root_path . $this->current_template_path . '/' . $moduleCfgFile . '.cfg'); } // *************** *** 775,781 **** $current_template_path = $module_root_path . $this->cloned_current_template_path; $template_name = $this->cloned_template_name; - $default_cfg_file = ($default_cfg_file) ? $default_cfg_file : $this->cloned_template_name; ! @include($mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $default_cfg_file . '.cfg'); } --- 778,787 ---- $current_template_path = $module_root_path . $this->cloned_current_template_path; $template_name = $this->cloned_template_name; ! @include($mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $template_name . '.cfg'); ! if (!$mx_template_config) ! { ! @include($mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $moduleCfgFile . '.cfg'); ! } } *************** *** 787,807 **** $current_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->default_template_name; - $default_cfg_file = ($default_cfg_file) ? $default_cfg_file : $this->default_template_name; ! @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $default_cfg_file . '.cfg'); } - - // - // If use default module template intead - // - if ( !$mx_template_config ) - { - $current_template_path = $module_root_path . $this->default_module_style; - $template_name = $this->default_module_style; - $default_cfg_file = ($default_cfg_file) ? $default_cfg_file : $this->default_module_style; - @include($mx_root_path . $module_root_path . $this->default_module_style . '/' . $default_cfg_file . '.cfg'); - } - // // We have no template to use - die --- 793,804 ---- $current_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->default_template_name; ! @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $template_name . '.cfg'); ! if (!$mx_template_config) ! { ! @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $moduleCfgFile . '.cfg'); ! } } // // We have no template to use - die *************** *** 809,813 **** if ( !$mx_template_config ) { ! mx_message_die(CRITICAL_ERROR, "Could not open " . $mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $this->cloned_template_name . '.cfg' . " style config file or file can not be validated. <br /> Current style: $this->template_name <br />Cloned style: $this->cloned_template_name <br />Default style: $this->default_template_name <br />Custom module default style: $this->default_module_style $module_cfg_info", '', __LINE__, __FILE__); } --- 806,810 ---- if ( !$mx_template_config ) { ! mx_message_die(CRITICAL_ERROR, "Could not open " . $mx_root_path . $module_root_path . $this->default_current_template_path . " style config file", '', __LINE__, __FILE__); } *************** *** 862,866 **** if (!empty($this->module_lang_path[$mx_block->module_root_path])) { ! $module_lang_path = $this->module_lang_path[$mx_block->module_root_path]; } else --- 859,863 ---- if (!empty($this->module_lang_path[$mx_block->module_root_path])) { ! $module_lang_path = $this->module_lang_path[$mx_block->module_root_path]; } else *************** *** 1036,1052 **** } - function set_module_cfg_name($module_cfg_name = '') - { - global $mx_block; - - $this->module_cfg_name[$mx_block->module_root_path] = $module_cfg_name; - } - function set_module_lang_path($module_lang_path = '') { global $mx_block; ! $this->module_lang_path[$mx_block->module_root_path] = $module_lang_path; } } // class mx_user ?> \ No newline at end of file --- 1033,1043 ---- } function set_module_lang_path($module_lang_path = '') { global $mx_block; ! $this->module_lang_path[$mx_block->module_root_path] = $module_lang_path; } + } // class mx_user ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2008-03-11 19:57:55
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3570 Modified Files: mx_functions_core.php mx_functions_style.php template.php Log Message: core now support modulename.cfg out of the box ;) Index: template.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/template.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** template.php 10 Feb 2008 23:05:13 -0000 1.26 --- template.php 11 Mar 2008 19:57:47 -0000 1.27 *************** *** 94,98 **** // Default template directory. // If file for default template isn't found file from this template is used. ! var $tpldef = 'subSilver'; // this will hash handle names to the compiled code for that handle. --- 94,99 ---- // Default template directory. // If file for default template isn't found file from this template is used. ! //var $tpldef = 'subSilver'; ! var $tpldef = '_core'; // this will hash handle names to the compiled code for that handle. Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** mx_functions_core.php 9 Mar 2008 23:38:00 -0000 1.84 --- mx_functions_core.php 11 Mar 2008 19:57:47 -0000 1.85 *************** *** 281,285 **** // $sql = "SELECT blk.*, ! mdl.module_path, fnc.function_file, fnc.function_id, fnc.function_admin FROM " . BLOCK_TABLE . " blk, --- 281,285 ---- // $sql = "SELECT blk.*, ! mdl.module_path fnc.function_file, fnc.function_id, fnc.function_admin FROM " . BLOCK_TABLE . " blk, Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** mx_functions_style.php 9 Mar 2008 23:49:46 -0000 1.63 --- mx_functions_style.php 11 Mar 2008 19:57:47 -0000 1.64 *************** *** 153,158 **** function mx_Template($root = '.') { ! $this->root = $root; ! parent::Template($this->root); } --- 153,165 ---- function mx_Template($root = '.') { ! parent::Template($root); ! ! // ! // Temp solution when the rootdir is not created ! // ! if (empty($this->root)) ! { ! $this->root = $root; ! } } *************** *** 319,323 **** $filename = $this->root . '/' . $filename; } ! if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) { // --- 326,330 ---- $filename = $this->root . '/' . $filename; } ! else if( file_exists($this->root . '/' . $style_path . '/' . $filename) ) { // *************** *** 528,531 **** --- 535,539 ---- var $default_module_style = ''; + var $module_lang_path = array(); var $is_admin = false; *************** *** 725,729 **** $board_config['default_lang'] = 'english'; } ! include($phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx"); // Also include phpBB admin lang keys include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . "/lang_admin.$phpEx"); // Also include mxP Admin lang keys --- 733,737 ---- $board_config['default_lang'] = 'english'; } ! include($phpbb_lang_path . "lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx"); // Also include phpBB admin lang keys include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . "/lang_admin.$phpEx"); // Also include mxP Admin lang keys *************** *** 1239,1242 **** --- 1247,1251 ---- { global $images, $board_config, $template, $phpbb_root_path, $mx_root_path, $theme, $current_module_images; + global $mx_block; //unset($GLOBALS['MX_TEMPLATE_CONFIG']); *************** *** 1244,1247 **** --- 1253,1261 ---- // + // Load module cfg + // + $moduleCfgFile = str_replace('/', '', str_replace('modules/', '', $mx_block->module_root_path)); + + // // Load MX-Publisher Template configuration data // - First try current template *************** *** 1251,1283 **** $default_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->template_name; ! ! // ! // If use default template with difrent modules config file name ! // ! if (!empty($this->module_cfg_name[$module_root_path])) ! { ! $module_cfg_info = "<br />Custom module config file: " . $this->module_cfg_name[$module_root_path]; ! $default_cfg_file = $this->module_cfg_name[$module_root_path]; ! ! } ! else { ! $module_cfg_info = "<br />Custom module config file: Not set"; ! $default_cfg_file = false; } - - - @include($mx_root_path . $module_root_path . $this->current_template_path . '/' . $this->template_name . '.cfg'); // // Since we have no current Template Config file, try the cloned template instead // ! if ( !$mx_template_config ) { $current_template_path = $module_root_path . $this->cloned_current_template_path; $template_name = $this->cloned_template_name; - $default_cfg_file = ($default_cfg_file) ? $default_cfg_file : $this->cloned_template_name; ! @include($mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $default_cfg_file . '.cfg'); } --- 1265,1288 ---- $default_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->template_name; ! ! @include($mx_root_path . $module_root_path . $this->current_template_path . '/' . $template_name . '.cfg'); ! if (!$mx_template_config) { ! @include($mx_root_path . $module_root_path . $this->current_template_path . '/' . $moduleCfgFile . '.cfg'); } // // Since we have no current Template Config file, try the cloned template instead // ! if (!$mx_template_config) { $current_template_path = $module_root_path . $this->cloned_current_template_path; $template_name = $this->cloned_template_name; ! @include($mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $template_name . '.cfg'); ! if (!$mx_template_config) ! { ! @include($mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $moduleCfgFile . '.cfg'); ! } } *************** *** 1285,1315 **** // If use default template intead // ! if ( !$mx_template_config ) { $current_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->default_template_name; - $default_cfg_file = ($default_cfg_file) ? $default_cfg_file : $this->default_template_name; ! @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $default_cfg_file . '.cfg'); } - - // - // If use default module template intead - // - if ( !$mx_template_config ) - { - $current_template_path = $module_root_path . $this->default_module_style; - $template_name = $this->default_module_style; - $default_cfg_file = ($default_cfg_file) ? $default_cfg_file : $this->default_module_style; - @include($mx_root_path . $module_root_path . $this->default_module_style . '/' . $default_cfg_file . '.cfg'); - } - // // We have no template to use - die // ! if ( !$mx_template_config ) { ! mx_message_die(CRITICAL_ERROR, "Could not open " . $mx_root_path . $module_root_path . $this->cloned_current_template_path . '/' . $this->cloned_template_name . '.cfg' . " style config file or file can not be validated. <br /> Current style: $this->template_name <br />Cloned style: $this->cloned_template_name <br />Default style: $this->default_template_name <br />Custom module default style: $this->default_module_style $module_cfg_info", '', __LINE__, __FILE__); } --- 1290,1311 ---- // If use default template intead // ! if (!$mx_template_config) { $current_template_path = $module_root_path . $this->default_current_template_path; $template_name = $this->default_template_name; ! @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $template_name . '.cfg'); ! if (!$mx_template_config) ! { ! @include($mx_root_path . $module_root_path . $this->default_current_template_path . '/' . $moduleCfgFile . '.cfg'); ! } } // // We have no template to use - die // ! if (!$mx_template_config) { ! mx_message_die(CRITICAL_ERROR, "Could not open " . $mx_root_path . $module_root_path . $this->default_current_template_path . " style config file", '', __LINE__, __FILE__); } *************** *** 1364,1368 **** if (!empty($this->module_lang_path[$mx_block->module_root_path])) { ! $module_lang_path = $this->module_lang_path[$mx_block->module_root_path]; } else --- 1360,1364 ---- if (!empty($this->module_lang_path[$mx_block->module_root_path])) { ! $module_lang_path = $this->module_lang_path[$mx_block->module_root_path]; } else *************** *** 1728,1744 **** } - function set_module_cfg_name($module_cfg_name = '') - { - global $mx_block; - - $this->module_cfg_name[$mx_block->module_root_path] = $module_cfg_name; - } - function set_module_lang_path($module_lang_path = '') { global $mx_block; ! $this->module_lang_path[$mx_block->module_root_path] = $module_lang_path; } } // class mx_user ?> \ No newline at end of file --- 1724,1734 ---- } function set_module_lang_path($module_lang_path = '') { global $mx_block; ! $this->module_lang_path[$mx_block->module_root_path] = $module_lang_path; } + } // class mx_user ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2008-03-11 18:06:08
|
Update of /cvsroot/mxbb/mx_glance In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26009 Modified Files: mx_glance.php Log Message: fix Index: mx_glance.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** mx_glance.php 21 Feb 2008 16:12:23 -0000 1.14 --- mx_glance.php 11 Mar 2008 17:00:20 -0000 1.15 *************** *** 132,142 **** } ! if ( !function_exists( 'this_recent_url' ) ) { function this_recent_url($args = '') { ! global $server_protocol, $server_name, $server_port, $script_path, $page_id, $phpEx; ! $url = $server_protocol . $server_name . $server_port . $script_path . '/' . 'index.' . $phpEx; if( is_numeric($page_id) && !empty($page_id) ) --- 132,142 ---- } ! if (!function_exists('this_recent_url')) { function this_recent_url($args = '') { ! global $page_id, $phpEx; ! $url = PORTAL_URL . "index.$phpEx"; if( is_numeric($page_id) && !empty($page_id) ) *************** *** 153,156 **** --- 153,181 ---- } + /* + if (!function_exists('glance_userdata')) + { + function glance_userdata($user_id) + { + global $db; + + $sql = "SELECT username, user_id, user_level + FROM ".USERS_TABLE." + WHERE user_id = ".$user_id." + ORDER BY username ASC"; + if( !($result = $db->sql_query($sql)) ) + { + mx_message_die(GENERAL_ERROR, 'Could not obtain glance user information', '', __LINE__, __FILE__, $sql); + } + + while($row = $db->sql_fetchrow($result)) + { + return $row; + } + $db->sql_freeresult($result); + } + } + */ + // GET USER LAST VISIT $recent_last_visit = $userdata['user_lastvisit']; //$recent_last_visit = $mx_user->data['user_lastvisit']; *************** *** 536,567 **** if ($recent_show_user_color) { ! $sql = "SELECT username, user_id, user_level ! FROM ".USERS_TABLE." ! WHERE user_id = ".$latest_news[$i]['poster_id']." ! ORDER BY username ASC"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); ! } ! while( $row = $db->sql_fetchrow($result) ) ! { ! if ($row['user_level'] == ADMIN) ! { ! $last_poster_color = $theme['fontcolor3']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else if ($row['user_level'] == MOD) ! { ! $last_poster_color = $theme['fontcolor2']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else ! { ! $last_poster_color = ''; ! $last_poster_style = 'style="font-weight : bold;"'; ! } } - $db->sql_freeresult($result); } else if ($recent_show_user_bold) --- 561,581 ---- if ($recent_show_user_color) { ! $news_last_posterdata = mx_get_userdata($latest_news[$i]['poster_id'], false); ! if ($news_last_posterdata['user_level'] == ADMIN) ! { ! $last_poster_color = $theme['fontcolor3']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else if ($news_last_posterdata['user_level'] == MOD) ! { ! $last_poster_color = $theme['fontcolor2']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else ! { ! $last_poster_color = ''; ! $last_poster_style = 'style="font-weight : bold;"'; } } else if ($recent_show_user_bold) *************** *** 581,612 **** if ($recent_show_user_color) { ! $sql = "SELECT username, user_id, user_level ! FROM ".USERS_TABLE." ! WHERE user_id = ".$latest_news[$i]['topic_poster']." ! ORDER BY username ASC"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); } ! ! while( $row = $db->sql_fetchrow($result) ) ! { ! if ($row['user_level'] == ADMIN) ! { ! $topic_poster_color = $theme['fontcolor3']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else if ($row['user_level'] == MOD) ! { ! $topic_poster_color = $theme['fontcolor2']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else ! { $topic_poster_color = ''; $topic_poster_style = 'style="font-weight : bold;"'; - } } - $db->sql_freeresult($result); } else if ($recent_show_user_bold) --- 595,615 ---- if ($recent_show_user_color) { ! $news_topic_posterdata = mx_get_userdata($latest_news[$i]['topic_poster'], false); ! ! if ($news_topic_posterdata['user_level'] == ADMIN) ! { ! $topic_poster_color = $theme['fontcolor3']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else if ($news_topic_posterdata['user_level'] == MOD) ! { ! $topic_poster_color = $theme['fontcolor2']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; } ! else ! { $topic_poster_color = ''; $topic_poster_style = 'style="font-weight : bold;"'; } } else if ($recent_show_user_bold) *************** *** 820,851 **** if ($recent_show_user_color) { ! $sql = "SELECT username, user_id, user_level ! FROM ".USERS_TABLE." ! WHERE user_id = ".$latest_topics[$i]['poster_id']." ! ORDER BY username ASC"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); } ! ! while( $row = $db->sql_fetchrow($result) ) ! { ! if ($row['user_level'] == ADMIN) ! { ! $last_poster_color = $theme['fontcolor3']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else if ($row['user_level'] == MOD) ! { ! $last_poster_color = $theme['fontcolor2']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else ! { ! $last_poster_color = ''; ! $last_poster_style = 'style="font-weight : bold;"'; ! } } - $db->sql_freeresult($result); } else if ($recent_show_user_bold) --- 823,843 ---- if ($recent_show_user_color) { ! $recent_last_posterdata = mx_get_userdata($latest_topics[$i]['poster_id'], false); ! ! if ($recent_last_posterdata['user_level'] == ADMIN) ! { ! $last_poster_color = $theme['fontcolor3']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; ! } ! else if ($recent_last_posterdata['user_level'] == MOD) ! { ! $last_poster_color = $theme['fontcolor2']; ! $last_poster_style = 'style="color:#' . $last_poster_color . '; font-weight : bold;"'; } ! else ! { ! $last_poster_color = ''; ! $last_poster_style = 'style="font-weight : bold;"'; } } else if ($recent_show_user_bold) *************** *** 865,896 **** if ($recent_show_user_color) { ! $sql = "SELECT username, user_id, user_level ! FROM ".USERS_TABLE." ! WHERE user_id = ".$latest_topics[$i]['topic_poster']." ! ORDER BY username ASC"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); ! } ! while( $row = $db->sql_fetchrow($result) ) ! { ! if ($row['user_level'] == ADMIN) ! { ! $topic_poster_color = $theme['fontcolor3']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else if ($row['user_level'] == MOD) ! { ! $topic_poster_color = $theme['fontcolor2']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else ! { ! $topic_poster_color = $theme['fontcolor1']; ! $topic_poster_style = 'style="font-weight : bold;"'; ! } } - $db->sql_freeresult($result); } else if ($recent_show_user_bold) --- 857,877 ---- if ($recent_show_user_color) { ! $recent_topic_posterdata = mx_get_userdata($latest_topics[$i]['topic_poster'], false); ! if ($recent_topic_posterdata['user_level'] == ADMIN) ! { ! $topic_poster_color = $theme['fontcolor3']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else if ($recent_topic_posterdata['user_level'] == MOD) ! { ! $topic_poster_color = $theme['fontcolor2']; ! $topic_poster_style = 'style="color:#' . $topic_poster_color . '; font-weight : bold;"'; ! } ! else ! { ! $topic_poster_color = $theme['fontcolor1']; ! $topic_poster_style = 'style="font-weight : bold;"'; } } else if ($recent_show_user_bold) |
|
From: Jon O. <jon...@us...> - 2008-03-10 13:27:27
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20495 Modified Files: common.php Log Message: GRrrrr ;) Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** common.php 10 Mar 2008 05:18:30 -0000 1.89 --- common.php 10 Mar 2008 13:27:21 -0000 1.90 *************** *** 348,352 **** // - optional parameter to enable/disable cache for config data. If enabled, remember to refresh the MX-Publisher cache whenever updating phpBB config settings // - true: enable cache, false: disable cache ! $board_config = $mx_cache->obtain_phpbb_config(); } $script_name_phpbb = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])) . '/'; --- 348,352 ---- // - optional parameter to enable/disable cache for config data. If enabled, remember to refresh the MX-Publisher cache whenever updating phpBB config settings // - true: enable cache, false: disable cache ! $board_config = $mx_cache->obtain_phpbb_config(false); } $script_name_phpbb = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])) . '/'; *************** *** 358,362 **** // - optional parameter to enable/disable cache for config data. If enabled, remember to refresh the MX-Publisher cache whenever updating phpBB config settings // - true: enable cache, false: disable cache ! $board_config = $mx_cache->obtain_phpbb_config(true); $script_name_phpbb = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])) . '/'; break; --- 358,362 ---- // - optional parameter to enable/disable cache for config data. If enabled, remember to refresh the MX-Publisher cache whenever updating phpBB config settings // - true: enable cache, false: disable cache ! $board_config = $mx_cache->obtain_phpbb_config(false); $script_name_phpbb = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])) . '/'; break; |
|
From: Jon O. <jon...@us...> - 2008-03-10 13:27:26
|
Update of /cvsroot/mxbb/core/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20495/templates/_core Modified Files: overall_header.tpl Log Message: GRrrrr ;) Index: overall_header.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/_core/overall_header.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** overall_header.tpl 21 Feb 2008 20:03:25 -0000 1.3 --- overall_header.tpl 10 Mar 2008 13:27:21 -0000 1.4 *************** *** 31,35 **** <script language="javascript" type="text/javascript"><!-- - function checkSearch() { --- 31,34 ---- |
|
From: Jon O. <jon...@us...> - 2008-03-10 13:27:26
|
Update of /cvsroot/mxbb/core/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20495/templates/subSilver Modified Files: overall_header_navigation.tpl Log Message: GRrrrr ;) Index: overall_header_navigation.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/subSilver/overall_header_navigation.tpl,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** overall_header_navigation.tpl 21 Feb 2008 20:04:45 -0000 1.10 --- overall_header_navigation.tpl 10 Mar 2008 13:27:22 -0000 1.11 *************** *** 14,18 **** <!-- Then load MX-Publisher template *.css definition for mx, located in the the portal template folder --> <link rel="stylesheet" href="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_MXBB_STYLESHEET}" type="text/css" > - <!-- Optionally, redefine some defintions for gecko browsers --> <!-- IF GECKO --> <!-- Optionally, redefine some defintions for gecko browsers --> --- 14,17 ---- |
|
From: Jon O. <jon...@us...> - 2008-03-10 13:26:39
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20039 Modified Files: Tag: core28x common.php Log Message: GRrrrr ;) Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.67.2.10 retrieving revision 1.67.2.11 diff -C2 -d -r1.67.2.10 -r1.67.2.11 *** common.php 10 Mar 2008 05:17:23 -0000 1.67.2.10 --- common.php 10 Mar 2008 13:26:35 -0000 1.67.2.11 *************** *** 392,396 **** // - optional parameter to enable/disable cache for config data. If enabled, remember to refresh the mxBB cache whenever updating phpBB config settings // - true: enable cache, false: disable cache ! $board_config = $mx_cache->obtain_phpbb_config(); } --- 392,396 ---- // - optional parameter to enable/disable cache for config data. If enabled, remember to refresh the mxBB cache whenever updating phpBB config settings // - true: enable cache, false: disable cache ! $board_config = $mx_cache->obtain_phpbb_config(false); } |
|
From: Jon O. <jon...@us...> - 2008-03-10 12:58:38
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17297 Removed Files: Tag: core28x mx_multiple_blocks.php Log Message: doh... ;) --- mx_multiple_blocks.php DELETED --- |
|
From: Jon O. <jon...@us...> - 2008-03-10 12:57:16
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15963 Removed Files: mx_multiple_blocks.php Log Message: doh... ;) --- mx_multiple_blocks.php DELETED --- |