You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:47:44
|
Update of /cvsroot/mxbb/mx_blogs/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22589/lang_english Log Message: Directory /cvsroot/mxbb/mx_blogs/language/lang_english added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:47:37
|
Update of /cvsroot/mxbb/mx_blogs/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22425/language Log Message: Directory /cvsroot/mxbb/mx_blogs/language added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:46:41
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21471/images Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/images added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:46:22
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21048/lang_english Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity/lang_english added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:46:19
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20713/Infinity Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates/Infinity added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:45:50
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/ljDigitalMultiplex In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20044/ljDigitalMultiplex Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates/ljDigitalMultiplex added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:45:24
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19537/lang_english Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris/lang_english added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:45:13
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19225/animatrix-osiris Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates/animatrix-osiris added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:45:00
|
Update of /cvsroot/mxbb/mx_blogs/weblogs/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18900/templates Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs/templates added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:44:49
|
Update of /cvsroot/mxbb/mx_blogs/weblogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18786/weblogs Log Message: Directory /cvsroot/mxbb/mx_blogs/weblogs added to the repository |
|
From: mhewitson <mhe...@us...> - 2007-06-07 21:44:44
|
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18698/mx_blogs Log Message: Directory /cvsroot/mxbb/mx_blogs added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:15:40
|
Update of /cvsroot/mxbb/mx_tinies/templates/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13071 Added Files: icon_dot.gif index.html qs_alltheweb.gif qs_altavista.gif qs_dejanews.gif qs_excite.gif qs_google.gif qs_google_small.gif qs_googlesite.gif qs_hotbot.gif qs_osdn.gif qs_site.gif qs_webcrawler.gif qs_yahoo.gif spacer.gif Log Message: added mx_tinies --- NEW FILE: qs_site.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: spacer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_dejanews.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_webcrawler.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_google_small.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_excite.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_yahoo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_altavista.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_googlesite.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_google.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: index.html --- --- NEW FILE: qs_alltheweb.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_osdn.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qs_hotbot.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_dot.gif --- (This appears to be a binary file; contents omitted.) |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:15:23
|
Update of /cvsroot/mxbb/mx_tinies/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12910 Added Files: index.html lang_admin.php lang_main.php Log Message: added mx_tinies --- NEW FILE: index.html --- --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php * ------------- * begin : October, 2003 * copyright : Marc Ferran (c) 2003-2004 * email : phpmix at pobox.com * module : Tinies * file contents : Main module strings. * language : English * translated by : * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ //Some basic security if( !defined('IN_PORTAL')) { die('Hacking Attempt'); } // // Tinies v.1.0.0 // $lang['Welcome'] = "Welcome"; $lang['Welcome_User'] = "Welcome, %s !"; $lang['Quick_search'] = "Quick Search"; $lang['Search_at'] = "Search at"; $lang['Advanced_search'] = "Advanced Search"; // // Tinies v.1.0.1 // $lang['Search_unread'] = "View unread posts"; // // Tinies v.1.0.2 // $lang['Search_self_topics'] = "Topics you've started"; $lang['Search_self_posts'] = "View all your posts"; // // Tinies v.1.3.0 // $lang['Posts_since_last_visit'] = "Posts since last visit"; $lang['View_latest'] = "View latest"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * lang_admin.php * -------------- * begin : October, 2003 * copyright : Marc Ferran (c) 2003 * email : phpmix at pobox.com * module : Tinies * file contents : Admin module strings. * language : English * translated by : * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ //Some basic security if( !defined('IN_PORTAL')) { die('Hacking Attempt'); } // // Tinies v.1.0.0 // $lang['Tinies_FAQ_Name'] = "<b>FAQ Name:</b>"; $lang['Tinies_FAQ_Nameinfo'] = "Name of the FAQ file you want to display with this block. For instance:<br />To display the FAQ file <u>modules/mx_tinies/faqs/lang_xxxx/lang_faq.php</u>, just enter <b>faq</b>.<br />To display the FAQ file <u>modules/mx_tinies/faqs/lang_xxxx/lang_bbcode.php</u>, just enter <b>bbcode</b>.<br />You can even create your own FAQs, just create your FAQ file with the same format used by the forum FAQs.<br /><b><u>Note:</u></b> FAQ files used by this module should be located under <u>modules/mx_tinies/faqs/lang_xxxx</u>, where <b>xxxx</b> is the default board language (ie. english, german, spanish, etc.)."; $lang['Tinies_FAQ_Title'] = "<b>FAQ Title:</b>"; $lang['Tinies_FAQ_Titleinfo'] = "Enter the title for the block where this FAQ will be displayed."; $lang['Tinies_Welcome_Msg'] = "<b>Welcome Message:</b>"; $lang['Tinies_Welcome_Msginfo'] = "This message will be visible for all users."; $lang['Tinies_Register_Msg'] = "<b>Register Message:</b>"; $lang['Tinies_Register_Msginfo'] = "This message will only be visible for anonymous users to encourage them to register.<br />Tip: Use <b>%s</b> twice to enclose the string you want as a link to register."; $lang['Tinies_Vertical_Layout'] = "<b>Vertical Layout:</b>"; $lang['Tinies_Vertical_Layoutinfo'] = "Select if you wish to display this block with a <b>Vertical</b> or <b>Horizontal</b> layout."; $lang['Tinies_View_JumpTo'] = "<b>View JumpTo:</b>"; $lang['Tinies_View_JumpToinfo'] = "Select if you wish to display a <b>JumpToForum</b> box.<br /><u>Note:</u> Disable this feature if you use <b>Vertical layout</b>. Probably, it will make your block wider than the page column where you place this block. But, it could be useful, if you select <b>Horizontal layout</b>."; $lang['Tinies_Default_Avatar'] = "<b>Default Avatar:</b>"; $lang['Tinies_Default_Avatarinfo'] = "Image to be used as default welcome avatar. Will be shown when logged in user has no avatar.<br /><u>Note:</u> Relative path for this image is \"modules/mx_tinies/avatars\"."; // // Tinies v.1.0.1 // $lang['Tinies_View_PostCount'] = "<b>View Post Count:</b>"; $lang['Tinies_View_PostCountinfo'] = "Specify if you wish to display the post count next to <u>View posts since last visit</u> and <u>View unread posts</u> links, shown when a user is logged in."; $lang['Tinies_Report_Page'] = "<b>View Topics Page:</b>"; $lang['Tinies_Report_Pageinfo'] = "Specify the Portal Page Number which contains the <b>'Tinies: View Topics'</b> block.<br />Otherwise, just enter <b>0</b> to view the reports in standalone mode (full page, no other blocks)."; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:15:11
|
Update of /cvsroot/mxbb/mx_tinies/faqs/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12227 Added Files: index.html lang_bbcode.php lang_faq.php Log Message: added mx_tinies --- NEW FILE: index.html --- --- NEW FILE: lang_bbcode.php --- <?php /*************************************************************************** * lang_bbcode.php [english] * ------------------- * begin : Wednesday Oct 3, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_bbcode.php,v 1.1 2007/06/07 20:15:00 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ //Some basic security if( !defined('IN_PORTAL')) { die('Hacking Attempt'); } /* CONTRIBUTORS 2002-12-15 Philip M. White (pw...@ma...) Fixed many minor grammatical problems. */ // // To add an entry to your BBCode guide simply add a line to this file in this format: // $faq[] = array("question", "answer"); // If you want to separate a section enter $faq[] = array("--","Block heading goes here if wanted"); // Links will be created automatically // // DO NOT forget the ; at the end of the line. // Do NOT put double quotes (") in your BBCode guide entries, if you absolutely must then escape them ie. \"something\" // // The BBCode guide items will appear on the BBCode guide page in the same order they are listed in this file // // If just translating this file please do not alter the actual HTML unless absolutely necessary, thanks :) // // In addition please do not translate the colours referenced in relation to BBCode any section, if you do // users browsing in your language may be confused to find they're BBCode doesn't work :D You can change // references which are 'in-line' within the text though. // $faq[] = array("--","Introduction"); $faq[] = array("What is BBCode?", "BBCode is a special implementation of HTML. Whether you can actually use BBCode in your posts on the forum is determined by the administrator. In addition, you can disable BBCode on a per post basis via the posting form. BBCode itself is similar in style to HTML: tags are enclosed in square braces [ and ] rather than < and > and it offers greater control over what and how something is displayed. Depending on the template you are using you may find adding BBCode to your posts is made much easier through a clickable interface above the message area on the posting form. Even with this you may find the following guide useful."); $faq[] = array("--","Text Formatting"); $faq[] = array("How to create bold, italic and underlined text", "BBCode includes tags to allow you to quickly change the basic style of your text. This is achieved in the following ways: <ul><li>To make a piece of text bold enclose it in <b>[b][/b]</b>, eg. <br /><br /><b>[b]</b>Hello<b>[/b]</b><br /><br />will become <b>Hello</b></li><li>For underlining use <b>[u][/u]</b>, for example:<br /><br /><b>[u]</b>Good Morning<b>[/u]</b><br /><br />becomes <u>Good Morning</u></li><li>To italicise text use <b>[i][/i]</b>, eg.<br /><br />This is <b>[i]</b>Great!<b>[/i]</b><br /><br />would give This is <i>Great!</i></li></ul>"); $faq[] = array("How to change the text colour or size", "To alter the color or size of your text the following tags can be used. Keep in mind that how the output appears will depend on the viewers browser and system: <ul><li>Changing the colour of text is achieved by wrapping it in <b>[color=][/color]</b>. You can specify either a recognised colour name (eg. red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000. For example, to create red text you could use:<br /><br /><b>[color=red]</b>Hello!<b>[/color]</b><br /><br />or<br /><br /><b>[color=#FF0000]</b>Hello!<b>[/color]</b><br /><br />will both output <span style=\"color:red\">Hello!</span></li><li>Changing the text size is achieved in a similar way using <b>[size=][/size]</b>. This tag is dependent on the template you are using but the recommended format is a numerical value representing the text size in pixels, starting at 1 (so tiny you will not see it) through to 29 (very large). For example:<br /><br /><b>[size=9]</b>SMALL<b>[/size]</b><br /><br />will generally be <span style=\"font-size:9px\">SMALL</span><br /><br />whereas:<br /><br /><b>[size=24]</b>HUGE!<b>[/size]</b><br /><br />will be <span style=\"font-size:24px\">HUGE!</span></li></ul>"); $faq[] = array("Can I combine formatting tags?", "Yes, of course you can; for example to get someones attention you may write:<br /><br /><b>[size=18][color=red][b]</b>LOOK AT ME!<b>[/b][/color][/size]</b><br /><br />this would output <span style=\"color:red;font-size:18px\"><b>LOOK AT ME!</b></span><br /><br />We don't recommend you output lots of text that looks like this, though! Remember that it is up to you, the poster, to ensure that tags are closed correctly. For example, the following is incorrect:<br /><br /><b>[b][u]</b>This is wrong<b>[/b][/u]</b>"); $faq[] = array("--","Quoting and outputting fixed-width text"); $faq[] = array("Quoting text in replies", "There are two ways you can quote text: with a reference or without.<ul><li>When you utilise the Quote function to reply to a post on the board you should notice that the post text is added to the message window enclosed in a <b>[quote=\"\"][/quote]</b> block. This method allows you to quote with a reference to a person or whatever else you choose to put. For example, to quote a piece of text Mr. Blobby wrote, you would enter:<br /><br /><b>[quote=\"Mr. Blobby\"]</b>The text Mr. Blobby wrote would go here<b>[/quote]</b><br /><br />The resulting output will automatically add: Mr. Blobby wrote: before the actual text. Remember that you <b>must</b> include the quotation marks \"\" around the name you are quoting -- they are not optional.</li><li>The second method allows you to blindly quote something. To utilise this enclose the text in <b>[quote][/quote]</b> tags. When you view the message it will simply show: Quote: before the text itself.</li></ul>"); $faq[] = array("Outputting code or fixed width data", "If you want to output a piece of code or in fact anything that requires a fixed width with a Courier-type font, you should enclose the text in <b>[code][/code]</b> tags, eg.<br /><br /><b>[code]</b>echo \"This is some code\";<b>[/code]</b><br /><br />All formatting used within <b>[code][/code]</b> tags is retained when you later view it."); $faq[] = array("--","Generating lists"); $faq[] = array("Creating an Un-ordered list", "BBCode supports two types of lists, unordered and ordered. They are essentially the same as their HTML equivalents. An unordered list ouputs each item in your list sequentially one after the other indenting each with a bullet character. To create an unordered list you use <b>[list][/list]</b> and define each item within the list using <b>[*]</b>. For example, to list your favorite colours you could use:<br /><br /><b>[list]</b><br /><b>[*]</b>Red<br /><b>[*]</b>Blue<br /><b>[*]</b>Yellow<br /><b>[/list]</b><br /><br />This would generate the following list:<ul><li>Red</li><li>Blue</li><li>Yellow</li></ul>"); $faq[] = array("Creating an Ordered list", "The second type of list, an ordered list gives you control over what is output before each item. To create an ordered list you use <b>[list=1][/list]</b> to create a numbered list or alternatively <b>[list=a][/list]</b> for an alphabetical list. As with the unordered list items are specified using <b>[*]</b>. For example:<br /><br /><b>[list=1]</b><br /><b>[*]</b>Go to the shops<br /><b>[*]</b>Buy a new computer<br /><b>[*]</b>Swear at computer when it crashes<br /><b>[/list]</b><br /><br />will generate the following:<ol type=\"1\"><li>Go to the shops</li><li>Buy a new computer</li><li>Swear at computer when it crashes</li></ol>Whereas for an alphabetical list you would use:<br /><br /><b>[list=a]</b><br /><b>[*]</b>The first possible answer<br /><b>[*]</b>The second possible answer<br /><b>[*]</b>The third possible answer<br /><b>[/list]</b><br /><br />giving<ol type=\"a\"><li>The first possible answer</li><li>The second possible answer</li><li>The third possible answer</li></ol>"); $faq[] = array("--", "Creating Links"); $faq[] = array("Linking to another site", "phpBB BBCode supports a number of ways of creating URIs, Uniform Resource Indicators better known as URLs.<ul><li>The first of these uses the <b>[url=][/url]</b> tag; whatever you type after the = sign will cause the contents of that tag to act as a URL. For example, to link to phpBB.com you could use:<br /><br /><b>[url=http://www.phpbb.com/]</b>Visit phpBB!<b>[/url]</b><br /><br />This would generate the following link, <a href=\"http://www.phpbb.com/\" target=\"_blank\">Visit phpBB!</a> You will notice the link opens in a new window so the user can continue browsing the forums if they wish.</li><li>If you want the URL itself displayed as the link you can do this by simply using:<br /><br /><b>[url]</b>http://www.phpbb.com/<b>[/url]</b><br /><br />This would generate the following link: <a href=\"http://www.phpbb.com/\" target=\"_blank\">http://www.phpbb.com/</a></li><li>Additionally phpBB features something called <i>Magic Links</i>which will turn any syntatically correct URL into a link without you needing to specify any tags or even the leading http://. For example typing www.phpbb.com into your message will automatically lead to <a href=\"http://www.phpbb.com/\" target=\"_blank\">www.phpbb.com</a> being output when you view the message.</li><li>The same thing applies equally to email addresses; you can either specify an address explicitly, like:<br /><br /><b>[email]</b>no...@do...<b>[/email]</b><br /><br />which will output <a href=\"emailto:no...@do...\">no...@do...</a> or you can just type no...@do... into your message and it will be automatically converted when you view.</li></ul>As with all the BBCode tags you can wrap URLs around any of the other tags such as <b>[img][/img]</b> (see next entry), <b>[b][/b]</b>, etc. As with the formatting tags it is up to you to ensure the correct open and close order is following. For example:<br /><br /><b>[url=http://www.phpbb.com/][img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/url][/img]</b><br /><br />is <u>not</u> correct which may lead to your post being deleted so take care."); $faq[] = array("--", "Showing images in posts"); $faq[] = array("Adding an image to a post", "phpBB BBCode incorporates a tag for including images in your posts. Two very important things to remember when using this tag are: many users do not appreciate lots of images being shown in posts and second, the image you display must already be available on the Internet (it cannot exist only on your computer, for example, unless you run a webserver!). There is currently no way of storing images locally with phpBB (all these issues are expected to be addressed in the next release of phpBB). To display an image, you must surround the URL pointing to the image with <b>[img][/img]</b> tags. For example:<br /><br /><b>[img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/img]</b><br /><br />As noted in the URL section above you can wrap an image in a <b>[url][/url]</b> tag if you wish, eg.<br /><br /><b>[url=http://www.phpbb.com/][img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/img][/url]</b><br /><br />would generate:<br /><br /><a href=\"http://www.phpbb.com/\" target=\"_blank\"><img src=\"http://www.phpbb.com/images/phplogo.gif\" border=\"0\" alt=\"\" /></a><br />"); $faq[] = array("--", "Other matters"); $faq[] = array("Can I add my own tags?", "No, I am afraid not directly in phpBB 2.0. We are looking at offering customisable BBCode tags for the next major version."); // // This ends the BBCode guide entries // ?> --- NEW FILE: lang_faq.php --- <?php /*************************************************************************** * lang_faq.php [english] * ------------------- * begin : Wednesday Oct 3, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_faq.php,v 1.1 2007/06/07 20:15:01 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ //Some basic security if( !defined('IN_PORTAL')) { die('Hacking Attempt'); } /* CONTRIBUTORS: 2002-12-15 Philip M. White (pw...@ma...) Fixed many minor grammatical problems. */ // // To add an entry to your FAQ simply add a line to this file in this format: // $faq[] = array("question", "answer"); // If you want to separate a section enter $faq[] = array("--","Block heading goes here if wanted"); // Links will be created automatically // // DO NOT forget the ; at the end of the line. // Do NOT put double quotes (") in your FAQ entries, if you absolutely must then escape them ie. \"something\" // // The FAQ items will appear on the FAQ page in the same order they are listed in this file // $faq[] = array("--","Login and Registration Issues"); $faq[] = array("Why can't I log in?", "Have you registered? Seriously, you must register in order to log in. Have you been banned from the board? (A message will be displayed if you have.) If so, you should contact the webmaster or board administrator to find out why. If you have registered and are not banned and you still cannot log in then check and double-check your username and password. Usually this is the problem; if not, contact the board administrator -- they may have incorrect configuration settings for the board."); $faq[] = array("Why do I need to register at all?", "You may not have to -- it is up to the administrator of the board as to whether you need to register in order to post messages. However, registration will give you access to additional features not available to guest users such as definable avatar images, private messaging, emailing to fellow users, usergroup subscription, etc. It only takes a few minutes to register so it is recommended you do so."); $faq[] = array("Why do I get logged off automatically?", "If you do not check the <i>Log me in automatically</i> box when you log in, the board will only keep you logged in for a preset time. This prevents misuse of your account by anyone else. To stay logged in, check the box during login. This is not recommended if you access the board from a shared computer, e.g. library, internet cafe, university cluster, etc."); $faq[] = array("How do I prevent my username from appearing in the online user listings?", "In your profile you will find an option <i>Hide your online status</i>; if you switch this <i>on</i> you'll only appear to board administrators or to yourself. You will be counted as a hidden user."); $faq[] = array("I've lost my password!", "Don't panic! While your password cannot be retrieved it can be reset. To do this go to the login page and click <u>I've forgotten my password</u>. Follow the instructions and you should be back online in no time."); $faq[] = array("I registered but cannot log in!", "First check that you are entering the correct username and password. If they are okay then one of two things may have happened: if COPPA support is enabled and you clicked the <u>I am under 13 years old</u> link while registering then you will have to follow the instructions you received. If this is not the case then maybe your account need activating. Some boards will require all new registrations be activated, either by yourself or by the administrator before you can log on. When you registered it would have told you whether activation was required. If you were sent an email then follow the instructions; if you did not receive the email then check that your email address is valid. One reason activation is used is to reduce the possibility of <i>rogue</i> users abusing the board anonymously. If you are sure the email address you used is valid then try contacting the board administrator."); $faq[] = array("I registered in the past but cannot log in anymore!", "The most likely reasons for this are: you entered an incorrect username or password (check the email you were sent when you first registered) or the administrator has deleted your account for some reason. If it is the latter case then perhaps you did not post anything? It is usual for boards to periodically remove users who have not posted anything so as to reduce the size of the database. Try registering again and get involved in discussions."); $faq[] = array("--","User Preferences and settings"); $faq[] = array("How do I change my settings?", "All your settings (if you are registered) are stored in the database. To alter them click the <u>Profile</u> link (generally shown at the top of pages but this may not be the case). This will allow you to change all your settings."); $faq[] = array("The times are not correct!", "The times are almost certainly correct; however, what you may be seeing are times displayed in a timezone different from the one you are in. If this is the case, you should change your profile setting for the timezone to match your particular area, e.g. London, Paris, New York, Sydney, etc. Please note that changing the timezone, like most settings, can only be done by registered users. So if you are not registered, this is a good time to do so, if you pardon the pun!"); $faq[] = array("I changed the timezone and the time is still wrong!", "If you are sure you have set the timezone correctly and the time is still different, the most likely answer is daylight savings time (or summer time as it is known in the UK and other places). The board is not designed to handle the changeovers between standard and daylight time so during summer months the time may be an hour different from the real local time."); $faq[] = array("My language is not in the list!", "The most likely reasons for this are either the administrator did not install your language or someone has not translated this board into your language. Try asking the board administrator if they can install the language pack you need or if it does not exist, please feel free to create a new translation. More information can be found at the phpBB Group website (see link at bottom of pages)"); $faq[] = array("How do I show an image below my username?", "There may be two images below a username when viewing posts. The first is an image associated with your rank; generally these take the form of stars or blocks indicating how many posts you have made or your status on the forums. Below this may be a larger image known as an avatar; this is generally unique or personal to each user. It is up to the board administrator to enable avatars and they have a choice over the way in which avatars can be made available. If you are unable to use avatars then this is the decision of the board admin and you should ask them their reasons (we're sure they'll be good!)"); $faq[] = array("How do I change my rank?", "In general you cannot directly change the wording of any rank (ranks appear below your username in topics and on your profile depending on the style used). Most boards use ranks to indicate the number of posts you have made and to identify certain users. For example, moderators and administrators may have a special rank. Please do not abuse the board by posting unnecessarily just to increase your rank -- you will probably find the moderator or administrator will simply lower your post count."); $faq[] = array("When I click the email link for a user it asks me to log in.", "Sorry, but only registered users can send email to people via the built-in email form (if the admin has enabled this feature). This is to prevent malicious use of the email system by anonymous users."); $faq[] = array("--","Posting Issues"); $faq[] = array("How do I post a topic in a forum?", "Easy -- click the relevant button on either the forum or topic screens. You may need to register before you can post a message. The facilities available to you are listed at the bottom of the forum and topic screens (the <i>You can post new topics, You can vote in polls, etc.</i> list)"); $faq[] = array("How do I edit or delete a post?", "Unless you are the board admin or forum moderator you can only edit or delete your own posts. You can edit a post (sometimes for only a limited time after it was made) by clicking the <i>edit</i> button for the relevant post. If someone has already replied to the post, you will find a small piece of text output below the post when you return to the topic that lists the number of times you edited it. This will only appear if no one has replied; it also will not appear if moderators or administrators edit the post (they should leave a message saying what they altered and why). Please note that normal users cannot delete a post once someone has replied."); $faq[] = array("How do I add a signature to my post?", "To add a signature to a post you must first create one; this is done via your profile. Once created you can check the <i>Add Signature</i> box on the posting form to add your signature. You can also add a signature by default to all your posts by checking the appropriate radio box in your profile. You can still prevent a signature being added to individual posts by un-checking the add signature box on the posting form."); $faq[] = array("How do I create a poll?", "Creating a poll is easy -- when you post a new topic (or edit the first post of a topic, if you have permission) you should see a <i>Add Poll</i> form below the main posting box. If you cannot see this then you probably do not have rights to create polls. You should enter a title for the poll and then at least two options -- to set an option type in the poll question and click the <i>Add option</i> button. You can also set a time limit for the poll, 0 being an infinite amount. There will be a limit to the number of options you can list, which is set by the board administrator"); $faq[] = array("How do I edit or delete a poll?", "As with posts, polls can only be edited by the original poster, a moderator, or board administrator. To edit a poll, click the first post in the topic, which always has the poll associated with it. If no one has cast a vote then users can delete the poll or edit any poll option. However, if people have already placed votes only moderators or administrators can edit or delete it; this is to prevent people rigging polls by changing options mid-way through a poll"); $faq[] = array("Why can't I access a forum?", "Some forums may be limited to certain users or groups. To view, read, post, etc. you may need special authorization which only the forum moderator and board administrator can grant, so you should contact them."); $faq[] = array("Why can't I vote in polls?", "Only registered users can vote in polls so as to prevent spoofing of results. If you have registered and still cannot vote then you probably do not have appropriate access rights."); $faq[] = array("--","Formatting and Topic Types"); $faq[] = array("What is BBCode?", "BBCode is a special implementation of HTML. Whether you can use BBCode is determined by the administrator. You can also disable it on a per post basis from the posting form. BBCode itself is similar in style to HTML: tags are enclosed in square braces [ and ] rather than < and > and it offers greater control over what and how something is displayed. For more information on BBCode see the guide which can be accessed from the posting page."); $faq[] = array("Can I use HTML?", "That depends on whether the administrator allows you to; they have complete control over it. If you are allowed to use it, you will probably find only certain tags work. This is a <i>safety</i> feature to prevent people from abusing the board by using tags which may destroy the layout or cause other problems. If HTML is enabled you can disable it on a per post basis from the posting form."); $faq[] = array("What are Smileys?", "Smileys, or Emoticons, are small graphical images which can be used to express some feeling using a short code, e.g. :) means happy, :( means sad. The full list of emoticons can be seen via the posting form. Try not to overuse smileys, though, as they can quickly render a post unreadable and a moderator may decide to edit them out or remove the post altogether."); $faq[] = array("Can I post Images?", "Images can indeed be shown in your posts. However, there is no facility at present for uploading images directly to this board. Therefore you must link to an image stored on a publicly accessible web server, e.g. http://www.some-unknown-place.net/my-picture.gif. You cannot link to pictures stored on your own PC (unless it is a publicly accessible server) nor to images stored behind authentication mechanisms such as Hotmail or Yahoo mailboxes, password-protected sites, etc. To display the image use either the BBCode [img] tag or appropriate HTML (if allowed)."); $faq[] = array("What are Announcements?", "Announcements often contain important information and you should read them as soon as possible. Announcements appear at the top of every page in the forum to which they are posted. Whether or not you can post an announcement depends on the permissions required, which are set by the administrator."); $faq[] = array("What are Sticky topics?", "Sticky topics appear below any announcements in viewforum and only on the first page. They are often quite important so you should read them where possible. As with announcements the board administrator determines what permissions are required to post sticky topics in each forum."); $faq[] = array("What are Locked topics?", "Locked topics are set this way by either the forum moderator or board administrator. You cannot reply to locked topics and any poll contained inside is automatically ended. Topics may be locked for many reasons."); $faq[] = array("--","User Levels and Groups"); $faq[] = array("What are Administrators?", "Administrators are people assigned the highest level of control over the entire board. These people can control all facets of board operation which include setting permissions, banning users, creating usergroups or moderators, etc. They also have full moderator capabilities in all the forums."); $faq[] = array("What are Moderators?", "Moderators are individuals (or groups of individuals) whose job it is to look after the running of the forums from day to day. They have the power to edit or delete posts and lock, unlock, move, delete and split topics in the forum they moderate. Generally moderators are there to prevent people going <i>off-topic</i> or posting abusive or offensive material."); $faq[] = array("What are Usergroups?", "Usergroups are a way in which board administrators can group users. Each user can belong to several groups (this differs from most other boards) and each group can be assigned individual access rights. This makes it easy for administrators to set up several users as moderators of a forum, or to give them access to a private forum, etc."); $faq[] = array("How do I join a Usergroup?", "To join a usergroup click the usergroup link on the page header (dependent on template design) and you can then view all usergroups. Not all groups are <i>open access</i> -- some are closed and some may even have hidden memberships. If the board is open then you can request to join it by clicking the appropriate button. The user group moderator will need to approve your request; they may ask why you want to join the group. Please do not pester a group moderator if they turn your request down -- they will have their reasons."); $faq[] = array("How do I become a Usergroup Moderator?", "Usergroups are initially created by the board administrator who also assigns a board moderator. If you are interested in creating a usergroup then your first point of contact should be the administrator, so try dropping them a private message."); $faq[] = array("--","Private Messaging"); $faq[] = array("I cannot send private messages!", "There are three reasons for this; you are not registered and/or not logged on, the board administrator has disabled private messaging for the entire board, or the board administrator has prevented you individually from sending messages. If it is the latter case you should try asking the administrator why."); $faq[] = array("I keep getting unwanted private messages!", "In the future we will be adding an ignore list to the private messaging system. For now, though, if you keep receiving unwanted private messages from someone, inform the board administrator -- they have the power to prevent a user from sending private messages at all."); $faq[] = array("I have received a spamming or abusive email from someone on this board!", "We are sorry to hear that. The email form feature of this board includes safeguards to try to track users who send such posts. You should email the board administrator with a full copy of the email you received and it is very important this include the headers (these list details of the user that sent the email). They can then take action."); // // These entries should remain in all languages and for all modifications // $faq[] = array("--","phpBB 2 Issues"); $faq[] = array("Who wrote this bulletin board?", "This software (in its unmodified form) is produced, released and is copyrighted <a href=\"http://www.phpbb.com/\" target=\"_blank\">phpBB Group</a>. It is made available under the GNU General Public License and may be freely distributed; see link for more details"); $faq[] = array("Why isn't X feature available?", "This software was written by and licensed through phpBB Group. If you believe a feature needs to be added then please visit the phpbb.com website and see what the phpBB Group has to say. Please do not post feature requests to the board at phpbb.com, as the Group uses sourceforge to handle tasking of new features. Please read through the forums and see what, if any, our position may already be for features and then follow the procedure given there."); $faq[] = array("Whom do I contact about abusive and/or legal matters related to this board?", "You should contact the administrator of this board. If you cannot find who that is, you should first contact one of the forum moderators and ask them who you should in turn contact. If still get no response you should contact the owner of the domain (do a whois lookup) or, if this is running on a free service (e.g. yahoo, free.fr, f2s.com, etc.), the management or abuse department of that service. Please note that phpBB Group has absolutely no control and cannot in any way be held liable over how, where or by whom this board is used. It is absolutely pointless contacting phpBB Group in relation to any legal (cease and desist, liable, defamatory comment, etc.) matter not directly related to the phpbb.com website or the discrete software of phpBB itself. If you do email phpBB Group about any third party use of this software then you should expect a terse response or no response at all."); // // This ends the FAQ entries // ?> |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:14:51
|
Update of /cvsroot/mxbb/mx_tinies/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11886/templates Added Files: faq_body.tpl index.html qsearch_body.tpl view_topics.tpl welcome_body.tpl Log Message: added mx_tinies --- NEW FILE: index.html --- --- NEW FILE: qsearch_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- function qsearch_engine(name, title, url) { this.name = name; this.title = title; this.url = url; } qsearch_engines = new Array(); i=0; qsearch_engines[i++] = new qsearch_engine("altavista", "Altavista", "http://www.altavista.com/web/results?q="); qsearch_engines[i++] = new qsearch_engine("alltheweb", "All the Web", "http://www.alltheweb.com/search?q="); qsearch_engines[i++] = new qsearch_engine("dejanews", "DejaNews", "http://groups.google.com/groups?q="); qsearch_engines[i++] = new qsearch_engine("excite", "Excite", "http://search.excite.com/search.gw?search="); qsearch_engines[i++] = new qsearch_engine("google", "Google", "http://www.google.com/search?q="); qsearch_engines[i++] = new qsearch_engine("hotbot", "Hotbot", "http://www.hotbot.com/default.asp?query="); qsearch_engines[i++] = new qsearch_engine("osdn", "OSDN Sites", "http://www.osdn.com/osdnsearch.pl?query="); qsearch_engines[i++] = new qsearch_engine("webcrawler", "Webcrawler", "http://www.webcrawler.com/cgi-bin/WebQuery?searchText="); qsearch_engines[i++] = new qsearch_engine("yahoo", "Yahoo!", "http://search.yahoo.com/search?p="); function qsearch_findEngine(qs_enginename) { for( i=0; i < qsearch_engines.length; i++ ) { if( qs_enginename == qsearch_engines[i].name ) { return i; } } return -1; } function qsearch_writeOptions() { for( i=0; i < qsearch_engines.length; i++ ) { var option = '<option value="' + qsearch_engines[i].name + '">' + qsearch_engines[i].title + '</option>'; document.write(option); } } function qsearch_onChange() { if( document.images ) { qs_enginename = document.qsearch_form.qsearch_select.value; document.images['qsearch_image'].src = "{U_IMAGES_PATH}qs_"+qs_enginename+".gif"; } } function qsearch_onSubmit() { qs_enginename = document.qsearch_form.qsearch_select.value; qs_keywords = document.qsearch_form.search_keywords.value; switch( qs_enginename ) { case 'site': break; case 'googlesite': window.open('http://www.google.com/search?q=' + qs_keywords + ' site:{HOSTNAME}', '_blank', ''); return false; default: if( (i = qsearch_findEngine(qs_enginename)) >= 0 ) { window.open(qsearch_engines[i].url + qs_keywords, '_blank', ''); return false; } break; } return true; } // --> </script> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th class="thHead">{L_QUICK_SEARCH}</th> </tr> <tr> <td class="row1" align="center"> <form name="qsearch_form" method="post" action="{U_SEARCH}" onSubmit="return qsearch_onSubmit();"> <table width="90%" cellpadding="4" cellspacing="0" border="0"> <tr> <td align="center" colspan="2"> <img name="qsearch_image" src="{U_IMAGES_PATH}qs_site.gif" border="0" /> </td> </tr> <tr> <td align="right" valign="middle"> <span class="gensmall">{L_SEARCH}:</span> </td> <td align="left" valign="middle"> <input class="post" type="text" name="search_keywords" size="15" /> </td> </tr> <tr> <td align="right" valign="middle"> <span class="gensmall">{L_SEARCH_AT}:</span> </td> <td align="left" valign="middle"> <select name="qsearch_select" onChange="qsearch_onChange();"> <option value="site">{SITENAME} ({L_FORUM})</option> <option value="googlesite">{SITENAME} (Google)</option> <script language="JavaScript" type="text/javascript">qsearch_writeOptions();</script> </select> </td> </tr> <tr> <td align="center" colspan="2"> <input class="mainoption" type="submit" value="{L_SEARCH}" /> </td> </tr> <tr> <td align="center" colspan="2"> <span class="gensmall"><a href="{U_SEARCH}" class="gensmall">{L_ADVANCED_SEARCH}</a></span> </td> </tr> </table> <input type="hidden" name="search_fields" value="all" /> <input type="hidden" name="show_results" value="topics" /> </form> </td> </tr> </table> <br clear="all" /> --- NEW FILE: view_topics.tpl --- <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> <td align="left" valign="bottom"><span class="maintitle">{L_SEARCH_MATCHES}</span><br /></td> </tr> </table> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td> </tr> </table> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th width="4%" height="25" class="thTop" nowrap="nowrap"> </th> <th class="thTop" nowrap="nowrap"> {L_FORUM} </th> <th class="thTop" nowrap="nowrap"> {L_TOPICS} </th> <th class="thTop" nowrap="nowrap"> {L_AUTHOR} </th> <th class="thTop" nowrap="nowrap"> {L_REPLIES} </th> <th class="thTop" nowrap="nowrap"> {L_VIEWS} </th> <th class="thTop" nowrap="nowrap"> {L_LASTPOST} </th> </tr> <!-- BEGIN searchresults --> <tr> <td class="row1" align="center" valign="middle"><img src="{searchresults.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{searchresults.L_TOPIC_FOLDER_ALT}" title="{searchresults.L_TOPIC_FOLDER_ALT}" /></td> <td class="row1"><span class="forumlink"><a href="{searchresults.U_VIEW_FORUM}" target="_blank" class="forumlink">{searchresults.FORUM_NAME}</a></span></td> <td class="row2"><span class="topictitle">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}" target="_blank" class="topictitle">{searchresults.TOPIC_TITLE}</a></span><br /><span class="gensmall">{searchresults.GOTO_PAGE}</span></td> <td class="row1" align="center" valign="middle"><span class="name">{searchresults.TOPIC_AUTHOR}</span></td> <td class="row2" align="center" valign="middle"><span class="postdetails">{searchresults.REPLIES}</span></td> <td class="row1" align="center" valign="middle"><span class="postdetails">{searchresults.VIEWS}</span></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{searchresults.LAST_POST_TIME}<br />{searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}</span></td> </tr> <!-- END searchresults --> <tr> <td class="cat" colspan="7" height="28" valign="middle"> </td> </tr> </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <tr> <td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td> <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span><br /><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table> <table width="100%" cellspacing="2" border="0" align="center"> <tr> <td valign="top" align="right">{JUMPBOX}</td> </tr> </table> --- NEW FILE: welcome_body.tpl --- <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <!-- BEGIN welcome_vertical_layout --> <th class="thHead">{L_WELCOME}</th> <!-- END welcome_vertical_layout --> <!-- BEGIN welcome_horizontal_layout --> <th class="thHead" colspan="2">{L_WELCOME}</th> <!-- END welcome_horizontal_layout --> </tr> <tr> <td class="row1" align="center" valign="middle"> <span class="gen">{L_WELCOME_USER}<br /> <br />{L_WELCOME_MSG}</span> <!-- BEGIN welcome_user_logged_out --> <div align="center"> <form action="{S_LOGIN_ACTION}" method="post" style="margin-bottom:0px;"> <table width="90%" cellpadding="0" cellspacing="0" border="0" class="forumline"> <tr> <td class="catHead" align="center"><b> {L_LOGIN} </b></td> </tr> <tr> <td class="row2" align="center"> <table width="100%" cellpadding="4" cellspacing="0" border="0"> <tr> <td align="right" valign="middle"> <span class="gensmall">{L_USERNAME}:</span> </td> <td align="left" valign="middle"> <span class="gensmall"><input class="post" type="text" name="username" size="10" /></span> </td> </tr> <tr> <td align="right" valign="middle"> <span class="gensmall">{L_PASSWORD}:</span> </td> <td align="left" valign="middle"> <span class="gensmall"><input class="post" type="password" name="password" size="10" /></span> </td> </tr> <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> <input class="text" type="checkbox" name="autologin" value="ON" /> {L_LOG_ME_IN}</span> </td> </tr> <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span> </td> </tr> <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> <a href="{U_FORGOTTEN_PSW}" class="gensmall">{L_FORGOTTEN_PSW}</a></span> </td> </tr> </table> </td> </tr> </table> </form> </div> <br /> <span class="gensmall">{L_REGISTER_MSG}</span> <br /> <br /> <!-- END welcome_user_logged_out --> <!-- BEGIN welcome_user_logged_in --> {AVATAR_IMG} <span class="gensmall"> <br /> <br /> {LAST_VISIT_DATE} <br /> </span> <!-- END welcome_user_logged_in --> <!-- BEGIN welcome_vertical_layout --> <span class="gensmall"> <br /> </span> <!-- END welcome_vertical_layout --> <!-- BEGIN welcome_horizontal_layout --> </td> <td class="row1" align="center" valign="middle"> <!-- END welcome_horizontal_layout --> <div class="gensmall"> {CURRENT_TIME} <br /><br /> {S_TIMEZONE} <br /><br /> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td align="left"> <!-- BEGIN welcome_user_logged_in --> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNREAD}" class="gensmall">{L_SEARCH_UNREAD}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_SELF_TOPICS}" class="gensmall">{L_SEARCH_SELF_TOPICS}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_SELF_POSTS}" class="gensmall">{L_SEARCH_SELF_POSTS}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <span class="gensmall">{L_SEARCH_LATEST}: <a href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a> <a href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a> <a href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_PRIVATE_MSGS}" class="gensmall">{L_PRIVATE_MSGS}</a> <!-- END welcome_user_logged_in --> <!-- BEGIN welcome_user_logged_out --> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <span class="gensmall">{L_SEARCH_LATEST}: <a href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a> <a href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a> <a href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a> <!-- END welcome_user_logged_out --> </td> </tr> </table> <br /> </div> {JUMPBOX} </td> </tr> </table> <br clear="all" /> --- NEW FILE: faq_body.tpl --- <table width="100%" cellpadding="2" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead">{L_FAQ_TITLE}</th> </tr> <tr> <td class="row1"> <!-- BEGIN faq_block_link --> <span class="gen"><b>{faq_block_link.BLOCK_TITLE}</b></span><br /> <!-- BEGIN faq_row_link --> <span class="gen"><a href="{faq_block_link.faq_row_link.U_FAQ_LINK}" class="postlink">{faq_block_link.faq_row_link.FAQ_LINK}</a></span><br /> <!-- END faq_row_link --> <br /> <!-- END faq_block_link --> </td> </tr> <tr> <td class="catBottom" height="28"> </td> </tr> </table> <br clear="all" /> <!-- BEGIN faq_block --> <table width="100%" cellpadding="2" cellspacing="0" border="0" class="forumline"> <tr> <td class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td> </tr> <!-- BEGIN faq_row --> <tr> <td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#Top">{L_BACK_TO_TOP}</a></span></td> </tr> <tr> <td class="spaceRow" height="1"><img src="{IMG_SPACER}" alt="" width="1" height="1" /></td> </tr> <!-- END faq_row --> </table> <br clear="all" /> <!-- END faq_block --> |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:14:47
|
Update of /cvsroot/mxbb/mx_tinies In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11886 Added Files: db_install.php db_uninstall.php db_upgrade.php faq.php index.html mx_tinies.pak qsearch.php version_history.txt view_topics.php welcome.php Log Message: added mx_tinies --- NEW FILE: index.html --- --- NEW FILE: mx_tinies.pak --- module=+:57=+:Tinies=+:modules/mx_tinies/=+:Tinies version 1.3.0=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:57=+:62=+:Tinies: FAQ=+:=+:faq.php=+: parameter=+:62=+:114=+:Tinies_FAQ_Name=+:Text=+:faq=+:=+:0=+:0 parameter=+:62=+:115=+:Tinies_FAQ_Title=+:Text=+:Forums FAQ=+:=+:0=+:0 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Tinies: FAQ=+:Demo block=+:62=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:57=+:61=+:Tinies: Quick Search=+:=+:qsearch.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Tinies: Quick Search=+:Demo block=+:61=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:57=+:60=+:Tinies: Welcome=+:=+:welcome.php=+: parameter=+:60=+:107=+:Tinies_Welcome_Msg=+:Text=+:Have a nice day !=+:=+:0=+:0 parameter=+:60=+:108=+:Tinies_Register_Msg=+:Text=+:Not a member? %sClick here and Register Now!%s=+:=+:0=+:0 parameter=+:60=+:109=+:Tinies_View_JumpTo=+:Boolean=+:FALSE=+:=+:0=+:0 parameter=+:60=+:110=+:Tinies_Vertical_Layout=+:Boolean=+:TRUE=+:=+:0=+:0 parameter=+:60=+:111=+:Tinies_Default_Avatar=+:Text=+:connectthedots.gif=+:=+:0=+:0 parameter=+:60=+:112=+:Tinies_View_PostCount=+:Boolean=+:TRUE=+:=+:0=+:0 parameter=+:60=+:113=+:Tinies_Report_Page=+:Number=+:0=+:=+:0=+:0 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Tinies: Welcome=+:Demo block=+:60=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: db_upgrade.php --- <?php /*************************************************************************** * db_upgrade.php * -------------- * begin : May, 2004 * Updated : April 2007 * copyright : Marc Ferran (c) 2003-2004 * module : mx_tinies * file contents : DB Upgrade script (called by Module Admin). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ global $userdata, $phpEx; // // Security Check... // if( !defined('IN_PORTAL') ) { die("Hacking attempt(1)"); } if( !defined('IN_ADMIN') ) { die("Hacking attempt(2)"); } if( !$userdata['session_logged_in'] ) { die("Hacking attempt(3)"); } if( $userdata['user_level'] != ADMIN ) { die("Hacking attempt(4)"); } $message .= '<br />This module does not create any table on your database.'; echo '<br /> <br />'; echo '<table cellpadding="4" cellspacing="1" border="0" class="forumline">'; echo '<tr><th class="thHead" align="center">Module Upgrade Information</th></tr>'; echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ?> --- NEW FILE: version_history.txt --- ################################################################# ## ## mx_tinies module v.2.0.0RC1 for MX-System Portal 2.8+ ## ## mx_tinies Author: ## - markus_petrux (phpmix at pobox.com) - www.phpmix.org ## ## Updated by: ## - mhewitson - www.mx-system.com ## ## Editor TabSize = 4 ## v.2.0.0 RC1 - 27-04-2007 (mhewitson) - Updated module to work with mxBB 2.8.0 RC1 - Added security to files - Added blank index.html document to directories v.1.3.0 - 2004/06/14 (markus_petrux) - Fixed typo in QuickSearch template (viewtopic.php?t=127). - Added new link PrivMsgs(x) on Welcome block. - Add link to View Latest 24/48/72h on Welcome block. - Fixed buggy post count on Welcome block. v.1.2.0 - 2004/05/24 (markus_petrux) - Changed the name script view_unread.php by view_topics.php. - And now view_topics.php can be run in Block or Standalone mode. - Added "Topics you've Started" as new link in Welcome block. - Added View_Reports_Page as new parameter in Welcome block. v.1.0.1 - 2004/05/20 (markus_petrux) - Added db_xxxx.php scripts. - Added view_unread.php called from welcome block. - Added block parameter to show/hide post counts on Welcome block. v.1.0.0 - 2004/05/03 (markus_petrux) - Very first beta. ## ## ## ################################################################# --- NEW FILE: faq.php --- <?php /*************************************************************************** * faq.php * ------- * begin : October, 2003 * Updated : April 2007 * copyright : Marc Ferran (c) 2003 * module : mx_tinies * file contents : FAQ (Block). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ //some basic security if(!defined('IN_PORTAL')) { die('Hacking attempt'); } // -------------------------------------------------------------------------------- // Block Initialization // -------------------------------------------------------------------------------- $block_title = 'Tinies: FAQ'; if( !function_exists('read_block_config') ) { message_die(GENERAL_ERROR, "This script should be executed as Portal Block.", 'mx_tinies'); } // // Include common module stuff... // include_once($module_root_path . 'includes/common.' . $phpEx); // // Read block Configuration // $block_config = read_block_config($block_id); $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $faq_name = $block_config[$block_id]['Tinies_FAQ_Name']['parameter_value']; if( empty($faq_name) ) { $faq_name = 'faq'; } $faq_title = $block_config[$block_id]['Tinies_FAQ_Title']['parameter_value']; if( empty($faq_name) ) { $faq_title = strtoupper($faq_name); } // -------------------------------------------------------------------------------- // Block Procedure // -------------------------------------------------------------------------------- // // Load the appropriate faq file // $faq_file = $module_root_path.'faqs/lang_'.$board_config['default_lang'].'/lang_'.$faq_name.'.'.$phpEx; if( !file_exists($faq_file) ) { message_die(GENERAL_ERROR, "Couldn't load FAQ File :<br />$faq_file", ''); } include_once($faq_file); // // Pull the array data from the lang pack // $j = 0; $counter = 0; $counter_2 = 0; $faq_block = array(); $faq_block_titles = array(); for( $i = 0; $i < count($faq); $i++ ) { if( $faq[$i][0] != '--' ) { $faq_block[$j][$counter]['id'] = $counter_2; $faq_block[$j][$counter]['question'] = $faq[$i][0]; $faq_block[$j][$counter]['answer'] = $faq[$i][1]; $counter++; $counter_2++; } else { $j = ( $counter != 0 ) ? $j + 1 : 0; $faq_block_titles[$j] = $faq[$i][1]; $counter = 0; } } // // This is the template used to render this block. // $template->set_filenames(array( 'faq_body' => 'faq_body.tpl') ); for( $i = 0; $i < count($faq_block); $i++ ) { if( count($faq_block[$i]) ) { $template->assign_block_vars('faq_block', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); $template->assign_block_vars('faq_block_link', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); for( $j = 0; $j < count($faq_block[$i]); $j++ ) { $row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars('faq_block.faq_row', array( 'ROW_COLOR' => '#'.$row_color, 'ROW_CLASS' => $row_class, 'FAQ_QUESTION' => $faq_block[$i][$j]['question'], 'FAQ_ANSWER' => $faq_block[$i][$j]['answer'], 'U_FAQ_ID' => $faq_block[$i][$j]['id']) ); $template->assign_block_vars('faq_block_link.faq_row_link', array( 'ROW_COLOR' => '#'.$row_color, 'ROW_CLASS' => $row_class, 'FAQ_LINK' => $faq_block[$i][$j]['question'], 'U_FAQ_LINK' => $mx_root_path . 'index.php?page=' . $page_id . '#' . $faq_block[$i][$j]['id']) ); } } } // // Setup common template vars and display the block. // $template->assign_vars(array( 'IMG_SPACER' => $module_root_path.'templates/images/spacer.gif', 'L_FAQ_TITLE' => $faq_title, 'L_BACK_TO_TOP' => $lang['Back_to_top']) ); $template->pparse('faq_body'); ?> --- NEW FILE: db_install.php --- <?php /*************************************************************************** * db_install.php * -------------- * begin : May, 2004 * Updated : April 2007 * copyright : Marc Ferran (c) 2003-2004 * module : mx_tinies * file contents : DB Installation script (called by Module Admin). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ global $userdata, $phpEx; // // Security Check... // if( !defined('IN_PORTAL') ) { die("Hacking attempt(1)"); } if( !defined('IN_ADMIN') ) { die("Hacking attempt(2)"); } if( !$userdata['session_logged_in'] ) { die("Hacking attempt(3)"); } if( $userdata['user_level'] != ADMIN ) { die("Hacking attempt(4)"); } $mx_module_version = '2.0.0 RC'; $mx_module_copy = 'Original mxBB <i>Tinies</i> module by <a href="http://www.phpmix.org" target="_blank">Markus</a>'; $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); $message .= '<br />This module does not create any table on your database.'; echo '<br /> <br />'; echo '<table cellpadding="4" cellspacing="1" border="0" class="forumline">'; echo '<tr><th class="thHead" align="center">Module Installation Information</th></tr>'; echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ?> --- NEW FILE: db_uninstall.php --- <?php /*************************************************************************** * db_uninstall.php * ---------------- * begin : May, 2004 * Updated : April 2007 * copyright : Marc Ferran (c) 2003-2004 * module : mx_tinies * file contents : DB Uninstallation script (called by Module Admin). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ global $userdata, $phpEx; // // Security Check... // if( !defined('IN_PORTAL') ) { die("Hacking attempt(1)"); } if( !defined('IN_ADMIN') ) { die("Hacking attempt(2)"); } if( !$userdata['session_logged_in'] ) { die("Hacking attempt(3)"); } if( $userdata['user_level'] != ADMIN ) { die("Hacking attempt(4)"); } $message .= '<br />This module does not create any table on your database.'; echo '<br /> <br />'; echo '<table cellpadding="4" cellspacing="1" border="0" class="forumline">'; echo '<tr><th class="thHead" align="center">Module Uninstallation Information</th></tr>'; echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ?> --- NEW FILE: qsearch.php --- <?php /*************************************************************************** * qsearch.php * ----------- * begin : October, 2003 * Updated : April 2007 * copyright : Marc Ferran (c) 2003 * module : mx_tinies * file contents : Quick Search (Block). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ //Some basic security if(!defined('IN_PORTAL')) { die('Hacking attempt'); } // -------------------------------------------------------------------------------- // Block Initialization // -------------------------------------------------------------------------------- $block_title = 'Tinies: Quick Search'; if( !function_exists('read_block_config') ) { message_die(GENERAL_ERROR, "This script should be executed as Portal Block.", 'mx_tinies'); } // // Include common module stuff... // include_once($module_root_path . 'includes/common.' . $phpEx); // // Read block Configuration // $block_config = $mx_block->get_parameters( 'target_block' ); //$block_config = read_block_config($block_id); $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); // -------------------------------------------------------------------------------- // Block Procedure // -------------------------------------------------------------------------------- // // This is the template used to render this block. // $template->set_filenames(array( 'qsearch_body' => 'qsearch_body.tpl') ); // // Setup common template vars and display the block. // $template->assign_vars(array( 'L_QUICK_SEARCH' => $lang['Quick_search'], 'L_SEARCH' => $lang['Search'], 'L_SEARCH_AT' => $lang['Search_at'], 'L_ADVANCED_SEARCH' => $lang['Advanced_search'], 'U_IMAGES_PATH' => $module_root_path.'templates/images/', 'U_SEARCH' => append_sid(PHPBB_URL.'search.'.$phpEx.'?mode=results'), 'L_FORUM' => $lang['Forum'], 'HOSTNAME' => $_SERVER['HTTP_HOST'], 'SITENAME' => $board_config['sitename']) ); $template->pparse('qsearch_body'); ?> --- NEW FILE: view_topics.php --- <?php /*************************************************************************** * view_topics.php * --------------- * begin : May, 2004 * Updated : April 2007 * copyright : Marc Ferran (c) 2003-2004 * module : mx_tinies * file contents : View Unread/EgoStarted Topics (Block/Standalone). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // -------------------------------------------------------------------------------- // Initialization // -------------------------------------------------------------------------------- $block_title = 'Tinies: View Topics'; if( function_exists('read_block_config') ) { // // Running as a Block... // $generate_headers = FALSE; $mx_user->init($user_ip, PAGE_INDEX); } else { // // Running Standalone... // define('IN_PORTAL', true); //session_start(); $mx_root_path = "../../"; //include_once($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // // Start session management // //$userdata = session_pagestart($user_ip, PAGE_INDEX); //mx_init_userprefs($userdata); $mx_user->init($user_ip, PAGE_INDEX); // // End session management // $block_id = ( !empty($HTTP_GET_VARS['block_id']) ) ? $HTTP_GET_VARS['block_id'] : 0; if( empty($block_id) ) { $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = '$block_title' LIMIT 1"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Could not query '$block_title' information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $block_id = $row['block_id']; } $generate_headers = TRUE; } if( !$userdata['session_logged_in'] ) { mx_message_die(GENERAL_ERROR, "You must be logged in to view this report.", 'mx_tinies'); } // // Include common module stuff... // include_once($module_root_path . 'includes/common.' . $phpEx); // // Read block Configuration // //$block_config = read_block_config($block_id); //$block_config = $mx_block->get_parameters( 'block_id' ); //$block_config = read_block_config($block_id); $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); // // Setup proper report... // $report_id = ( isset($HTTP_GET_VARS['report_id']) ) ? $HTTP_GET_VARS['report_id'] : ''; if( $report_id == 'unread' ) { $report_title = $lang['Search_unread']; $report_cond = ' AND p2.post_time > ' . $userdata['user_lastvisit']; } else if( $report_id == 'egostarted' ) { $report_title = $lang['Search_self_topics']; $report_cond = ' AND t.topic_poster = ' . $userdata['user_id']; } else if( $report_id == '24h' ) { $report_title = $lang['View_latest'].' 24h :: '.$lang['Search']; $report_cond = ' AND p2.post_time > ' . ( time() - 86400 ); // Seconds * 1day = (24 * 60 * 60) } else if( $report_id == '48h' ) { $report_title = $lang['View_latest'].' 48h :: '.$lang['Search']; $report_cond = ' AND p2.post_time > ' . ( time() - 172800 ); // Seconds * 2days = (24 * 60 * 60) * 2 } else if( $report_id == '72h' ) { $report_title = $lang['View_latest'].' 72h :: '.$lang['Search']; $report_cond = ' AND p2.post_time > ' . ( time() - 259200 ); // Seconds * 3days = (24 * 60 * 60) * 3 } else { message_die(GENERAL_MESSAGE, $lang['No_search_match']); } // // Build the base query... // $report_from = ' FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . ' f, ' . USERS_TABLE . ' u, ' . POSTS_TABLE . ' p, ' . POSTS_TABLE . ' p2, ' . USERS_TABLE . ' u2' . ' WHERE t.topic_poster = u.user_id' . ' AND f.forum_id = t.forum_id' . ' AND p.post_id = t.topic_first_post_id' . ' AND p2.post_id = t.topic_last_post_id' . ' AND u2.user_id = p2.poster_id' . ' AND f.forum_id IN (' . get_auth_forum() . ')' . ' AND t.topic_moved_id = 0' . $report_cond; // // Get the total count of topics, quit if none... // $sql = 'SELECT COUNT(*) AS total'.$report_from; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain search result', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $total_match_count = $row['total']; $db->sql_freeresult($result); if( $total_match_count <= 0 ) { mx_message_die(GENERAL_MESSAGE, $lang['No_search_match']); } // // Get information about topics visited... // $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); // // Get the list of posts ids since last visit... // $start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; $sql = 'SELECT t.*, f.forum_id, f.forum_name,'. ' u.username, u.user_id, u2.username as user2, u2.user_id as id2,'. ' p.post_username, p2.post_username AS post_username2, p2.post_time' . $report_from . ' ORDER BY p2.post_time DESC'. " LIMIT $start, " . $board_config['topics_per_page']; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain search result', '', __LINE__, __FILE__, $sql); } $searchset = array(); while( $row = $db->sql_fetchrow($result) ) { if( $report_id == 'unread' ) { if ( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { $topic_id = $row['topic_id']; if( !empty($tracking_topics[$topic_id]) ) { if( $tracking_topics[$topic_id] > $row['post_time'] ) { continue; } } $forum_id = $row['forum_id']; if( !empty($tracking_forums[$forum_id]) ) { if( $tracking_forums[$forum_id] > $row['post_time'] ) { continue; } } if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $row['post_time'] ) { continue; } } } } $searchset[] = $row; } $db->sql_freeresult($result); if( $report_id == 'unread' ) { $total_match_count = count($searchset); if( $total_match_count <= 0 ) { mx_message_die(GENERAL_MESSAGE, $lang['No_search_match']); } } // ---------------------------------------- // Actually, the report begins here ;-) // ---------------------------------------- // // Generate header if running standalone... // if( $generate_headers ) { $page_title = $report_title; include($mx_root_path . 'includes/page_header.'.$phpEx); } // // This is the template used to render this block. // $template->set_filenames(array( 'view_topics' => 'view_topics.tpl') ); // // Build the report (based on phpBB search.php)... // make_jumpbox(PHPBB_URL . 'viewforum.'.$phpEx); $l_search_matches = ( $total_match_count == 1 ) ? sprintf($lang['Found_search_match'], $total_match_count) : sprintf($lang['Found_search_matches'], $total_match_count); if( $report_id == '24h' || $report_id == '48h' || $report_id == '72h' ) { $l_search_matches = $lang['View_latest']." $report_id :: ".$l_search_matches; } $template->assign_vars(array( 'L_SEARCH_MATCHES' => $l_search_matches, 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'U_INDEX' => append_sid(PHPBB_URL . "index.$phpEx"), 'L_TOPIC' => $lang['Topic']) ); for( $i = 0; $i < count($searchset); $i++ ) { $forum_url = append_sid(PHPBB_URL . "viewforum.$phpEx?" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']); $topic_url = append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id']); $post_url = append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id']) . '#' . $searchset[$i]['post_id']; $post_date = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $topic_title = $searchset[$i]['topic_title']; $forum_id = $searchset[$i]['forum_id']; $topic_id = $searchset[$i]['topic_id']; $topic_type = $searchset[$i]['topic_type']; if( $topic_type == POST_ANNOUNCE ) { $topic_type = $lang['Topic_Announcement'] . ' '; } else if( $topic_type == POST_STICKY ) { $topic_type = $lang['Topic_Sticky'] . ' '; } else { $topic_type = ''; } if( $searchset[$i]['topic_vote'] ) { $topic_type .= $lang['Topic_Poll'] . ' '; } $views = $searchset[$i]['topic_views']; $replies = $searchset[$i]['topic_replies']; if( ( $replies + 1 ) > $board_config['posts_per_page'] ) { $total_pages = ceil( ( $replies + 1 ) / $board_config['posts_per_page'] ); $goto_page = ' [ <img src="' . PHPBB_URL . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': '; $times = 1; for( $j = 0; $j < $replies + 1; $j += $board_config['posts_per_page'] ) { $goto_page .= '<a target="_blank" href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&start=$j") . '">' . $times . '</a>'; if( $times == 1 && $total_pages > 4 ) { $goto_page .= ' ... '; $times = $total_pages - 3; $j += ( $total_pages - 4 ) * $board_config['posts_per_page']; } else if( $times < $total_pages ) { $goto_page .= ', '; } $times++; } $goto_page .= ' ] '; } else { $goto_page = ''; } if ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) { $folder_img = 'folder_locked'; } else if ( $searchset[$i]['topic_type'] == POST_ANNOUNCE ) { $folder_img = 'folder_announce'; } else if ( $searchset[$i]['topic_type'] == POST_STICKY ) { $folder_img = 'folder_sticky'; } else { if ( $replies >= $board_config['hot_threshold'] ) { $folder_img = 'folder_hot'; } else { $folder_img = 'folder'; } } if( $report_id == 'unread' ) { $folder_img .= '_new'; $folder_alt = $lang['New_posts']; $newest_post_img = '<a target="_blank" href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . PHPBB_URL . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } else // $report_id == 'egostarted' or '24/48/72h' { if( $userdata['session_logged_in'] ) { if( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) { if( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { $unread_topics = true; if( !empty($tracking_topics[$topic_id]) ) { if( $tracking_topics[$topic_id] > $searchset[$i]['post_time'] ) { $unread_topics = false; } } if( !empty($tracking_forums[$forum_id]) ) { if( $tracking_forums[$forum_id] > $searchset[$i]['post_time'] ) { $unread_topics = false; } } if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $searchset[$i]['post_time'] ) { $unread_topics = false; } } if( $unread_topics ) { $folder_img .= '_new'; $folder_alt = $lang['New_posts']; $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } else { $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else if( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) { $folder_img .= '_new'; $folder_alt = $lang['New_posts']; $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } else { $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else { $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else { $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } $topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a target="_blank" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['user_id']) . '">' : ''; $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] ); $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; $first_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a target="_blank" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>'; $last_post_url = '<a target="_blank" href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '"><img src="' . PHPBB_URL . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; $template->assign_block_vars('searchresults', array( 'FORUM_NAME' => $searchset[$i]['forum_name'], 'FORUM_ID' => $forum_id, 'TOPIC_ID' => $topic_id, 'FOLDER' => $images[$folder_img], 'NEWEST_POST_IMG' => $newest_post_img, 'TOPIC_FOLDER_IMG' => $images[$folder_img], 'GOTO_PAGE' => $goto_page, 'REPLIES' => $replies, 'TOPIC_TITLE' => $topic_title, 'TOPIC_TYPE' => $topic_type, 'VIEWS' => $views, 'TOPIC_AUTHOR' => $topic_author, 'FIRST_POST_TIME' => $first_post_time, 'LAST_POST_TIME' => $last_post_time, 'LAST_POST_AUTHOR' => $last_post_author, 'LAST_POST_IMG' => $last_post_url, 'L_TOPIC_FOLDER_ALT' => $folder_alt, 'U_VIEW_FORUM' => $forum_url, 'U_VIEW_TOPIC' => $topic_url) ); } $base_url = $module_root_path . basename(__FILE__) . '?report_id=' . $report_id; $per_page = $board_config['topics_per_page']; $template->assign_vars(array( 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), 'L_AUTHOR' => $lang['Author'], 'L_MESSAGE' => $lang['Message'], 'L_FORUM' => $lang['Forum'], 'L_TOPICS' => $lang['Topics'], 'L_REPLIES' => $lang['Replies'], 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], 'L_LASTPOST' => $lang['Last_Post'], 'L_POSTED' => $lang['Posted'], 'L_SUBJECT' => $lang['Subject'], 'L_GOTO_PAGE' => $lang['Goto_page']) ); $template->pparse('view_topics'); // // Generate footer if running standalone... // if( $generate_headers ) { include_once($mx_root_path . 'includes/page_tail.'.$phpEx); } ?> --- NEW FILE: welcome.php --- <?php /*************************************************************************** * welcome.php * ----------- * begin : October, 2003 * Updated : April 2007 * copyright : Marc Ferran (c) 2003 * * module : mx_tinies * file contents : Welcome (Block). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ //Some basic security if( !defined('IN_PORTAL')) { die('Hacking Attempt'); } // -------------------------------------------------------------------------------- // Block Initialization // -------------------------------------------------------------------------------- $block_title = 'Tinies: Welcome'; if( !function_exists('read_block_config') ) { message_die(GENERAL_ERROR, "This script should be executed as Portal Block.", 'mx_tinies'); } // // Include common module stuff... // include_once($module_root_path . 'includes/common.' . $phpEx); // // Read block Configuration // $block_config = read_block_config($block_id); $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $welcome_msg = $block_config[$block_id]['Tinies_Welcome_Msg']['parameter_value']; $register_msg = $block_config[$block_id]['Tinies_Register_Msg']['parameter_value']; $vertical_layout = ( $block_config[$block_id]['Tinies_Vertical_Layout']['parameter_value'] == 'TRUE' ? TRUE : FALSE ); $view_jump_to = ( $block_config[$block_id]['Tinies_View_JumpTo']['parameter_value'] == 'TRUE' ? TRUE : FALSE ); $default_avatar = $block_config[$block_id]['Tinies_Default_Avatar']['parameter_value']; $view_postcount = ( $block_config[$block_id]['Tinies_View_PostCount']['parameter_value'] == 'TRUE' ? TRUE : FALSE ); $report_page = intval($block_config[$block_id]['Tinies_Report_Page']['parameter_value']); define('IN_PORTAL', true); // -------------------------------------------------------------------------------- // Block Procedure // -------------------------------------------------------------------------------- // // Get User Avatar... // $avatar_img = ''; if( $userdata['user_avatar_type'] && $userdata['user_allowavatar'] ) { switch( $userdata['user_avatar_type'] ) { case USER_AVATAR_UPLOAD: $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="'.PHPBB_URL.$board_config['avatar_path'].'/'.$userdata['user_avatar'].'" alt="" border="0" />' : ''; break; case USER_AVATAR_REMOTE: $img_width = ''; if( ($img_info = @getimagesize($userdata['user_avatar'])) !== FALSE ) { if( $img_info[0] > $board_config['avatar_max_width'] ) { $img_width = ' width="'.$board_config['avatar_max_width'].'"'; } } $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="'.$userdata['user_avatar'].'"'.$img_width.' alt="" border="0" />' : ''; break; case USER_AVATAR_GALLERY: $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="'.PHPBB_URL.$board_config['avatar_gallery_path'].'/'.$userdata['user_avatar'].'" alt="" border="0" />' : ''; break; } } if( empty($avatar_img) && !empty($default_avatar) ) { $avatar_img = '<img src="'.$module_root_path.'avatars/'.$default_avatar.'" alt="" border="0" />'; } // // This is the template used to render this block. // $template->set_filenames(array( 'welcome_body' => 'welcome_body.tpl') ); // // Activate template switches for Vertical/Horizontal Layout... // if( $vertical_layout ) { $template->assign_block_vars('welcome_vertical_layout', array()); } else { $template->assign_block_vars('welcome_horizontal_layout', array()); } // // Get User Dependent Information... // if( $userdata['session_logged_in'] ) { $s_last_visit = create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); if( $view_postcount ) { $sql = 'SELECT t.topic_status, t.forum_id, t.topic_id, p2.post_time' . ' FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p, ' . POSTS_TABLE . ' p2' . ' WHERE p.post_id = t.topic_first_post_id' . ' AND p2.post_id = t.topic_last_post_id' . ' AND p2.post_time > ' . $userdata['user_lastvisit'] . ' AND t.forum_id IN (' . get_auth_forum() . ')'; if( ($result = $db->sql_query($sql)) == TRUE ) { $unread_posts = 0; $rowset = $db->sql_fetchrowset($result); $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); for( $i = 0; $i < count($rowset); $i++ ) { if( $rowset[$i]['topic_status'] == TOPIC_MOVED ) { continue; } if ( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { $topic_id = $rowset[$i]['topic_id']; if( !empty($tracking_topics[$topic_id]) ) { if( $tracking_topics[$topic_id] > $row['post_time'] ) { continue; } } $forum_id = $rowset[$i]['forum_id']; if( !empty($tracking_forums[$forum_id]) ) { if( $tracking_forums[$forum_id] > $rowset[$i]['post_time'] ) { continue; } } if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $rowset[$i]['post_time'] ) { continue; } } } $unread_posts++; } $s_search_new = $lang['Posts_since_last_visit'].' ('.count($rowset).')'; $s_search_unread = $lang['Search_unread'].' ('.$unread_posts.')'; } } $template->assign_block_vars('welcome_user_logged_in', array()); $template->assign_block_vars('welcome_user_admin_' . ($userdata['user_level'] == ADMIN ? 'on' : 'off'), array()); } else { $s_last_visit = ''; $register_msg = sprintf($register_msg, '<a href="'.append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=register').'">', '</a>'); $template->assign_block_vars('welcome_user_logged_out', array()); } $user_link = ( $userdata['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=editprofile&".$userdata['user_id']).'">'.$userdata['username'].'</a>' : $lang['Guest']; if( $report_page == 0 ) { $u_view_topics = $module_root_path.'view_topics.'.$phpEx.'?report_id='; } else { $u_view_topics = PORTAL_URL.'index.'.$phpEx.'?page='.$report_page.'&report_id='; } $u_unread = append_sid($u_view_topics.'unread'); $u_egostarted = append_sid($u_view_topics.'egostarted'); // // Setup common template vars and display the block. // $template->assign_vars(array( 'L_WELCOME' => $lang['Welcome'], 'L_WELCOME_USER' => sprintf($lang['Welcome_User'], $user_link), 'L_WELCOME_MSG' => ( empty($welcome_msg) ) ? '' : $welcome_msg.'<br /><br />', 'AVATAR_IMG' => $avatar_img, 'S_LOGIN_ACTION' => append_sid(PORTAL_URL.'login.'.$phpEx), 'L_USERNAME' => $lang['Username'], 'L_PASSWORD' => $lang['Password'], 'L_LOGIN' => $lang['Login'], 'L_LOG_ME_IN' => $lang['Log_me_in'], 'L_FORGOTTEN_PSW' => $lang['Forgotten_password'], 'U_FORGOTTEN_PSW' => append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=sendpassword'), 'L_REGISTER' => $lang['Register'], 'U_REGISTER' => append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=register'), 'L_REGISTER_MSG' => $register_msg, 'IMG_ICON_DOT' => PORTAL_URL.'modules/mx_tinies/templates/images/icon_dot.gif', 'L_SEARCH_NEW' => ( isset($s_search_new) ) ? $s_search_new : $lang['Posts_since_last_visit'], 'U_SEARCH_NEW' => append_sid(PHPBB_URL.'search.'.$phpEx.'?search_id=newposts'), 'L_SEARCH_UNREAD' => ( isset($s_search_unread) ) ? $s_search_unread : $lang['Search_unread'], 'U_SEARCH_UNREAD' => $u_unread, 'L_SEARCH_LATEST' => $lang['View_latest'], 'U_SEARCH_LATEST_24' => append_sid($u_view_topics.'24h'), 'U_SEARCH_LATEST_48' => append_sid($u_view_topics.'48h'), 'U_SEARCH_LATEST_72' => append_sid($u_view_topics.'72h'), 'L_SEARCH_SELF_TOPICS' => $lang['Search_self_topics'], 'U_SEARCH_SELF_TOPICS' => $u_egostarted, 'L_SEARCH_SELF_POSTS' => $lang['Search_self_posts'], 'U_SEARCH_SELF_POSTS' => append_sid(PHPBB_URL.'search.'.$phpEx.'?search_id=egosearch'), 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], 'U_SEARCH_UNANSWERED' => append_sid(PHPBB_URL.'search.'.$phpEx.'?search_id=unanswered'), 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], 'U_MARK_READ' => append_sid(PHPBB_URL.'index.'.$phpEx . "?mark=forums"), 'L_PRIVATE_MSGS' => $lang['Private_Messages'].' ('.$userdata['user_new_privmsg'].')', 'U_PRIVATE_MSGS' => append_sid(PHPBB_URL.'privmsg.'.$phpEx.'?folder=inbox'), 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])])) ); if( $view_jump_to ) { make_jumpbox(PHPBB_URL.'viewforum.'.$phpEx); } $template->pparse('welcome_body'); ?> |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:14:46
|
Update of /cvsroot/mxbb/mx_tinies/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11886/language Added Files: index.html Log Message: added mx_tinies --- NEW FILE: index.html --- |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:14:46
|
Update of /cvsroot/mxbb/mx_tinies/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11886/includes Added Files: common.php index.html Log Message: added mx_tinies --- NEW FILE: index.html --- --- NEW FILE: common.php --- <?php /*************************************************************************** * common.php * ---------- * begin : October, 2003 * copyright : Marc Ferran (c) 2003 * email : phpmix at pobox.com * module : mx_tinies * file contents : Common definitions for the module. * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ //Some basic security if( !defined('IN_PORTAL')) { die('Hacking Attempt'); } // // Load language files. // if( file_exists($module_root_path.'language/lang_'.$board_config['default_lang'].'/lang_admin.'.$phpEx) ) { include_once($module_root_path.'language/lang_'.$board_config['default_lang'].'/lang_admin.'.$phpEx); } else { include_once($module_root_path.'language/lang_english/lang_admin.'.$phpEx); } if( file_exists($module_root_path.'language/lang_'.$board_config['default_lang'].'/lang_main.'.$phpEx) ) { include_once($module_root_path.'language/lang_'.$board_config['default_lang'].'/lang_main.'.$phpEx); } else { include_once($module_root_path.'language/lang_english/lang_main.'.$phpEx); } // ================================================================================ // [ FUNCTIONS ] // ================================================================================ // No common functions, yet! ?> |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:14:45
|
Update of /cvsroot/mxbb/mx_tinies/faqs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11886/faqs Added Files: index.html Log Message: added mx_tinies --- NEW FILE: index.html --- |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:14:39
|
Update of /cvsroot/mxbb/mx_tinies/avatars In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11886/avatars Added Files: basic.gif blinking.gif connectthedots.gif electronic.gif index.html rotatingsmiley.gif stickinouttounge.gif talking.gif transparent.gif winking.gif Log Message: added mx_tinies --- NEW FILE: index.html --- --- NEW FILE: connectthedots.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: electronic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: transparent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: talking.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: winking.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: stickinouttounge.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: basic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: blinking.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: rotatingsmiley.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/templates/subSilver Modified Files: album_box.tpl album_cat_body.tpl album_comment_body.tpl album_edit_body.tpl album_hon.tpl album_index_body.tpl album_lists.tpl album_memberlist_body.tpl album_modcp_body.tpl album_move_body.tpl album_page_body.tpl album_personal_body.tpl album_personal_index_body.tpl album_posting_smilies.tpl album_rate_body.tpl album_search_body.tpl album_showpage_body.tpl album_upload_body.tpl subSilver.cfg Added Files: album_jupload_body.tpl album_nuffimage_box.tpl album_nuffload_pbar_body.tpl album_otf_body.tpl album_pic_nuffed_body.tpl album_slideshow_body.tpl subSilver.css Log Message: Index: album_hon.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/album_hon.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** album_hon.tpl 18 Feb 2005 10:10:14 -0000 1.3 --- album_hon.tpl 7 Jun 2007 20:13:40 -0000 1.4 *************** *** 1,8 **** ! <form action="album_hotornot.php"> ! <input type="hidden" name="pic_id" value="{PICTURE_ID}" /> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <!-- BEGIN hon_rating --> <tr> ! <td align="center" class="row2"><span class="genmed">Rate me: <!-- BEGIN hon_row --> --- 1,7 ---- ! <form action="album_hotornot.php" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <!-- BEGIN hon_rating --> <tr> ! <td align="center" class="row2"><span class="genmed">Rata me: <!-- BEGIN hon_row --> *************** *** 67,68 **** --- 66,75 ---- </tr> </table> + + <br /> + + <!-- + You must keep my copyright notice visible with its original content + --> + <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Photo Album Addon {ALBUM_VERSION} © 2002-2003 <a href="http://smartor.is-root.com" target="_blank">Smartor</a> <br /> {ALBUM_VERSION_INFO}</div> + <br /> \ No newline at end of file Index: album_box.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/album_box.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_box.tpl 5 Apr 2006 21:40:23 -0000 1.2 --- album_box.tpl 7 Jun 2007 20:13:40 -0000 1.3 *************** *** 1,87 **** <!-- BEGIN catheader --> ! <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> ! <tr> ! <th width="80%" class="thCornerL" height="25" nowrap="nowrap"> {catheader.L_CATEGORY} </th> ! <!-- BEGIN thumb --> ! <th width="5%" class="{catheader.thumb.CLASS}"> {catheader.thumb.L_LAST_PIC_THUMB} </th> ! <!-- END thumb --> ! <!-- BEGIN total_pics --> ! <th width="5%" class="{catheader.total_pics.CLASS}"> {catheader.total_pics.L_TOTAL_PICS} </th> ! <!-- END total_pics --> ! <!-- BEGIN total_comments --> ! <th width="5%" class="{catheader.total_comments.CLASS}"> {catheader.total_comments.L_TOTAL_COMMENTS} </th> ! <!-- END total_comments --> ! <!-- BEGIN pics --> ! <th width="5%" class="{catheader.pics.CLASS}"> {catheader.pics.L_PICS} </th> ! <!-- END pics --> ! <!-- BEGIN comments --> ! <th width="5%" class="{catheader.comments.CLASS}" > {catheader.comments.L_COMMENTS} </th> ! <!-- END comments --> ! <!-- BEGIN last_comment --> ! <th width="10%" class="{catheader.last_comment.CLASS}" > {catheader.last_comment.L_LAST_COMMENT_INFO} </th> ! <!-- END last_comment --> ! <!-- BEGIN last_pic --> ! <th width="10%" class="{catheader.last_pic.CLASS}"> {catheader.last_pic.L_LAST_PIC} </th> ! <!-- END last_pic --> ! </tr> ! <tr> ! <!-- BEGIN col_span --> ! <!-- <td class="catLeft" colspan="{catheader.col_span.HEADER_COL_SPAN}" height="28"><span class="cattitle">{catheader.L_PUBLIC_CATS}</span></td> --> ! <!-- END col_span --> ! </tr> <!-- END catheader --> <!-- BEGIN catmain --> <!-- BEGIN catrow --> ! <tr> ! <td class="row1" height="50" onMouseOver="this.style.backgroundColor='{catmain.catrow.T_TD_COLOR1}';" onMouseOut="this.style.backgroundColor='{catmain.catrow.T_TR_COLOR1}';"> ! <span class="forumlink"><a href="{catmain.catrow.U_VIEWCAT}" class="forumlink">{catmain.catrow.CAT_TITLE}</a> ! <!-- BEGIN newpics --> ! <img src="{catmain.catrow.newpics.I_NEWEST_PICS}" alt="{catmain.catrow.newpics.L_NEWEST_PICS}" title="{catmain.catrow.newpics.L_NEWEST_PICS}"> ! <!-- END newpics --> ! <br /></span> ! <span class="genmed">{catmain.catrow.CAT_DESC}<!--<br />--></span> ! <span class="gensmall">{catmain.catrow.L_MODERATORS} {catmain.catrow.MODERATORS}</span> ! </td> ! <!-- BEGIN thumb --> ! <td class="{COL0}" align="center" onMouseOver="this.style.backgroundColor='{THUMB_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{THUMB_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.thumb.LAST_PIC_URL}</span></td> ! <!-- END thumb --> ! <!-- BEGIN total_pics --> ! <td class="{COL1}" align="center" onMouseOver="this.style.backgroundColor='{TOTAL_PICS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{TOTAL_PICS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.total_pics.TOTAL_PICS}</span></td> ! <!-- END total_pics --> ! <!-- BEGIN total_comments --> ! <td class="{COL2}" align="center" onMouseOver="this.style.backgroundColor='{TOTAL_COMMENTS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{TOTAL_COMMENTS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.total_comments.TOTAL_COMMENTS}</span></td> ! <!-- END total_comments --> ! <!-- BEGIN pics --> ! <td class="{COL3}" align="center" onMouseOver="this.style.backgroundColor='{PICS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{PICS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.pics.PICS}</span></td> ! <!-- END pics --> ! <!-- BEGIN comments --> ! <td class="{COL4}" align="center" onMouseOver="this.style.backgroundColor='{COMMENTS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{COMMENTS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.comments.COMMENTS}</span></td> ! <!-- END comments --> ! <!-- BEGIN last_comment --> ! <td class="{COL5}" align="center" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{LAST_COMMENT_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{LAST_COMMENT_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.last_comment.LAST_COMMENT_INFO}</span></td> ! <!-- END last_comment --> ! <!-- BEGIN last_pic --> ! <td class="{COL6}" align="center" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{LAST_PIC_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{LAST_PIC_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.last_pic.LAST_PIC_INFO}</span></td> ! <!-- END last_pic --> ! </tr> ! ! <!-- BEGIN subcat_link --> ! <tr> ! <td class="row1" colspan="4" height="28"> ! <span class="gensmall"><b>{catmain.catrow.subcat_link.L_LINKS}</b>: {catmain.catrow.subcat_link.LINKS}</span><hr> ! </td> ! </tr> ! <!-- END subcat_link --> ! <!-- END catrow --> ! <!-- END catmain --> <!-- BEGIN catfooter --> ! <!-- BEGIN cat_public_footer --> ! <tr> ! <td class="cat" colspan="{catfooter.cat_public_footer.FOOTER_COL_SPAN}" height="28"><span class="cattitle"><a href="{catfooter.cat_public_footer.U_USERS_PERSONAL_GALLERIES}" class="cattitle">{catfooter.cat_public_footer.L_USERS_PERSONAL_GALLERIES}</a> » <a href="{catfooter.cat_public_footer.U_YOUR_PERSONAL_GALLERY}" class="cattitle">{catfooter.cat_public_footer.L_YOUR_PERSONAL_GALLERY}</a></span></td> ! </tr> ! <!-- END cat_public_footer --> ! </table> ! <!-- END catfooter --> \ No newline at end of file --- 1,126 ---- <!-- BEGIN catheader --> ! <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2"> ! <tr> ! <!-- BEGIN col_span --> ! <td class="catLeft" colspan="{catheader.col_span.HEADER_COL_SPAN}" height="28"><span class="cattitle">{catheader.L_PUBLIC_CATS}</span></td> ! <!-- END col_span --> ! </tr> ! <tr> ! <th class="thCornerL" width="80%" height="25" colspan="2" nowrap="nowrap"> {catheader.L_CATEGORY} </th> ! <!-- BEGIN thumb --> ! <th width="5%" class="{catheader.thumb.CLASS}"> {catheader.thumb.L_LAST_PIC_THUMB} </th> ! <!-- END thumb --> ! <!-- BEGIN total_pics --> ! <th width="5%" class="{catheader.total_pics.CLASS}"> {catheader.total_pics.L_TOTAL_PICS} </th> ! <!-- END total_pics --> ! <!-- BEGIN total_comments --> ! <th width="5%" class="{catheader.total_comments.CLASS}"> {catheader.total_comments.L_TOTAL_COMMENTS} </th> ! <!-- END total_comments --> ! <!-- BEGIN pics --> ! <th width="5%" class="{catheader.pics.CLASS}"> {catheader.pics.L_PICS} </th> ! <!-- END pics --> ! <!-- BEGIN comments --> ! <th width="5%" class="{catheader.comments.CLASS}" nowrap="nowrap"> {catheader.comments.L_COMMENTS} </th> ! <!-- END comments --> ! <!-- BEGIN last_comment --> ! <th width="15%" class="{catheader.last_comment.CLASS}" nowrap="nowrap"> {catheader.last_comment.L_LAST_COMMENT_INFO} </th> ! <!-- END last_comment --> ! <!-- BEGIN last_pic --> ! <th class="{catheader.last_pic.CLASS}" nowrap="nowrap"> {catheader.last_pic.L_LAST_PIC} </th> ! <!-- END last_pic --> ! </tr> <!-- END catheader --> <!-- BEGIN catmain --> <!-- BEGIN catrow --> ! <tr> ! <td class="row1" width="1%"><img src="{catmain.catrow.CAT_IMG}" alt="" /></td> ! <!-- <td class="row1" height="50" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}';" onMouseOut="this.style.backgroundColor='{T_TR_COLOR1}';"> --> ! <td class="row1" height="50" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';"> ! <span class="forumlink"> ! {NAV_DOT} <a href="{catmain.catrow.U_VIEWCAT}" class="forumlink">{catmain.catrow.CAT_TITLE}</a> ! <!-- BEGIN newpics --> ! <img src="{catmain.catrow.newpics.I_NEWEST_PICS}" border="0" alt="{catmain.catrow.newpics.L_NEWEST_PICS}" title="{catmain.catrow.newpics.L_NEWEST_PICS}"> ! <!-- END newpics --> ! </span> ! <span class="genmed" nowrap="nowrap">{catmain.catrow.SLIDESHOW} </span> ! <br /> ! <img src="{SPACER}" width="14" height="1" alt="" /> ! <span class="genmed">{catmain.catrow.CAT_DESC} </span> ! <span class="gensmall">{catmain.catrow.L_MODERATORS} {catmain.catrow.MODERATORS}</span> ! <!-- BEGIN subcat_link --> ! <br /> ! <img src="{SPACER}" width="1" height="14" alt="" /> ! <span class="gensmall">{catmain.catrow.subcat_link.L_LINKS}: {catmain.catrow.subcat_link.LINKS}</span> ! <!-- END subcat_link --> ! </td> ! <!-- BEGIN thumb --> ! <td class="{COL0}" align="center" onMouseOver="this.style.backgroundColor='{THUMB_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{THUMB_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.thumb.LAST_PIC_URL} </span></td> ! <!-- END thumb --> ! <!-- BEGIN total_pics --> ! <td class="{COL1}" align="center" onMouseOver="this.style.backgroundColor='{TOTAL_PICS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{TOTAL_PICS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.total_pics.TOTAL_PICS} </span></td> ! <!-- END total_pics --> ! <!-- BEGIN total_comments --> ! <td class="{COL2}" align="center" onMouseOver="this.style.backgroundColor='{TOTAL_COMMENTS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{TOTAL_COMMENTS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.total_comments.TOTAL_COMMENTS} </span></td> ! <!-- END total_comments --> ! <!-- BEGIN pics --> ! <td class="{COL3}" align="center" onMouseOver="this.style.backgroundColor='{PICS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{PICS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.pics.PICS} </span></td> ! <!-- END pics --> ! <!-- BEGIN comments --> ! <td class="{COL4}" align="center" onMouseOver="this.style.backgroundColor='{COMMENTS_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{COMMENTS_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.comments.COMMENTS} </span></td> ! <!-- END comments --> ! <!-- BEGIN last_comment --> ! <td class="{COL5}" align="center" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{LAST_COMMENT_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{LAST_COMMENT_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.last_comment.LAST_COMMENT_INFO} </span></td> ! <!-- END last_comment --> ! <!-- BEGIN last_pic --> ! <td class="{COL6}" align="center" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{LAST_PIC_OVER_COLOR}';" onMouseOut="this.style.backgroundColor='{LAST_PIC_OUT_COLOR}';"><span class="gensmall">{catmain.catrow.last_pic.LAST_PIC_INFO} </span></td> ! <!-- END last_pic --> ! </tr> <!-- END catrow --> ! <!-- END catmain --> <!-- BEGIN catfooter --> ! <!-- BEGIN cat_public_footer --> ! <!-- BEGIN show_all_pics_link --> ! <tr> ! <td class="row1" height="50" colspan="{catfooter.cat_public_footer.FOOTER_COL_SPAN}" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';"> ! <span class="forumlink"> ! {NAV_DOT} <a href="{U_ALBUM_ALLPICS}" class="cattitle">{L_ALBUM_ALLPICS}</a> ! </span> ! </td> ! </tr> ! <!-- END show_all_pics_link --> ! <!-- BEGIN show_otf_link --> ! <tr> ! <td class="row1" height="50" colspan="{catfooter.cat_public_footer.FOOTER_COL_SPAN}" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';"> ! <span class="forumlink"> ! {NAV_DOT} <a href="{U_ALBUM_OTF}" class="cattitle">{L_ALBUM_OTF}</a> ! </span> ! </td> ! </tr> ! <!-- END show_otf_link --> ! <!-- BEGIN show_personal_galleries_link --> ! <tr> ! <td class="row1" height="50" colspan="{catfooter.cat_public_footer.FOOTER_COL_SPAN}" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';"> ! <span class="forumlink"> ! {NAV_DOT} <a href="{catfooter.cat_public_footer.U_USERS_PERSONAL_GALLERIES}" class="cattitle">{catfooter.cat_public_footer.L_USERS_PERSONAL_GALLERIES}</a> ! </span> ! <br /> ! <img src="{SPACER}" width="5" height="15" alt="" /> ! <span class="gensmall"> ! {NAV_DOT} <a href="{catfooter.cat_public_footer.U_YOUR_PERSONAL_GALLERY}" class="gensmall"><b>{catfooter.cat_public_footer.L_YOUR_PERSONAL_GALLERY}</b></a> ! </span> ! </td> ! </tr> ! <!-- END show_personal_galleries_link --> ! <tr> ! <td class="catBottom" height="28" colspan="{catfooter.cat_public_footer.FOOTER_COL_SPAN}"> ! <br /> ! <img src="{SPACER}" width="14" height="1" alt="" /> ! <span class="gensmall">{L_RSS}: <a target="_blank" alt="album_rdf" href="{U_ALBUM_RDF}">1.0</a> <a target="_blank" alt="album_rss" href="{U_ALBUM_RSS}">2.0</a></span> ! </td> ! </tr> ! <!-- END cat_public_footer --> ! <!-- END catfooter --> ! </table> ! <br clear="all" /> \ No newline at end of file Index: album_search_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/album_search_body.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** album_search_body.tpl 5 Apr 2006 21:40:23 -0000 1.4 --- album_search_body.tpl 7 Jun 2007 20:13:44 -0000 1.5 *************** *** 1,69 **** <!-- BEGIN switch_search --> ! <form action="{PAFILEDB_SEARCH_ACTION}"> ! <span class="gensmall"> ! ! Search for: ! <select name="mode"> ! <option value="user">User Name</option> ! <option value="name">Name</option> ! <option value="desc">Description</option> ! </select> ! ! <br />that contains: <input type="text" name="search" maxlength="20"> ! <br><br> ! ! <input type="submit" value="Submit"> ! <input type="reset" value="Reset"> ! ! </span> ! {PAFILEDB_SEARCH_HIDDEN} ! </form> <!-- END switch_search --> <!-- BEGIN switch_search_results --> ! <!-- ! <table width="100%" height="99%" cellpadding="2" cellspacing="0"> ! <tr> ! <th class="thHead" align="left" > {L_TITLE} </th> </tr> - </table> - --> - <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> - <tr> - <td><span class="maintitle">Search found {L_NRESULTS} matches</span><br /></td> - </tr> - <tr> - <td><span class="nav"> <a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td> - </tr> </table> ! <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> ! <tr> ! <th class="thTop" align="left" nowrap="nowrap" width="20%">{L_TCATEGORY}</th> ! <th class="thTop" align="left" nowrap="nowrap">{L_TTITLE}</th> ! <th class="thTop" nowrap="nowrap" width="12%">{L_TSUBMITER}</th> ! <th class="thTop" nowrap="nowrap" width="20%">{L_TSUBMITED}</th> ! </tr> ! ! <!-- BEGIN search_results --> ! <tr> ! <td class="row1" align="left"><span class="gensmall"><a href="{switch_search_results.search_results.U_CAT}">{switch_search_results.search_results.L_CAT}</a></span></td> ! <td class="row1" align="left"><span class="gensmall"><a href="{switch_search_results.search_results.U_PIC}">{switch_search_results.search_results.L_PIC}</a></span></td> ! <td class="row1"><span class="gensmall"><a href="{switch_search_results.search_results.U_PROFILE}"><center>{switch_search_results.search_results.L_USERNAME}</center></a></span></td> ! <td class="row1"><span class="gensmall"><center>{switch_search_results.search_results.L_TIME}</center></span></td> ! </tr> ! <!-- END search_results --> ! ! <tr> ! <td class="cat" colspan="4" height="28" valign="middle"> </td> ! </tr> </table> ! <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> ! <tr> ! <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td> ! </tr> </table> <!-- END switch_search_results --> ! --- 1,70 ---- <!-- BEGIN switch_search --> ! <form name="search" action="{U_ALBUM_SEARCH}"> ! <span class="gensmall"> ! {L_SEARCH}: ! <select name="mode"> ! <option value="user">{L_USERNAME}</option> ! <option value="name">{L_PIC_NAME}</option> ! <option value="desc">{L_DESCRIPTION}</option> ! </select> ! {L_SEARCH_CONTENTS} ! <input type="text" name="search" maxlength="20"> ! ! <input class="liteoption" type="submit" value="{L_GO}"> ! </span> ! </form> <!-- END switch_search --> <!-- BEGIN switch_search_results --> ! <table width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> ! <tr> ! <td><span class="maintitle">{L_SEARCH_MATCHES} {L_NRESULTS} / {L_TRESULTS}</span><br /></td> ! </tr> ! <tr> ! <td class="nav" width="100%"> ! <span class="nav"> ! <a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_SEP} ! <a class="nav" href="{U_ALBUM}">{L_ALBUM_INDEX}</a> ! </span> ! </td> </tr> </table> ! <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2"> ! <tr> ! <th class="thTop" nowrap="nowrap" width="5%"> </th> ! <th class="thTop" nowrap="nowrap" width="25%">{L_TCATEGORY}</th> ! <th class="thTop" nowrap="nowrap" width="32%">{L_TTITLE}</th> ! <th class="thTop" nowrap="nowrap" width="18%">{L_TSUBMITER}</th> ! <th class="thTop" nowrap="nowrap" width="20%">{L_TSUBMITED}</th> ! </tr> ! ! <!-- BEGIN search_results --> ! <tr> ! <td class="row1" align="center" valign="middle"> ! <!-- <img src="{IMG_FOLDER}" /> --> ! <div class="picshadow"><div class="picframe"> ! <a href="{switch_search_results.search_results.U_PIC}" class="genmed"><img src="{switch_search_results.search_results.THUMBNAIL}" {THUMB_SIZE} alt="{switch_search_results.search_results.DESC}" border="0" {switch_search_results.search_results.PIC_PREVIEW} /></a> ! </div></div> ! </td> ! <td class="row1"><a href="{switch_search_results.search_results.U_CAT}" class="genmed"><b>{switch_search_results.search_results.L_CAT}</b></a></td> ! <td class="row1"><a href="{switch_search_results.search_results.U_PIC}" class="genmed">{switch_search_results.search_results.L_PIC}</a></td> ! <td class="row1" align="center"><a href="{switch_search_results.search_results.U_PROFILE}" class="genmed"><b>{switch_search_results.search_results.L_USERNAME}</b></a></td> ! <td class="row1" align="center"><span class="gensmall">{switch_search_results.search_results.L_TIME}</span></td> ! </tr> ! <!-- END search_results --> ! ! <tr><td class="catBottom" colspan="7" height="28" valign="middle"> </td></tr> </table> ! <table width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> ! <tr> ! <td><span class="nav">{PAGE_NUMBER}<br />{PAGINATION}</span></td> ! <td align="right"><span class="nav">{S_TIMEZONE}</span></td> ! </tr> </table> <!-- END switch_search_results --> ! <br /> ! <!-- You must keep my copyright notice visible with its original content --> ! {ALBUM_COPYRIGHT} \ No newline at end of file --- NEW FILE: album_pic_nuffed_body.tpl --- <table width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> <tr> <td> <span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_SEP} <a class="nav" href="{U_ALBUM}">{L_ALBUM}</a> {NAV_CAT_DESC} </span> </td> <td align="right"> </td> </tr> </table> <a name="TopPic"></a> <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2"> <tr><th class="thTop" width="100%" height="25">{NEXT_PIC} {PIC_TITLE} {PREV_PIC}</th></tr> <tr> <td class="row1" width="100%" align="center"> {U_PIC_L1}<img src="{U_PIC}" border="0" vspace="10" alt="{PIC_TITLE}" title="{PIC_TITLE}" />{U_PIC_L2}<br /> <span class="genmed">{U_PIC_CLICK}</span> <!-- BEGIN disable_pic_nuffed --> <br /> <span class="genmed"><a href="{disable_pic_nuffed.U_PIC_UNNUFFED_CLICK}" class="genmed">{disable_pic_nuffed.L_PIC_UNNUFFED_CLICK}</a></span><br /> <!-- END disable_pic_nuffed --> </td> </tr> <tr> <td class="row2" width="100%"> <table width="100%" align="center" border="0" cellspacing="1" cellpadding="2"> <tr> <td width="50%" align="right" valign="top"><span class="genmed">{L_POSTER}:</span></td> <td width="50%" align="left" valign="top"><span class="genmed"><b>{POSTER}</b></span></td> </tr> <tr> <td valign="top" align="right"><span class="genmed">{L_PIC_TITLE}:</span></td> <td valign="top" align="left"><b><span class="genmed">{PIC_TITLE}</span></b></td> </tr> <tr> <td valign="top" align="right"><span class="genmed">{L_PIC_DETAILS}:</span></td> <td valign="top" align="left"><b><span class="genmed">{L_PIC_ID}: {PIC_ID} - {L_PIC_TYPE}: {PIC_TYPE} - {L_PIC_SIZE}: {PIC_SIZE}</span></b></td> </tr> <!-- BEGIN bbcode_switch --> <tr> <td valign="top" align="right"><span class="genmed">{L_PIC_BBCODE}:</span></td> <td valign="top" align="left"><b><span class="genmed"><input name="BBCode" size="50" maxlength="100" value="{PIC_BBCODE}" type="text" readonly="1" onClick="javascript:this.form.BBCode.focus();this.form.BBCode.select();" /></span></b></td> </tr> <!-- END bbcode_switch --> <tr> <td valign="top" align="right"><span class="genmed">{L_POSTED}:</span></td> <td valign="top" align="left"><b><span class="genmed">{PIC_TIME}</span></b></td> </tr> <tr> <td valign="top" align="right"><span class="genmed">{L_VIEW}:</span></td> <td valign="top" align="left"><b><span class="genmed">{PIC_VIEW}</span></b></td> </tr> <tr> <td valign="top" align="right"><span class="genmed">{L_PIC_DESC}:</span></td> <td valign="top" align="left"><b><span class="genmed">{PIC_DESC}</span></b></td> </tr> </table> </td> </tr> </table> {NUFFIMAGE_BOX} <!-- BEGIN pics_nav --> <br /> <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2"> <tr><th class="thTop" nowrap="nowrap" width="100%" colspan="5">{pics_nav.L_PICS_NAV}</th></tr> <tr> <!-- BEGIN next --> <td class="row1" width="20%" align="center"> <a href="{pics_nav.next.U_PICS_LINK}"><img src="{pics_nav.next.U_PICS_THUMB}" {THUMB_SIZE} border="0" alt="{pics_nav.L_PICS_NAV_NEXT}" title="{pics_nav.L_PICS_NAV_NEXT}" vspace="10" /></a> </td> <!-- END next --> <td class="row1" width="20%" align="center"> <img src="{U_PIC_THUMB}" {THUMB_SIZE} border="5px" alt="{PIC_TITLE}" title="{PIC_TITLE}" vspace="10" style="color: #FF8866" /> </td> <!-- BEGIN prev --> <td class="row1" width="20%" align="center"> <a href="{pics_nav.prev.U_PICS_LINK}"><img src="{pics_nav.prev.U_PICS_THUMB}" {THUMB_SIZE} border="0" alt="{pics_nav.L_PICS_NAV_PREV}" title="{pics_nav.L_PICS_NAV_PREV}" vspace="10" /></a> </td> <!-- END prev --> </tr> </table> <br /> <!-- END pics_nav --> <!-- You must keep my copyright notice visible with its original content --> {ALBUM_COPYRIGHT} Index: album_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/album_cat_body.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** album_cat_body.tpl 5 Apr 2006 21:40:23 -0000 1.5 --- album_cat_body.tpl 7 Jun 2007 20:13:40 -0000 1.6 *************** *** 1,69 **** <!-- ! <table width="100%" height="99%" cellpadding="2" cellspacing="0"> ! <tr> ! <th class="thHead" align="left" > {L_TITLE} </th> ! </tr> ! </table> --> ! <table width="100%" cellspacing="2" cellpadding="2" border="0"> ! <tr> ! <td><a class="maintitle" href="{U_VIEW_CAT}">{CAT_TITLE}</a><br /> ! <span class="gensmall"><b>{L_MODERATORS}: {MODERATORS}</b></span> ! <!-- Album Category Hierarchy : begin --> ! <!-- BEGIN personal_gallery_header --> ! <br><span class="genmed">{L_PERSONAL_GALLERY_EXPLAIN}</span> ! <!-- END personal_gallery_header --> ! <!-- Album Category Hierarchy : end --> ! </td> ! ! ! <td align="right"> ! <form name="search" action="{PAFILEDB_SEARCH_ACTION}"> ! <span class="gensmall">Search for: <select name="mode"> ! <option value="user">User Name</option> ! <option value="name">Name</option> ! <option value="desc">Description</option> </select> ! <br />that contains: <input type="text" name="search" maxlength="20"> <input type="submit" value="Go"></span> {PAFILEDB_SEARCH_HIDDEN} </form> ! </td> ! </tr> ! </table> ! ! <table width="100%" cellspacing="2" cellpadding="2" border="0"> ! <tr> ! <td><a href="{U_UPLOAD_PIC}"><img src="{UPLOAD_PIC_IMG}" border="0" alt="{L_UPLOAD_PIC}" title="{L_UPLOAD_PIC}" /></a></td> ! <td class="nav" width="100%"><span class="nav"> <a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td> ! </tr> </table> - <!-- Album Category Hierarchy : begin --> - {ALBUM_BOARD_INDEX} - <!-- Album Category Hierarchy : end --> ! <table width="100%" cellspacing="2" border="0" cellpadding="2"> ! <!-- ! <tr> ! <td align="left"><span class="nav">{PAGE_NUMBER}</span> </td> ! <td align="right"><span class="nav">{PAGINATION}</span> </td> ! </tr> ! --> ! <!-- BEGIN lettering --> ! <tr> ! <td class="row5" align="center" colspan="2"><span class="gen">{lettering.L_SELECT_INITIAL}</span> <span class="genmed">{lettering.INITIALS}</span></td> ! </tr> ! <!-- END lettering --> </table> ! ! <!-- BEGIN index_pics_block --> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thTop" height="25" align="center" colspan="{S_COLS}" nowrap="nowrap">{L_CATEGORY} ! <!-- BEGIN enable_gallery_title --> ! :: {CAT_TITLE} ! <!-- END enable_gallery_title --></th> </tr> <!-- BEGIN no_pics --> --- 1,70 ---- + <style type="text/css"> <!-- ! .shadow {color:#00aa00; filter: DropShadow(Color=#660000, OffX=3, OffY=3, Positive=1)} ! img.shadow {color:#00aa00; filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=3, OffY=3, Color='gray', Positive='true')} --> + </style> ! <table width="100%" align="center" cellspacing="1" cellpadding="2" border="0"> ! <tr> ! <td> ! <a class="maintitle" href="{U_VIEW_CAT}">{CAT_TITLE}</a><br /> ! <span class="gensmall">{CAT_DESC} </span><br /><br /> ! <span class="gensmall">{L_MODERATORS}: {MODERATORS}</span> ! <!-- BEGIN personal_gallery_header --> ! <br /> ! <span class="genmed">{L_PERSONAL_GALLERY_EXPLAIN}</span> ! <!-- END personal_gallery_header --> ! <br /><br /> ! <span class="nav">{PAGE_NUMBER}<br />{PAGINATION}</span> ! </td> ! <td align="right"> ! <form action="{PAFILEDB_SEARCH_ACTION}"> ! <span class="gensmall">{L_SEARCH} <select name="mode"> ! <option value="user">{L_USERNAME}</option> ! <option value="name">{L_PIC_NAME}</option> ! <option value="desc">{L_DESCRIPTION}</option> </select> ! <br />{L_SEARCH_CONTENTS} <input type="text" name="search" maxlength="20"> <input type="submit" value="{L_GO}"></span> {PAFILEDB_SEARCH_HIDDEN} </form> ! </td> ! </tr> </table> ! <table width="100%" align="center" cellspacing="1" cellpadding="2" border="0"> ! <tr> ! <td class="nav" align="left"> ! <!-- BEGIN manage_personal_gal_folders --> ! <a href="{U_MANAGE_PIC}"><img src="{MANAGE_PIC_IMG}" border="0" alt="{L_MANAGE_PIC}" title="{L_MANAGE_PIC}" align="middle" /></a> ! <!-- END manage_personal_gal_folders --> ! <!-- BEGIN enable_view_toggle --> ! <a href="{U_TOGGLE_VIEW_ALL}"><img src="{TOGGLE_VIEW_ALL_IMG}" border="0" alt="{L_TOGGLE_VIEW_ALL}" title="{L_TOGGLE_VIEW_ALL}" align="middle" /></a> ! <!-- END enable_view_toggle --> ! <!-- BEGIN enable_picture_upload --> ! {UPLOAD_FULL_LINK} {JUPLOAD_FULL_LINK} ! <!-- END enable_picture_upload --> ! <!-- BEGIN enable_picture_upload_pg --> ! {UPLOAD_FULL_LINK} {JUPLOAD_FULL_LINK} ! <!-- END enable_picture_upload_pg --> ! <!-- BEGIN enable_picture_download --> ! {DOWNLOAD_FULL_LINK} <!-- {DOWNLOAD_ALL_FULL_LINK} --> ! <!-- END enable_picture_download --> ! <!-- BEGIN enable_picture_download_pg --> ! {DOWNLOAD_FULL_LINK} <!-- {DOWNLOAD_ALL_FULL_LINK} --> ! <!-- END enable_picture_download_pg --> ! <br /> ! <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_ALBUM}">{L_ALBUM_INDEX}</a> <!-- {NAV_SEP} -- a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a --> ! {NAV_CAT_DESC} </span> ! </td> ! <td class="nav" align="right" valign="bottom"><span class="gensmall"><b>{SLIDESHOW} </b></span></td> ! </tr> </table> ! {ALBUM_BOARD_INDEX} <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thTop" height="25" align="center" colspan="{S_COLS}" nowrap="nowrap">{L_CATEGORY} :: {CAT_TITLE}</th> </tr> <!-- BEGIN no_pics --> *************** *** 75,92 **** <tr> <!-- BEGIN piccol --> ! <td align="center" width="{S_COL_WIDTH}" class="row1" ><span class="genmed"><a href="{index_pics_block.picrow.piccol.U_PIC}"><img class="shadow" src="{index_pics_block.picrow.piccol.THUMBNAIL}" border="0" alt="{index_pics_block.picrow.piccol.DESC}" title="{index_pics_block.picrow.piccol.DESC}" vspace="10" /></a><br /><i>{index_pics_block.picrow.piccol.TITLE}</i> ({index_pics_block.picrow.piccol.POSTER})</span> <br /><span class="gensmall">{L_VIEW}: {index_pics_block.picrow.piccol.VIEW}<br />{index_pics_block.picrow.piccol.APPROVAL}<br /></span></td> <!-- END piccol --> </tr> <tr> <!-- BEGIN pic_detail --> ! <td class="row2" align="left"><span class="gensmall"> ! <!-- BEGIN cats --> ! {L_PIC_CAT}: <a href="{index_pics_block.picrow.pic_detail.cats.U_PIC_CAT}" {TARGET_BLANK}>{index_pics_block.picrow.pic_detail.cats.CATEGORY}</a><br /> ! <!-- END cats --> ! {L_POSTED}: {index_pics_block.picrow.pic_detail.TIME}<br /> ! {index_pics_block.picrow.pic_detail.RATING} ! {index_pics_block.picrow.pic_detail.COMMENTS} ! {index_pics_block.picrow.pic_detail.IP} ! <b>{index_pics_block.picrow.pic_detail.EDIT} {index_pics_block.picrow.pic_detail.DELETE} {index_pics_block.picrow.pic_detail.LOCK} {index_pics_block.picrow.pic_detail.MOVE}</b></span> </td> <!-- END pic_detail --> --- 76,91 ---- <tr> <!-- BEGIN piccol --> ! <td align="center" width="{S_COL_WIDTH}" class="row1"><span class="genmed"><a href="{picrow.piccol.U_PIC}" {TARGET_BLANK}><img class="shadow" src="{picrow.piccol.THUMBNAIL}" border="0" alt="{picrow.piccol.DESC}" title="{picrow.piccol.DESC}" vspace="10" /></a><br /><i>{picrow.piccol.TITLE}</i> {picrow.piccol.APPROVAL}</span></td> <!-- END piccol --> </tr> <tr> <!-- BEGIN pic_detail --> ! <td class="row2"><span class="gensmall"> ! {L_POSTER}: {picrow.pic_detail.POSTER}<br /> ! {L_POSTED}: {picrow.pic_detail.TIME}<br /> ! {L_VIEW}: {picrow.pic_detail.VIEW}, {picrow.pic_detail.COMMENTS} ! {picrow.pic_detail.RATING} ! {picrow.pic_detail.IP} ! {picrow.pic_detail.EDIT} {picrow.pic_detail.DELETE} {picrow.pic_detail.LOCK} {picrow.pic_detail.MOVE}</span> </td> <!-- END pic_detail --> *************** *** 94,98 **** <!-- END picrow --> <tr> ! <td class="cat" colspan="{S_COLS}" align="center" height="28"> <form action="{S_ALBUM_ACTION}" method="post"> <span class="gensmall">{L_SELECT_SORT_METHOD}: --- 93,97 ---- <!-- END picrow --> <tr> ! <td class="catBottom" colspan="{S_COLS}" align="center" height="28"> <form action="{S_ALBUM_ACTION}" method="post"> <span class="gensmall">{L_SELECT_SORT_METHOD}: *************** *** 100,106 **** <option {SORT_TIME} value='pic_time'>{L_TIME}</option> <option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option> ! {SORT_USERNAME_OPTION} <option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option> ! {SORT_RATING_OPTION} {SORT_COMMENTS_OPTION} {SORT_NEW_COMMENT_OPTION} --- 99,107 ---- <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> ! ! ! {SORT_RATING_OPTION} {SORT_COMMENTS_OPTION} {SORT_NEW_COMMENT_OPTION} *************** *** 115,175 **** </tr> </table> - <!-- END index_pics_block --> - <table width="100%" cellspacing="2" border="0" cellpadding="2"> - <tr> - <td align="left"><span class="nav">{PAGE_NUMBER}</span> </td> - <td align="right"><span class="nav">{PAGINATION}</span> </td> - </tr> - </table> ! <table width="100%" cellspacing="2" border="0" cellpadding="2"> ! <!-- Album Category Hierarchy : begin --> ! <tr> ! <!-- BEGIN enable_picture_upload --> ! <td><a href="{U_UPLOAD_PIC}"><img src="{UPLOAD_PIC_IMG}" border="0" alt="{L_UPLOAD_PIC}" title="{L_UPLOAD_PIC}" /></a></td> ! <!-- END enable_picture_upload --> ! <!-- BEGIN enable_view_toggle --> ! <td><a href="{U_TOGGLE_VIEW_ALL}"><img src="{TOGGLE_VIEW_ALL_IMG}" border="0" alt="{L_TOGGLE_VIEW_ALL}" title="{L_TOGGLE_VIEW_ALL}" /></a></td> ! <!-- END enable_view_toggle --> ! <td class="nav" width="100%"><span class="nav"> <a href="{U_ALBUM}" class="nav">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td> ! </tr> ! </table> ! ! <!-- BEGIN recent_pics_block --> ! <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> ! <tr> ! <th class="thTop" height="25" colspan="{S_COLS}" nowrap="nowrap">{L_RECENT_PUBLIC_PICS}</th> ! </tr> ! <!-- BEGIN no_pics --> ! <tr> ! <td class="row1" align="center" colspan="{S_COLS}" height="50"><span class="gen">{L_NO_PICS}</span></td> ! </tr> ! <!-- END no_pics --> ! <!-- BEGIN recent_pics --> ! <tr> ! <!-- BEGIN recent_col --> ! <td class="row1" width="{S_COL_WIDTH}" align="center" ><a href="{recent_pics_block.recent_pics.recent_col.U_PIC}" {TARGET_BLANK}><img src="{recent_pics_block.recent_pics.recent_col.THUMBNAIL}" border="0" alt="{recent_pics_block.recent_pics.recent_col.DESC}" title="{recent_pics_block.recent_pics.recent_col.DESC}" vspace="10" /></a><br /><span class="genmed"><i>{recent_pics_block.recent_pics.recent_col.TITLE}</i> ({recent_pics_block.recent_pics.recent_col.POSTER})</span> <br /><span class="gensmall">{L_VIEW}: {recent_pics_block.recent_pics.recent_col.VIEW}</span></td> ! <!-- END recent_col --> ! </tr> ! <tr> ! <!-- BEGIN recent_detail --> ! <td class="row2"><span class="gensmall"> ! {L_POSTED}: {recent_pics_block.recent_pics.recent_detail.TIME}<br /> ! {recent_pics_block.recent_pics.recent_detail.RATING}{recent_pics_block.recent_pics.recent_detail.COMMENTS}{recent_pics_block.recent_pics.recent_detail.IP}</span> ! </td> ! <!-- END recent_detail --> ! </tr> ! <!-- END recent_pics --> </table> - <p /> - <!-- END recent_pics_block --> </form> <table width="100%" cellspacing="0" border="0" cellpadding="0"> ! <tr> ! <td align="right" class="gensmall" nowrap="nowrap" colspan="{S_COLS}">{ALBUM_JUMPBOX}</td> ! </tr> ! <tr> ! <td align="right" class="gensmall" colspan="{S_COLS}">{S_AUTH_LIST}</td> ! </tr> ! </table> \ No newline at end of file --- 116,159 ---- </tr> </table> ! <table width="98%" align="center" cellspacing="1" cellpadding="2" border="0"> ! <tr> ! <td class="nav" width="100%"> ! <span class="nav"> ! <!-- BEGIN manage_personal_gal_folders --> ! <a href="{U_MANAGE_PIC}"><img src="{MANAGE_PIC_IMG}" border="0" alt="{L_MANAGE_PIC}" title="{L_MANAGE_PIC}" align="middle" /></a> ! <!-- END manage_personal_gal_folders --> ! <!-- BEGIN enable_view_toggle --> ! <a href="{U_TOGGLE_VIEW_ALL}"><img src="{TOGGLE_VIEW_ALL_IMG}" border="0" alt="{L_TOGGLE_VIEW_ALL}" title="{L_TOGGLE_VIEW_ALL}" align="middle" /></a> ! <!-- END enable_view_toggle --> ! <!-- BEGIN enable_picture_upload --> ! {UPLOAD_FULL_LINK} {JUPLOAD_FULL_LINK} ! <!-- END enable_picture_upload --> ! <!-- BEGIN enable_picture_upload_pg --> ! {UPLOAD_FULL_LINK} {JUPLOAD_FULL_LINK} ! <!-- END enable_picture_upload_pg --> ! <!-- BEGIN enable_picture_download --> ! {DOWNLOAD_FULL_LINK} ! <!-- END enable_picture_download --> ! <!-- BEGIN enable_picture_download_pg --> ! {DOWNLOAD_FULL_LINK} ! <!-- END enable_picture_download_pg --> ! <br /> ! <a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a class="nav" href="{U_ALBUM}">{L_ALBUM_INDEX}</a> <!-- {NAV_SEP} -- a class="nav" href="{U_VIEW_CAT}">{CAT_TITLE}</a --> ! {NAV_CAT_DESC} ! </span> ! </td> ! <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGE_NUMBER}<br />{PAGINATION}</span></td> ! </tr> ! <tr><td colspan="2"></td></tr> </table> </form> <table width="100%" cellspacing="0" border="0" cellpadding="0"> ! <tr><td align="right" class="gensmall" nowrap="nowrap"> </td></tr> ! <tr><td align="right" class="gensmall"><br />{S_TIMEZONE}<br />{S_AUTH_LIST}</td></tr> ! </table> ! <br /> ! ! <!-- You must keep my copyright notice visible with its original content --> ! {ALBUM_COPYRIGHT} \ No newline at end of file Index: subSilver.cfg =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/subSilver.cfg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** subSilver.cfg 5 Apr 2006 21:40:23 -0000 1.1 --- subSilver.cfg 7 Jun 2007 20:13:46 -0000 1.2 *************** *** 1,3 **** --- 1,12 ---- <?php + /** + * + * @package mxBB Portal Module - mx_smartor + * @version $Id$ + * @copyright (c) 2002-2006 mxBB Development Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ + // // ** Configuration file for subSilver template ** *************** *** 7,19 **** // ** www.subBlue.com ** // ! // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id$ // // Please note that to enable support of different languages ! // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If ! // that language isn't available it will default to english. ! // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // --- 16,28 ---- // ** www.subBlue.com ** // ! // *** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id$ // // Please note that to enable support of different languages ! // the ". LANG ." place holder is available. This will be replaced // with xxx where xxx is the users selected language. If ! // that language isn't available it will default to english. ! // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // *************** *** 22,56 **** // Do not alter this line! // ! define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- ! $current_template_images = PORTAL_URL . $current_template_path . "/images"; ! // ------------------------------------------------------------------------- ! // Define images ! // ------------------------------------------------------------------------- ! $mx_images['upload_pic'] = "$current_template_images/{LANG}/upload_pic.gif"; ! $mx_images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! $mx_images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $mx_images['all_pic_view_mode'] = "$current_template_images/{LANG}/simple_view.gif"; ! $mx_images['normal_pic_view_mode'] = "$current_template_images/{LANG}/normal_view.gif"; ! $mx_images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! $mx_images['show_all_pics'] = "$current_template_images/{LANG}/show_all_pics.gif"; ! $mx_images['show_all_ratings'] = "$current_template_images/{LANG}/show_all_ratings.gif"; ! $mx_images['show_all_comments'] = "$current_template_images/{LANG}/show_all_comments.gif"; // ------------------------------------------------------------------------- ! // Redefine phpBB images // ------------------------------------------------------------------------- ! $mx_images['smartor_icon_profile'] = $images['icon_profile']; ! $mx_images['smartor_icon_pm'] = $images['icon_pm']; ! $mx_images['smartor_icon_aim'] = $images['icon_aim']; ! $mx_images['smartor_icon_yim'] = $images['icon_yim']; ! $mx_images['smartor_icon_msnm'] = $images['icon_msnm']; ! $mx_images['smartor_icon_icq'] = $images['icon_icq']; ! $mx_images['smartor_icon_email'] = $images['icon_email']; ! $mx_images['smartor_icon_www'] = $images['icon_www']; ?> \ No newline at end of file --- 31,138 ---- // Do not alter this line! // ! if( !defined('MX_TEMPLATE_CONFIG')) ! { ! define(MX_TEMPLATE_CONFIG, TRUE); ! } ! $mx_template_config = true; + $mx_template_name = 'subSilver'; + // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- ! // ! if ( empty($current_template_path) ) ! { ! $current_template_path = "templates/". $mx_template_name; ! } ! ! $mx_template_images = PORTAL_URL . $current_template_path . "/images"; ! $current_smartor_images = $module_root_path . "templates/". $mx_template_name ."/images"; ! $current_template_phpbb_images = PHPBB_URL . "templates/". $mx_template_name ."/images"; // phpBB graphics template ! ! ! if ( !file_exists( $current_smartor_images . '/lang_' . $board_config['default_lang'] ) ) ! { ! $link_language='lang_english'; ! } ! else ! { ! $link_language='lang_' . $board_config['default_lang']; ! } ! ! ! if( !defined('LANG')) ! { ! define('LANG', $link_language); ! } // ------------------------------------------------------------------------- ! // (Re)Define images // ------------------------------------------------------------------------- ! ! // Rss Feed Site Images - BEGIN ! $mx_images['logo_url'] = "$mx_template_images/logo.gif"; ! ! // Mighty Gorgon - Full Album Pack - BEGIN ! $mx_images['icon_left_arrow3'] = "$current_smartor_images/icon_left_arrow3.gif"; ! $mx_images['icon_right_arrow3'] = "$current_smartor_images/icon_right_arrow3.gif"; ! $mx_images['no_thumbnail'] = "$current_smartor_images/nothumbnail.jpg"; ! $mx_images['spacer'] = "$current_smartor_images/spacer.gif"; ! $mx_images['mini_new_pictures'] = "$current_template_phpbb_images/icon_minipost_new.gif"; ! $mx_images['mini_all_pic_view_mode'] = "$current_smartor_images/icon_mini_showall.gif"; ! $mx_images['icon_album'] = "$current_smartor_images/" . LANG . "/icon_album.gif"; ! $mx_images['manage_pic'] = "$current_smartor_images/" . LANG . "/manage_pic.gif"; ! $mx_images['upload_pic'] = "$current_smartor_images/" . LANG . "/upload_pic.gif"; ! $mx_images['jupload_pic']= "$current_smartor_images/" . LANG . "/jupload_pic.gif"; ! $mx_images['download_pic'] = "$current_smartor_images/" . LANG . "/download.gif"; ! $mx_images['download_all_pic'] = "$current_smartor_images/" . LANG . "/download_all.gif"; ! $mx_images['all_pic_view_mode'] = "$current_smartor_images/" . LANG . "/simple_view.gif"; ! $mx_images['normal_pic_view_mode'] = "$current_smartor_images/" . LANG . "/normal_view.gif"; ! $mx_images['show_all_pics'] = "$current_smartor_images/" . LANG . "/show_all_pics.gif"; ! $mx_images['show_all_ratings'] = "$current_smartor_images/" . LANG . "/show_all_ratings.gif"; ! $mx_images['show_all_comments'] = "$current_smartor_images/" . LANG . "/show_all_comments.gif"; ! $mx_images['orange_dot'] = "$current_smartor_images/orange_dot.png"; ! $mx_images['blue_dot'] = "$current_smartor_images/blue_dot.png"; ! $mx_images['green_dot'] = "$current_smartor_images/green_dot.png"; ! $mx_images['yellow_dot'] = "$current_smartor_images/yellow_dot.png"; ! ! // Use standard phpBB graphics ! // ! $mx_images['icon_quote'] = "$current_template_phpbb_images/" . LANG . "/icon_quote.gif"; ! $mx_images['icon_edit'] = "$current_template_phpbb_images/" . LANG . "/icon_edit.gif"; ! $mx_images['icon_search'] = "$current_template_phpbb_images/" . LANG . "/icon_search.gif"; ! $mx_images['icon_profile'] = "$current_template_phpbb_images/" . LANG . "/icon_profile.gif"; ! $mx_images['icon_pm'] = "$current_template_phpbb_images/" . LANG . "/icon_pm.gif"; ! $mx_images['icon_email'] = "$current_template_phpbb_images/" . LANG . "/icon_email.gif"; ! $mx_images['icon_delpost'] = "$current_template_phpbb_images/icon_delete.gif"; ! $mx_images['icon_ip'] = "$current_template_phpbb_images/" . LANG . "/icon_ip.gif"; ! $mx_images['icon_www'] = "$current_template_phpbb_images/" . LANG . "/icon_www.gif"; ! $mx_images['icon_icq'] = "$current_template_phpbb_images/" . LANG . "/icon_icq_add.gif"; ! $mx_images['icon_aim'] = "$current_template_phpbb_images/" . LANG . "/icon_aim.gif"; ! $mx_images['icon_yim'] = "$current_template_phpbb_images/" . LANG . "/icon_yim.gif"; ! $mx_images['icon_msnm'] = "$current_template_phpbb_images/" . LANG . "/icon_msnm.gif"; ! $mx_images['icon_minipost'] = "$current_template_phpbb_images/icon_minipost.gif"; ! $mx_images['icon_gotopost'] = "$current_template_phpbb_images/icon_minipost.gif"; ! $mx_images['icon_minipost_new'] = "$current_template_phpbb_images/icon_minipost_new.gif"; ! $mx_images['icon_latest_reply'] = "$current_template_phpbb_images/icon_latest_reply.gif"; ! $mx_images['icon_newest_reply'] = "$current_template_phpbb_images/icon_newest_reply.gif"; ! ! $mx_images['forum'] = "$current_template_phpbb_images/folder_big.gif"; ! $mx_images['forum_new'] = "$current_template_phpbb_images/folder_new_big.gif"; ! $mx_images['forum_locked'] = "$current_template_phpbb_images/folder_locked_big.gif"; ! ! $mx_images['folder'] = "$current_template_phpbb_images/folder.gif"; ! $mx_images['folder_new'] = "$current_template_phpbb_images/folder_new.gif"; ! $mx_images['folder_hot'] = "$current_template_phpbb_images/folder_hot.gif"; ! $mx_images['folder_hot_new'] = "$current_template_phpbb_images/folder_new_hot.gif"; ! $mx_images['folder_locked'] = "$current_template_phpbb_images/folder_lock.gif"; ! $mx_images['folder_locked_new'] = "$current_template_phpbb_images/folder_lock_new.gif"; ! $mx_images['folder_sticky'] = "$current_template_phpbb_images/folder_sticky.gif"; ! $mx_images['folder_sticky_new'] = "$current_template_phpbb_images/folder_sticky_new.gif"; ! $mx_images['folder_announce'] = "$current_template_phpbb_images/folder_announce.gif"; ! $mx_images['folder_announce_new'] = "$current_template_phpbb_images/folder_announce_new.gif"; ! ?> \ No newline at end of file Index: album_posting_smilies.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/album_posting_smilies.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** album_posting_smilies.tpl 4 Jan 2004 23:42:56 -0000 1.1 --- album_posting_smilies.tpl 7 Jun 2007 20:13:44 -0000 1.2 *************** *** 1,44 **** <script language="javascript" type="text/javascript"> <!-- ! function emoticon(text) { text = ' ' + text + ' '; ! if (opener.document.commentform.comment.createTextRange && opener.document.commentform.comment.caretPos) { ! var caretPos = opener.document.commentform.comment.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; ! opener.document.commentform.comment.focus(); ! } else { ! opener.document.commentform.comment.value += text; ! opener.document.commentform.comment.focus(); } } //--> </script> ! <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline"> <tr> ! <th class="thHead" height="25">{L_EMOTICONS}</th> ! </tr> ! <tr> ! <td><table width="100" border="0" cellspacing="0" cellpadding="5"> ! <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> ! <!-- BEGIN smilies_col --> ! <td><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" onmouseover="this.style.cursor='hand';" onclick="emoticon('{smilies_row.smilies_col.SMILEY_CODE}');javascript:window.close();" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> ! <!-- END smilies_col --> ! </tr> ! <!-- END smilies_row --> ! <!-- BEGIN switch_smilies_extra --> ! <tr align="center"> ! <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_SMILIES}</a></td> ! </tr> ! <!-- END switch_smilies_extra --> ! </table></td> ! </tr> ! <tr> ! <td align="center"><br /><span class="genmed"><a href="javascript:window.close();" class="genmed">{L_CLOSE_WINDOW}</a></span></td> </tr> </table></td> </tr> ! </table> --- 1,69 ---- <script language="javascript" type="text/javascript"> <!-- ! function emoticon(text) ! { ! var txtarea = opener.document.commentform.comment; text = ' ' + text + ' '; ! if (txtarea.createTextRange && txtarea.caretPos) ! { ! var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; ! txtarea.focus(); ! } ! else if (txtarea.selectionEnd && (txtarea.selectionStart | txtarea.selectionStart == 0)) ! { ! mozInsert(txtarea, text, ""); ! } ! else ! { ! txtarea.value += text; ! txtarea.focus(); } } + + function mozInsert(txtarea, openTag, closeTag) + { + if (txtarea.selectionEnd > txtarea.value.length) + { + txtarea.selectionEnd = txtarea.value.length; + } + + var startPos = txtarea.selectionStart; + var endPos = txtarea.selectionEnd+openTag.length; + + txtarea.value=txtarea.value.slice(0,startPos)+openTag+txtarea.value.slice(startPos); + txtarea.value=txtarea.value.slice(0,endPos)+closeTag+txtarea.value.slice(endPos); + + txtarea.selectionStart = startPos+openTag.length; + txtarea.selectionEnd = endPos; + txtarea.focus(); + } //--> </script> ! <table width="98%" align="center" border="0" cellspacing="0" cellpadding="10"> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline"> + <tr><th class="thHead" height="25">{L_EMOTICONS}</th></tr> <tr> ! <td> ! <table width="100" border="0" cellspacing="0" cellpadding="5"> ! <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> ! <!-- BEGIN smilies_col --> ! <td><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" onmouseover="this.style.cursor='hand';" onclick="emoticon('{smilies_row.smilies_col.SMILEY_CODE}');javascript:window.close();" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></td> ! <!-- END smilies_col --> ! </tr> ! <!-- END smilies_row --> ! <!-- BEGIN switch_smilies_extra --> ! <tr align="center"> ! <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_SMILIES}</a></td> ! </tr> ! <!-- END switch_smilies_extra --> ! </table> ! </td> </tr> + <tr><td align="center"><br /><span class="genmed"><a href="javascript:window.close();" class="genmed">{L_CLOSE_WINDOW}</a></span></td></tr> </table></td> </tr> ! </table> \ No newline at end of file Index: album_modcp_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/album_modcp_body.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** album_modcp_body.tpl 5 Apr 2006 21:40:23 -0000 1.4 --- album_modcp_body.tpl 7 Jun 2007 20:13:42 -0000 1.5 *************** *** 1,40 **** - <script language="JavaScript" type="text/javascript"> - <!-- - //--- Album Category Hierarchy : begin - //--- version : 1.2.0 - // tested with IE4+ and FireFox 0.8+ - function checkBox(field) - { - checkBoxes = field.form["pic_id[]"]; - checkButton = field.form["checkButton"]; - - for (i = 0; i < checkBoxes.length; i++) - { - checkBoxes[i].checked = (checkButton.value == "{L_CHECK_ALL}") ? true : false; - } - return (checkButton.value == "{L_CHECK_ALL}") ? "{L_UNCHECK_ALL}" : "{L_CHECK_ALL}"; - } - - function checkBoxInverse(field) - { - checkBoxes = field.form["pic_id[]"]; - - for (i = 0; i < checkBoxes.length; i++) - { - checkBoxes[i].checked = (checkBoxes[i].checked) ? false : true; - } - } - //--- Album Category Hierarchy : begin - // --> - </script> - <form name="modcp" action="{S_ALBUM_ACTION}" method="post"> - <!-- - <table width="100%" height="99%" cellpadding="2" cellspacing="0"> - <tr> - <th class="thHead" align="left" > {L_TITLE} </th> - </tr> - </table> - --> <table width="100%" cellspacing="2" cellpadding="2" border="0"> <tr> --- 1,3 ---- *************** *** 43,47 **** </tr> <tr> ! <td class="nav"><span class="nav"> <a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC}</span></td> <td align="right" nowrap="nowrap"> <span class="gensmall">{L_SELECT_SORT_METHOD}: --- 6,10 ---- </tr> <tr> ! <td class="nav"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_ALBUM}">{L_ALBUM}</a></span></td> <td align="right" nowrap="nowrap"> <span class="gensmall">{L_SELECT_SORT_METHOD}: *************** *** 49,53 **** <option {SORT_TIME} value='pic_time'>{L_TIME}</option> <option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option> ! {SORT_USERNAME_OPTION} <option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option> {SORT_RATING_OPTION} --- 12,16 ---- <option {SORT_TIME} value='pic_time'>{L_TIME}</option> <option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option> ! <option {SORT_USERNAME} value='pic_user_id'>{L_USERNAME}</option> <option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option> {SORT_RATING_OPTION} *************** *** 93,97 **** <!-- END picrow --> <tr> ! <td class="cat" colspan="6" align="right" height="28"> <input type="hidden" name="mode" value="modcp" /> <input type="submit" class="liteoption" name="move" value="{L_MOVE}" /> --- 56,60 ---- <!-- END picrow --> <tr> ! <td class="catbottom" colspan="6" align="right" height="28"> <input type="hidden" name="mode" value="modcp" /> <input type="submit" class="liteoption" name="move" value="{L_MOVE}" /> *************** *** 101,107 **** {APPROVAL_BUTTON} {UNAPPROVAL_BUTTON} - - <input type="button" class="liteoption" name="checkButton" value="{L_CHECK_ALL}" onClick="this.value=checkBox(this)"> - <input type="button" class="liteoption" name="inverseButton" value="{L_INVERSE_SELECTION}" onClick="checkBoxInverse(this)"> </td> </tr> --- 64,67 ---- *************** *** 119,120 **** --- 79,87 ---- </form> + <br /> + + <!-- + You must keep my copyright notice visible with its original content + --> + <div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">Powered by Photo Album Addon {ALBUM_VERSION} © 2002-2003 <a href="http://smartor.is-root.com" target="_blank">Smartor</a><br /> {ALBUM_VERSION_INFO}</div> + <br /> \ No newline at end of file --- NEW FILE: album_slideshow_body.tpl --- <!-- BEGIN switch_slideshow --> {U_SLIDESHOW_REFRESH} <!-- END switch_slideshow --> <!-- BEGIN switch_slideshow_scripts --> <style type="text/css" media="screen, projection"> img { filter:alpha(opacity=100); border:none; } /* duplicate image positioning */ img.idupe { position:absolute; z-index:30000; visibility:hidden; } </style> <script language="JavaScript" type="text/javascript"> // (C) 2000 www.CodeLifter.com - http://www.codelifter.com // Free for all users, but leave in this header // Modified by Mighty Gorgon // Version: 1.0.0 // Date: 2006/01/12 // Usage // <img name="SlideShow" src="album_mod/upload/img_001.jpg" alt="Picture Des" /> // <a href="javascript:runSlideShow()">SLIDESHOW</a> // ***************************************************** // SlideShow Transiction FX //****************************************************** // ***************************************************** // DOM scripting by brothercake - http://www.brothercake.com/ //****************************************************** // ***************************************************** // Edited by Mighty Gorgon - http://www.mightygorgon.com/ //****************************************************** // Usage // <img id="SlideShow" src="album_mod/upload/img_001.jpg" alt="Picture Des" /> // <!-- define crossfade (image-object, 'new src', 'seconds'[, 'new alt text']) --> // <a href="javascript:crossfade(document.getElementById('SlideShowPic'), 'album_mod/upload/img_001.jpg', '2', 'Picture Des')">NEXT</a> // <!-- define swapfade (image-object, 'new src', 'seconds'[, 'new alt text']) --> // <a href="javascript:swapfade(document.getElementById('SlideShowPic'), 'album_mod/upload/img_001.jpg', '2', 'Picture Des')">NEXT</a> // <!-- define crosswipe (image-object, 'new src', 'seconds', 'direction'[, 'new alt text']) --> // <a href="javascript:crosswipe(document.getElementById('SlideShowPic'), 'album_mod/upload/img_001.jpg', '2', 'Picture Des', 'lr')">NEXT</a> //global object var ssfx = { 'clock' : null, 'fade' : true, 'count' : 1 } // SlideShow Speed (seconds) var slideShowSpeed = {SLIDESHOW_DEL... [truncated message content] |
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/album_mod Modified Files: album_common.php album_constants.php album_functions.php album_hierarchy_auth.php album_hierarchy_debug.php album_hierarchy_functions.php album_hierarchy_sql.php clown_album_functions.php index.html rank.gif Added Files: album_acp_functions.php album_bbcode.php album_exif_info.php album_image_class.php album_integration.php album_nuffimage_box.php archive.php fap_alpha.png fap_blur.png fap_bw.png fap_flip.png fap_infrared.png fap_interlace.png fap_loader.js fap_mirror.png fap_normal.png fap_pixelate.png fap_recompress.png fap_resize.png fap_rotate.png fap_scatter.png fap_screen.png fap_sepia.png fap_stereogram.png fap_tint.png fap_watermark.png mark_fap.png moo.ajax.js moo.fx.js moo.fx.pack.js mooshow.1.04.js nothumbnail.jpg prototype.lite.js rating_star.png rating_star_red.png spacer.gif Log Message: --- NEW FILE: album_bbcode.php --- <?php // CTracker_Ignore: File Checked By Human // Tell the Security Scanner that reachable code in this file is not a security issue define('BBCODE_UID_LEN', 10); define('BBCODE_NOSMILIES_START', '<!-- no smilies start -->'); define('BBCODE_NOSMILIES_END', '<!-- no smilies end -->'); global $board_config, $mx_root_path, $phpEx, $lang; $urls_local = array( 'http://www.' . $board_config['server_name'] . $board_config['script_path'], 'http://' . $board_config['server_name'] . $board_config['script_path'] ); define('AUTOURL', time()); class BBCode { [...3702 lines suppressed...] $binstring = strrev(implode('', $data_array)); $bit_integer = bindec($binstring); return $bit_integer; } /** * Will convert a stored integer into an array of binary values * * @param integer $data_integer Encoded integer * @return integer Array of binary values */ function binary_int_to_array($data_integer) { if (($data_integer > 2147483647) OR ($data_integer < 0)) return FALSE; $binstring = strrev(str_pad(decbin ($data_integer),31,"0",STR_PAD_LEFT)); $bitarray = explode(":",chunk_split($binstring, 1, ":")); return $bitarray; } ?> --- NEW FILE: fap_flip.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: fap_infrared.png --- (This appears to be a binary file; contents omitted.) Index: rank.gif =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/rank.gif,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsfooVDW and /tmp/cvsyr2aaz differ Index: album_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_functions.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** album_functions.php 30 Jun 2006 21:10:55 -0000 1.6 --- album_functions.php 7 Jun 2007 20:13:11 -0000 1.7 *************** *** 4,16 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @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 * */ - // +------------------------------------------------------+ - // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | - // +------------------------------------------------------+ [...1310 lines suppressed...] + } + 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 | + // +------------------------------------------------------+ + + ?> \ No newline at end of file --- NEW FILE: fap_rotate.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: prototype.lite.js --- /* Prototype JavaScript framework * (c) 2005 Sam Stephenson <sa...@co...> * Prototype is freely distributable under the terms of an MIT-style license. * For details, see the Prototype web site: http://prototype.conio.net/ /*--------------------------------------------------------------------------*/ //note: modified & stripped down version of prototype, to be used with moo.fx by mad4milk (http://moofx.mad4milk.net). var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } Object.extend = function(destination, source) { for (property in source) destination[property] = source[property]; return destination; } Function.prototype.bind = function(object) { var __method = this; return function() { return __method.apply(object, arguments); } } Function.prototype.bindAsEventListener = function(object) { var __method = this; return function(event) { __method.call(object, event || window.event); } } function $() { if (arguments.length == 1) { return get$(arguments[0]); } var elements = []; $c(arguments).each(function(el) { elements.push(get$(el)); }); return elements; function get$(el) { if (typeof el == 'string') { el = document.getElementById(el); } return el; } } if (!window.Element) var Element = new Object(); Object.extend(Element, { remove: function(element) { element = $(element); element.parentNode.removeChild(element); }, hasClassName: function(element, className) { element = $(element); if (!element) { return; } var hasClass = false; element.className.split(' ').each(function(cn) { if (cn == className) { hasClass = true; } }); return hasClass; }, addClassName: function(element, className) { element = $(element); Element.removeClassName(element, className); element.className += ' ' + className; }, removeClassName: function(element, className) { element = $(element); if (!element) { return; } var newClassName = ''; element.className.split(' ').each(function(cn, i) { if (cn != className) { if (i > 0) { newClassName += ' '; } newClassName += cn; } }); element.className = newClassName; }, cleanWhitespace: function(element) { element = $(element); $c(element.childNodes).each(function(node) { if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) { Element.remove(node); } }); }, find: function(element, what) { element = $(element)[what]; while (element.nodeType != 1) element = element[what]; return element; } }); var Position = { cumulativeOffset: function(element) { var valueT = 0, valueL = 0; do { valueT += element.offsetTop || 0; valueL += element.offsetLeft || 0; element = element.offsetParent; } while (element); return [valueL, valueT]; } }; document.getElementsByClassName = function(className) { var children = document.getElementsByTagName('*') || document.all; var elements = []; $c(children).each(function(child) { if (Element.hasClassName(child, className)) { elements.push(child); } }); return elements; } //useful array functions Array.prototype.each = function(func) { for(var i = 0; ob = this[i]; i++) { func(ob, i); } } function $c(array) { var nArray = []; for (i = 0; el = array[i]; i++) { nArray.push(el); } return nArray; } // other functions added from prototype function times(iterator) { $R(0, this, true).each(iterator); return this; } --- NEW FILE: fap_tint.png --- (This appears to be a binary file; contents omitted.) Index: clown_album_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/clown_album_functions.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** clown_album_functions.php 30 Jun 2006 21:10:55 -0000 1.7 --- clown_album_functions.php 7 Jun 2007 20:13:16 -0000 1.8 *************** *** 4,111 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @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 * */ ! if ( !defined( 'IN_PORTAL' ) ) { ! die( "Hacking attempt" ); } ! function ImageRating( $rating, $css_style = 'border-style: none' ) { ! // Pre: returns what type of rating style to display ! global $db, $album_sp_config, $lang, $module_root_path; ! // deside how user wants to show their rating ! if ( $album_sp_config['rate_type'] == 0 ) // display only images { ! if ( !$rating ) ! { ! return $lang['Not_rated']; ! } else { $r = ""; ! for ( $temp = 1; $temp <= $rating; $temp++ ) { ! $r .= "<img src='" . $module_root_path . "album_mod/rank.gif' style='$css_style'/> "; } ! return ( $r ); } ! } ! else if ( $album_sp_config['rate_type'] == 1 ) // display just text { ! if ( !$rating ) ! { ! return $lang['Not_rated']; ! } else ! { ! return ( round( $rating, 2 ) ); ! } } ! else // display both images and text { ! if ( !$rating ) ! { ! return $lang['Not_rated']; ! } else { $r = ""; ! for ( $temp = 1; $temp <= $rating; $temp++ ) { ! $r .= "<img src='" . $module_root_path . "album_mod/rank.gif' style='$css_style'/> "; } } ! ! return ( round( $rating, 2 ) . ' ' . $r ); } } ! ! // to have smilies window popup ! function smartor_generate_smilies( $mode, $page_id ) { global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $mx_root_path; global $user_ip, $session_length, $starttime; global $userdata; global $is_block; ! $inline_columns = $board_config['smilie_columns']; $inline_rows = $board_config['smilie_rows']; $window_columns = $board_config['smilie_window_columns']; ! ! 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++; --- 4,108 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [bla...@ya..., Volodymyr (CLowN) Skoryk] mxBB Project 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) */ ! if ( !defined('IN_PORTAL') ) { ! die("Hacking attempt"); } ! function ImageRating($rating) { ! //Pre: returns what type of rating style to display ! global $db, $album_sp_config, $module_root_path; ! ! //deside how user wants to show their rating ! // ! if ($album_sp_config['rate_type'] == 0)//display only images { ! if (!$rating) ! return("<i>Not Rated</i>"); else { $r = ""; ! for ($temp = 1; $temp <= $rating; $temp++) { ! $r .= "<img src='".$module_root_path."album_mod/rank.gif' /> "; } ! ! return ($r); } ! } ! else if ($album_sp_config['rate_type'] == 1) //display just text { ! if (!$rating) ! return("<i>Not Rated</i>"); else ! return (round($rating, 2)); } ! else //display both images and text { ! if (!$rating) ! return("<i>Not Rated</i>"); else { $r = ""; ! for ($temp = 1; $temp <= $rating; $temp++) { ! $r .= "<img src='".$module_root_path."album_mod/rank.gif' /> "; } } ! ! return (round($rating, 2) . ' ' . $r); } } ! //to have smilies window popup ! function smartor_generate_smilies($mode, $page_id) { global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $mx_root_path; global $user_ip, $session_length, $starttime; global $userdata; + // MX global $is_block; ! $inline_columns = $board_config['smilie_columns']; $inline_rows = $board_config['smilie_rows']; $window_columns = $board_config['smilie_window_columns']; ! ! if ($mode == 'window') { ! $mx_user->init($user_ip, PAGE_INDEX); ! $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++; *************** *** 113,120 **** } ! if ( $num_smilies ) { ! $smilies_count = ( $mode == 'inline' ) ? min( ( ( $inline_columns * $inline_rows ) - 1 ), $num_smilies ) : $num_smilies; ! $smilies_split_row = ( $mode == 'inline' ) ? $inline_columns - 1 : $window_columns - 1; $s_colspan = 0; --- 110,117 ---- } ! if ($num_smilies) { ! $smilies_count = ( $mode == 'inline' ) ? min( (($inline_columns * $inline_rows) - 1), $num_smilies) : $num_smilies; ! $smilies_split_row = ($mode == 'inline') ? $inline_columns - 1 : $window_columns - 1; $s_colspan = 0; *************** *** 122,143 **** $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' => $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; --- 119,140 ---- $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' => $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; *************** *** 152,213 **** } ! 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' => 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 ); - } } } ! function CanRated ( $picID, $userID ) { ! // PRE: deside if user can rate things on hot or not global $db, $album_sp_config, $userdata; ! ! if ( ! $userdata['session_logged_in'] && $album_sp_config['hon_rate_users'] == 1 ) { $alowed = true; } ! else if ( $userdata['session_logged_in'] && $album_sp_config['hon_rate_times'] == 0 ) { $sql = "SELECT * ! FROM " . ALBUM_RATE_TABLE . " ! WHERE rate_pic_id = $picID ! AND rate_user_id = $userID ! LIMIT 1"; ! ! if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not query rating information', '', __LINE__, __FILE__, $sql ); } ! if ( $db->sql_numrows( $result ) > 0 ) { ! $alowed = false; } else { ! $alowed = true; } } --- 149,211 ---- } ! 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' => append_sid("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); ! } } } ! function CanRated ($picID, $userID) { ! //PRE: deside if user can rate things on hot or not global $db, $album_sp_config, $userdata; ! ! if (! $userdata['session_logged_in'] && $album_sp_config['hon_rate_users'] == 1) { $alowed = true; } ! else if ($userdata['session_logged_in'] && $album_sp_config['hon_rate_times'] == 0) { $sql = "SELECT * ! FROM ". ALBUM_RATE_TABLE ." ! WHERE rate_pic_id = $picID ! AND rate_user_id = $userID ! LIMIT 1"; ! ! if( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not query rating information', '', __LINE__, __FILE__, $sql); } ! if ($db->sql_numrows($result) > 0) { ! $alowed = false; } else { ! $alowed = true; } } *************** *** 216,221 **** $alowed = true; } ! ! return ( $alowed ); } ?> \ No newline at end of file --- 214,220 ---- $alowed = true; } ! ! return ($alowed); } + ?> \ No newline at end of file --- NEW FILE: fap_mirror.png --- (This appears to be a binary file; contents omitted.) Index: album_hierarchy_sql.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_hierarchy_sql.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** album_hierarchy_sql.php 30 Jun 2006 21:10:55 -0000 1.5 --- album_hierarchy_sql.php 7 Jun 2007 20:13:16 -0000 1.6 *************** *** 1,32 **** <?php ! /** ! * ! * @package mxBB Portal Module - mx_smartor ! * @version $Id$ ! * @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 ! * ! */ ! [...3491 lines suppressed...] ! 'PIC_PREVIEW' => $pic_preview, ! 'DESC' => $commentsrow[$i]['pic_desc'], ! 'COMMENT_TEXT' => $commentsrow[$i]['comment_text'], ! 'PIC_ID' => $commentsrow[$i]['pic_id'], ! 'TITLE' => '<a href = "' . 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="'. 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="' . 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 />' : '' ! ) ! ); ! } } } + + ?> \ No newline at end of file --- NEW FILE: rating_star_red.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: moo.ajax.js --- //based on prototype's ajax class //to be used with prototype.lite, moofx.mad4milk.net. ajax = Class.create(); ajax.prototype = { initialize: function(url, options) { this.transport = this.getTransport(); this.postBody = options.postBody || ''; this.method = options.method || 'post'; this.onComplete = options.onComplete || null; this.update = $(options.update) || null; this.request(url); }, request: function(url) { this.transport.open(this.method, url, true); this.transport.onreadystatechange = this.onStateChange.bind(this); if (this.method == 'post') { this.transport.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); if (this.transport.overrideMimeType) { this.transport.setRequestHeader('Connection', 'close'); } } this.transport.send(this.postBody); }, onStateChange: function() { if (this.transport.readyState == 4 && this.transport.status == 200) { if (this.onComplete) { setTimeout(function(){this.onComplete(this.transport);}.bind(this), 10); } if (this.update) { setTimeout(function(){this.update.innerHTML = this.transport.responseText;}.bind(this), 10); } this.transport.onreadystatechange = function(){}; } }, getTransport: function() { if (window.ActiveXObject) { return new ActiveXObject('Microsoft.XMLHTTP'); } else if { (window.XMLHttpRequest) return new XMLHttpRequest(); } else { return false; } } }; --- NEW FILE: mark_fap.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: moo.fx.pack.js --- /* moo.fx pack, effects extensions for moo.fx. by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE for more info visit (http://moofx.mad4milk.net). Tuesday, March 07, 2006 v 1.2.3 */ //smooth scroll fx.Scroll = Class.create(); fx.Scroll.prototype = Object.extend(new fx.Base(), { initialize: function(options) { this.setOptions(options); }, scrollTo: function(el) { var dest = Position.cumulativeOffset($(el))[1]; var client = window.innerHeight || document.documentElement.clientHeight; var full = document.documentElement.scrollHeight; var top = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; if (dest+client > full) { this.custom(top, dest - client + (full-dest)); } else { this.custom(top, dest); } }, increase: function() { window.scrollTo(0, this.now); } }); //text size modify, now works with pixels too. fx.Text = Class.create(); fx.Text.prototype = Object.extend(new fx.Base(), { initialize: function(el, options) { this.el = $(el); this.setOptions(options); if (!this.options.unit) { this.options.unit = "em"; } }, increase: function() { this.el.style.fontSize = this.now + this.options.unit; } }); //composition effect: widht/height/opacity fx.Combo = Class.create(); fx.Combo.prototype = { setOptions: function(options) { this.options = { opacity: true, height: true, width: false } Object.extend(this.options, options || {}); }, initialize: function(el, options) { this.el = $(el); this.setOptions(options); if (this.options.opacity) { this.o = new fx.Opacity(el, options); options.onComplete = null; } if (this.options.height) { this.h = new fx.Height(el, options); options.onComplete = null; } if (this.options.width) { this.w = new fx.Width(el, options); } }, toggle: function() { this.checkExec('toggle'); }, hide: function(){ this.checkExec('hide'); }, clearTimer: function(){ this.checkExec('clearTimer'); }, checkExec: function(func) { if (this.o) this.o[func](); if (this.h) this.h[func](); if (this.w) this.w[func](); }, //only if width+height resizeTo: function(hto, wto) { if (this.h && this.w) { this.h.custom(this.el.offsetHeight, this.el.offsetHeight + hto); this.w.custom(this.el.offsetWidth, this.el.offsetWidth + wto); } }, customSize: function(hto, wto) { if (this.h && this.w) { this.h.custom(this.el.offsetHeight, hto); this.w.custom(this.el.offsetWidth, wto); } } } fx.Accordion = Class.create(); fx.Accordion.prototype = { setOptions: function(options) { this.options = { delay: 100, opacity: false } Object.extend(this.options, options || {}); }, initialize: function(togglers, elements, options) { this.elements = elements; this.setOptions(options); elements.each(function(el, i) { options.onComplete = function() { if (el.offsetHeight > 0) { el.style.height = '1%'; } } el.fx = new fx.Combo(el, options); el.fx.hide(); }); togglers.each(function(tog, i) { if(tog.onclick!=null) { var togAction = tog.onclick; } tog.onclick = function() { this.showThisHideOpen(elements[i],togAction); } .bind(this); } .bind(this)); }, showThisHideOpen: function(toShow,togAction) { if (toShow.offsetHeight == 0) { setTimeout(function(){this.clearAndToggle(toShow); togAction();}.bind(this), this.options.delay); } this.elements.each(function(el, i) { if (el.offsetHeight > 0 && el != toShow) { this.clearAndToggle(el); } } .bind(this)); }, clearAndToggle: function(el) { el.fx.clearTimer(); el.fx.toggle(); } } var Remember = new Object(); Remember = function(){}; Remember.prototype = { initialize: function(el, options) { this.el = $(el); this.days = 365; this.options = options; this.effect(); var cookie = this.readCookie(); if (cookie) { this.fx.now = cookie; this.fx.increase(); } }, //cookie functions based on code by Peter-Paul Koch setCookie: function(value) { var date = new Date(); date.setTime(date.getTime() + (this.days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); document.cookie = this.el + this.el.id + this.prefix + "=" + value + expires + "; path=/"; }, readCookie: function() { var nameEQ = this.el + this.el.id + this.prefix + "="; var ca = document.cookie.split(';'); for(var i=0;c=ca[i];i++) { while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) { return c.substring(nameEQ.length,c.length); } } return false; }, custom: function(from, to) { if (this.fx.now != to) { this.setCookie(to); this.fx.custom(from, to); } } } fx.RememberHeight = Class.create(); fx.RememberHeight.prototype = Object.extend(new Remember(), { effect: function() { this.fx = new fx.Height(this.el, this.options); this.prefix = 'height'; }, toggle: function() { if (this.el.offsetHeight == 0) { this.setCookie(this.el.scrollHeight); } else { this.setCookie(0); } this.fx.toggle(); }, resize: function(to) { this.setCookie(this.el.offsetHeight+to); this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+to); }, hide: function() { if (!this.readCookie()) { this.fx.hide(); } } }); fx.RememberText = Class.create(); fx.RememberText.prototype = Object.extend(new Remember(), { effect: function() { this.fx = new fx.Text(this.el, this.options); this.prefix = 'text'; } }); //useful for-replacement Array.prototype.each = function(func) { for(var i=0;ob=this[i];i++) func(ob, i); } //Easing Equations (c) 2003 Robert Penner, all rights reserved. //This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html. //expo fx.expoIn = function(pos) { return Math.pow(2, 10 * (pos - 1)); } fx.expoOut = function(pos) { return (-Math.pow(2, -10 * pos) + 1); } //quad fx.quadIn = function(pos) { return Math.pow(pos, 2); } fx.quadOut = function(pos) { return -(pos)*(pos-2); } //circ fx.circOut = function(pos) { return Math.sqrt(1 - Math.pow(pos-1,2)); } fx.circIn = function(pos) { return -(Math.sqrt(1 - Math.pow(pos, 2)) - 1); } //back fx.backIn = function(pos) { return (pos)*pos*((2.7)*pos - 1.7); } fx.backOut = function(pos) { return ((pos-1)*(pos-1)*((2.7)*(pos-1) + 1.7) + 1); } //sine fx.sineOut = function(pos) { return Math.sin(pos * (Math.PI/2)); } fx.sineIn = function(pos) { return -Math.cos(pos * (Math.PI/2)) + 1; } fx.sineInOut = function(pos) { return -(Math.cos(Math.PI*pos) - 1)/2; } --- NEW FILE: fap_watermark.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mooshow.1.04.js --- // mooShow 1.04 // (c)2006 Stuart Eaton - http://www.eatpixels.com // // Credit where credit is due: Inspiration from Lightbox (http://www.huddletogether.com/projects/lightbox2/) // and Couloir (http://www.couloir.org/js_slideshow/) and of course moo.fx (http://moofx.mad4milk.net/ // moo.fx and prototype are covered by their own respective license terms. // -------------------------------------------------------------------------------------------------------------- var loadingImage = "images/fap/fap_loading.gif"; // loading image // -------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------------------------- var mooShows = null; // ----------------------------------------------------------------------------------- function start() { // find any mooshows on the page find_mooshows(); } // ----------------------------------------------------------------------------------- function find_mooshows() { shows = document.getElementsByClassName("mooshow"); // find divs using the 'mooshow' class if(shows.length == 0) { shows = showsIE; // If can't find shows list get it from html page (hack for IE5.5) } mooShows = new Object(); for ( var i = 0; i < shows.length; i++ ) { showName = shows[i].id; // get shownames if(showName==null) { showName = shows[i]; // if we are getting show names from the html page (hack for IE5.5) } mooShows[ showName ] = new mooshow(showName); // create new mooshow objects create_mooshow(showName,i); // create the shows htmls } } // ----------------------------------------------------------------------------------- function create_mooshow( showName,shownumber ) { eval($(showName).innerHTML); //get slideshow settings photoArray = eval(showName); // set up image array based on id shownumber++; // add 1 to shownumber so it starts on 1 not 0 if(this.dropShadow=='yes') { this.outerContainerClass = 'mooshow_outerContainer dropShadowBorder'; } else { this.outerContainerClass = 'mooshow_outerContainer'; } var mooShow_html = '' + '<div id=\'' + showName + '_outerContainer\' class=\'' + this.outerContainerClass + '\' style=\'padding:' + this.border + 'px;\'> \n' + ' <div id=\'' + showName + '_topNav\' style=\'width:' + photoArray[0][1] + 'px;\' class=\'mooshow_topNav\'></div> \n' + ' <div id=\'' + showName + '_contentContainer\' class=\'mooshow_contentContainer\' > \n' + ' <img src=\'' + photoArray[0][0] + '\' class=\'mooshow_image\' width=\'' + photoArray[0][1] + '\' height=\'' + photoArray[0][2] + '\' id=\'' + showName + '_image\' /> \n' + ' <img src=\'' + loadingImage + '\' id=\'' + showName + '_loading\' class=\'mooshow_loading\' /> \n' + ' <div id=\'' + showName + '_copyright\' class=\'mooshow_copyright\'></div> \n' + ' <div id=\'' + showName + '_overlayNav\' class=\'mooshow_overlayNav\' style=\'height:' + photoArray[0][2] + 'px; width:' + photoArray[0][1] + 'px;\'> \n' + ' <a href=\'#' + shownumber + '\' id=\'' + showName + '_prevLink\' class=\'mooshow_prevLink\' onClick=\'mooShows['' + showName + ''].prevImage();\' ></a> \n' + ' <a href=\'#' + shownumber + '\' id=\'' + showName + '_nextLink\' class=\'mooshow_nextLink\' onClick=\'mooShows['' + showName + ''].nextImage();\' ></a> \n' + ' </div> \n' + ' <div id=\'' + showName + '_IPTC\' class=\'mooshow_IPTC\' style=\'width:' + photoArray[0][1] + 'px;\'></div> \n' + ' <a href=\'#' + shownumber + '\' ><img src=\'images/fap/fap_info.gif\' id=\'' + showName + '_IPTCbutton\' class=\'mooshow_IPTCbutton\' onClick=\'mooShows['' + showName + ''].updateIPTCinfoToggle();\' /></a> \n' + ' </div> \n' + ' <div id=\'' + showName + '_extras\' class=\'mooshow_extras\'> \n' + ' <div id=\'' + showName + '_captions\' class=\'mooshow_captions\' style=\'padding-top:' + this.border + 'px;padding-left:-' + this.border + 'px; width:' + photoArray[0][1] + 'px;\'>' + photoArray[0][7] + ' </div> \n' + ' <div id=\'' + showName + '_bottomNav\' class=\'mooshow_bottomNav\'></div> \n' + ' <div id=\'' + showName + '_temp\' class=\'mooshow_temp\'></div> \n' + ' </div> \n' + '</div> \n' + '<script></script>'; Element.setInnerHTML(showName, mooShow_html); // display or hide various options if(this.topNav == 'no') {Element.hide(showName+'_topNav');} else {mooShows[showName].updateTopNav(showName);} if(this.overlayNav == 'no') Element.hide(showName+'_overlayNav'); if(this.captions == 'no') Element.hide(showName+'_captions'); if(this.copyright == 'yes') Element.setInnerHTML(showName+'_copyright', photoArray[0][6]); if(this.IPTCinfo == 'no') Element.hide(showName+'_IPTCbutton'); Element.show(showName); } // ----------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------- var mooshow = Class.create(); mooshow.prototype = { // ----------------------------------------------------------------------------------- initialize: function(showName) { this.id = showName; this.busy = 0; this.counter = 0; this.photoArray = eval(this.id); this.numberOfImages = this.photoArray.length - 2; this.IPTCinfoStatus = 0; eval($(showName).innerHTML); //get slideshow settings (set inside the mooshow div) }, // ----------------------------------------------------------------------------------- nextImage: function() { if(this.busy<1) { this.busy=1; if(this.counter < this.numberOfImages) { this.counter ++; } else { this.counter = 0; } this.loadImage(); } }, // ----------------------------------------------------------------------------------- prevImage: function() { if(this.busy < 1) { this.busy = 1; if(this.counter > 0) { this.counter --; } else { this.counter = this.numberOfImages; } this.loadImage(); } }, // ----------------------------------------------------------------------------------- jumptoImage: function(counter) { if(this.busy<1) { this.busy=1; this.counter = counter-1; this.loadImage(); } }, // ----------------------------------------------------------------------------------- switchContent: function(newArray) { if(this.busy<1) { this.busy=1; this.photoArray = eval(newArray); this.numberOfImages = this.photoArray.length -2; this.counter = 0; this.loadImage(); } }, // ----------------------------------------------------------------------------------- updateIPTCinfo: function() { //get showname showName = this.id; // this.iptcHTML = '' + '<div class=\'mooshow_IPTC_left\'><br /><br />' + ' Image URL <br />' + ' Size <br />' + ' Dimensions <br />' + ' Title <br />' + ' Author <br />' + ' Copyright <br /><br />' + ' Description <br /><br />' + '</div>' + '<div class=\'mooshow_IPTC_right\'><br /><br />' + ' <a href=\'' + this.photoArray[this.counter][0] + '\'>' + this.photoArray[this.counter][0] + '</a><br />' + //img src ' ' + this.photoArray[this.counter][3] + '<br />' + // file size ' ' + this.photoArray[this.counter][1] + ' x ' + this.photoArray[this.counter][2] + ' pixels<br />' + // width * height ' ' + this.photoArray[this.counter][4] + '<br />' + //title ' ' + this.photoArray[this.counter][5] + '<br />' + // author ' ' + this.photoArray[this.counter][6] + '<br /><br />' + //copyright ' ' + this.photoArray[this.counter][7] + '<br /><br />' + // description '</div>'; Element.setInnerHTML(''+showName+'_IPTC', this.iptcHTML); }, // ----------------------------------------------------------------------------------- updateIPTCinfoToggle: function() { if(this.IPTCinfoStatus==1) { Element.hide(''+showName+'_IPTC'); this.IPTCinfoStatus=0; } else { Element.show(''+showName+'_IPTC'); this.IPTCinfoStatus=1; this.updateIPTCinfo(); } }, // ----------------------------------------------------------------------------------- updateTopNav: function(showName) { //Element.setWidth(showName+'_topNav', this.photoArray[this.counter][1]); Element.setInnerHTML(showName+'_topNav', ''); this.topNavContent = $(showName+'_topNav').innerHTML; this.topNavContent = (this.counter+1) + ' / ' + (this.photoArray.length-1) + ' <img src=\'images/fap/fap_blank.gif\' width=\'10\' height=\'1\' />'; for ( var i = 1; i < this.photoArray.length; i++ ) { if(i==this.counter+1) { this.topNavContent = this.topNavContent + i; } else { this.topNavContent = this.topNavContent + ' <a href=\'#' + i + '\' onClick=\'mooShows['' + showName + ''].jumptoImage(' + i + ');\'>' + i + '</a>'; } if(i<this.photoArray.length-1) { this.topNavContent = this.topNavContent + ' | '; } } document.getElementById(showName+'_topNav').innerHTML = this.topNavContent; }, // ----------------------------------------------------------------------------------- loadImage: function() { //get showname showName = this.id; // update top navigation if(this.topNav=='yes') { this.updateTopNav(showName); } // show laoding animation Element.show(showName + '_loading'); // hide IPTC info Element.hide(showName + '_IPTC'); Element.hide(showName + '_IPTCbutton'); // overlay navigation if(this.overlayNav == 'yes') { Element.hide(showName + '_overlayNav'); } // preload in new image newImgPreloader = new Image(); // if image is preloaded newImgPreloader.onload=function() { // when loaded // hide current photo Element.setSrc(showName + '_image','images/fap/fap_blank.gif'); Element.setOpacity(showName + '_image',0); // hide laoding animation Element.hide(showName + '_loading'); // set captions to blank space Element.setInnerHTML(showName + '_captions', ' '); // set copyright to blank Element.setInnerHTML(showName + '_copyright', ''); // get new sizes newHeight = newImgPreloader.height; newWidth = newImgPreloader.width; // resize containers to new size this.resizeTopNavWidth = new fx.Width(showName + '_topNav', {duration: mooShows[showName].speed}); this.resizeCaptionWidth = new fx.Width(showName + '_captions', {duration: mooShows[showName].speed}); this.resizeOuterContainerHeight = new fx.Height(showName + '_image', {duration: mooShows[showName].speed}); this.resizeOuterContainerWidth = new fx.Width(showName + '_image', {duration: mooShows[showName].speed, onComplete: function() { // set up next image Element.setSrc(showName + '_image',newImgPreloader.src); // reposition overlay nav Element.setHeight(showName + '_overlayNav',(newImgPreloader.height)); Element.setWidth(showName + '_overlayNav',(newImgPreloader.width)); //show captions if(mooShows[showName].captions=='yes') { Element.setInnerHTML(showName + '_captions', mooShows[showName].photoArray[mooShows[showName].counter][7] + ' '); } // copyright if(mooShows[showName].copyright == 'yes') { Element.setInnerHTML(showName + '_copyright', mooShows[showName].photoArray[mooShows[showName].counter][6]); } // new moo.fx 'fader' this.fader = new fx.Opacity(showName + '_image', {duration: mooShows[showName].fadeSpeed, onComplete:function() { mooShows[showName].busy = 0; // overlay navigation if(mooShows[showName].overlayNav == 'yes') { Element.show(showName + '_overlayNav'); } //IPTC panel height if(mooShows[showName].IPTCinfo == 'yes') { Element.show(showName + '_IPTCbutton'); } Element.setWidth(showName + '_IPTC', newImgPreloader.width); if(mooShows[showName].IPTCinfoStatus==1) { mooShows[showName].IPTCinfoStatus=0; mooShows[showName].updateIPTCinfoToggle(); } }}); // call fader fx this.fader.hide(); this.fader.toggle(); } }); // get current sizes oldHeight = Element.getHeight(showName + '_image'); oldWidth = Element.getWidth(showName + '_image'); // call moo.fx and when done switchImage() this.resizeTopNavWidth.custom(oldWidth,newWidth); this.resizeCaptionWidth.custom(oldWidth,newWidth); this.resizeOuterContainerHeight.custom(oldHeight,newHeight); this.resizeOuterContainerWidth.custom(oldWidth,newWidth); }; newImgPreloader.src = this.photoArray[this.counter][0]; // preloader src } // ----------------------------------------------------------------------------------- } // -------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------- // Additional methods for Element by SU, Couloir // - further additions by Lokesh Dhakar (huddletogether.com) // - and Stuart Eaton (eatpixels.com) Object.extend(Element, { getWidth: function(element) { element = $(element); return element.offsetWidth; }, getHeight: function(element) { element = $(element); return element.offsetHeight; }, setWidth: function(element,w) { element = $(element); element.style.width = w +"px"; }, setHeight: function(element,h) { element = $(element); element.style.height = h +"px"; }, setTop: function(element,t) { element = $(element); element.style.top = t +"px"; }, setSrc: function(element,src) { element = $(element); element.src = src; }, setAlt: function(element,alt) { element = $(element); element.alt = alt; }, setOpacity: function(element,opacity) { element = $(element); element.style.opacity = opacity; }, setHref: function(element,href) { element = $(element); element.href = href; }, setInnerHTML: function(element,content) { element = $(element); element.innerHTML = content; }, hide: function(element) { element = $(element); element.style.display = 'none'; }, show: function(element) { element = $(element); element.style.display = 'inline'; } }); // --------------------------------------------------- // addLoadEvent() // Adds event to window.onload without overwriting currently assigned onload functions. // Function found at Simon Willison's weblog - http://simon.incutio.com/ // function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } // --------------------------------------------------- function run() { start(); } addLoadEvent(run); // run initMooshow onLoad // -------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------------------------- --- NEW FILE: fap_bw.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: fap_screen.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: rating_star.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: archive.php --- <?php /*-------------------------------------------------- | TAR/GZIP/BZIP2/ZIP ARCHIVE CLASSES 2.0 | By Devin Doucette | Copyright (c) 2004 Devin Doucette | Email: dar...@sh... +-------------------------------------------------- | Email bugs/suggestions to dar...@sh... +-------------------------------------------------- | This script has been created and released under | the GNU GPL and is free to use and redistribute | only if this copyright statement is not removed +--------------------------------------------------*/ // CTracker_Ignore: File Checked By Human // Tell the Security Scanner that reachable code in this file is not a security issue if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } class archive { function archive($name) { $this->options = array( 'basedir'=>".", 'name'=>$name, 'prepend'=>"", 'inmemory'=>0, 'overwrite'=>0, 'recurse'=>1, 'storepaths'=>1, 'level'=>3, 'method'=>1, 'sfx'=>"", 'type'=>"", 'comment'=>"" ); $this->files = array(); $this->exclude = array(); $this->storeonly = array(); $this->error = array(); } function set_options($options) { foreach($options as $key => $value) { $this->options[$key] = $value; } if(!empty($this->options['basedir'])) { $this->options['basedir'] = str_replace("\\","/",$this->options['basedir']); $this->options['basedir'] = preg_replace("/\/+/","/",$this->options['basedir']); $this->options['basedir'] = preg_replace("/\/$/","",$this->options['basedir']); } if(!empty($this->options['name'])) { $this->options['name'] = str_replace("\\","/",$this->options['name']); $this->options['name'] = preg_replace("/\/+/","/",$this->options['name']); } if(!empty($this->options['prepend'])) { $this->options['prepend'] = str_replace("\\","/",$this->options['prepend']); $this->options['prepend'] = preg_replace("/^(\.*\/+)+/","",$this->options['prepend']); $this->options['prepend'] = preg_replace("/\/+/","/",$this->options['prepend']); $this->options['prepend'] = preg_replace("/\/$/","",$this->options['prepend']) . "/"; } } function create_archive() { $this->make_list(); if($this->options['inmemory'] == 0) { $pwd = getcwd(); chdir($this->options['basedir']); if($this->options['overwrite'] == 0 && file_exists($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip"? ".tmp" : ""))) { $this->error[] = "File {$this->options['name']} already exists."; chdir($pwd); return 0; } else if($this->archive = @fopen($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip"? ".tmp" : ""),"wb+")) { chdir($pwd); } else { $this->error[] = "Could not open {$this->options['name']} for writing."; chdir($pwd); return 0; } } else { $this->archive = ""; } switch($this->options['type']) { case "zip": if(!$this->create_zip()) { $this->error[] = "Could not create zip file."; return 0; } break; case "bzip": if(!$this->create_tar()) { $this->error[] = "Could not create tar file."; return 0; } if(!$this->create_bzip()) { $this->error[] = "Could not create bzip2 file."; return 0; } break; case "gzip": if(!$this->create_tar()) { $this->error[] = "Could not create tar file."; return 0; } if(!$this->create_gzip()) { $this->error[] = "Could not create gzip file."; return 0; } break; case "tar": if(!$this->create_tar()) { $this->error[] = "Could not create tar file."; return 0; } } if($this->options['inmemory'] == 0) { fclose($this->archive); if($this->options['type'] == "gzip" || $this->options['type'] == "bzip") { unlink($this->options['basedir'] . "/" . $this->options['name'] . ".tmp"); } } } function add_data($data) { if($this->options['inmemory'] == 0) { fwrite($this->archive,$data); } else { $this->archive .= $data; } } function make_list() { if(!empty($this->exclude)) { foreach($this->files as $key => $value) { foreach($this->exclude as $current) { if($value['name'] == $current['name']) { unset($this->files[$key]); } } } } if(!empty($this->storeonly)) { foreach($this->files as $key => $value) { foreach($this->storeonly as $current) { if($value['name'] == $current['name']) { $this->files[$key]['method'] = 0; } } } } unset($this->exclude,$this->storeonly); } function add_files($list) { $temp = $this->list_files($list); foreach($temp as $current) { $this->files[] = $current; } } function exclude_files($list) { $temp = $this->list_files($list); foreach($temp as $current) { $this->exclude[] = $current; } } function store_files($list) { $temp = $this->list_files($list); foreach($temp as $current) { $this->storeonly[] = $current; } } function list_files($list) { if(!is_array($list)) { $temp = $list; $list = array($temp); unset($temp); } $files = array(); $pwd = getcwd(); chdir($this->options['basedir']); foreach($list as $current) { $current = str_replace("\\","/",$current); $current = preg_replace("/\/+/","/",$current); $current = preg_replace("/\/$/","",$current); if(strstr($current,"*")) { $regex = preg_replace("/([\\\^\$\.\[\]\|\(\)\?\+\{\}\/])/","\\\\\\1",$current); $regex = str_replace("*",".*",$regex); $dir = strstr($current,"/")? substr($current,0,strrpos($current,"/")) : "."; $temp = $this->parse_dir($dir); foreach($temp as $current2) { if(preg_match("/^{$regex}$/i",$current2['name'])) { $files[] = $current2; } } unset($regex,$dir,$temp,$current); } else if(@is_dir($current)) { $temp = $this->parse_dir($current); foreach($temp as $file) { $files[] = $file; } unset($temp,$file); } else if(@file_exists($current)) { $files[] = array('name'=>$current,'name2'=>$this->options['prepend'] . preg_replace("/(\.+\/+)+/","",($this->options['storepaths'] == 0 && strstr($current,"/"))? substr($current,strrpos($current,"/") + 1) : $current),'type'=>0, 'ext'=>substr($current,strrpos($current,".")),'stat'=>stat($current)); } } chdir($pwd); unset($current,$pwd); usort($files,array("archive","sort_files")); return $files; } function parse_dir($dirname) { if($this->options['storepaths'] == 1 && !preg_match("/^(\.+\/*)+$/",$dirname)) { $files = array(array('name'=>$dirname,'name2'=>$this->options['prepend'] . preg_replace("/(\.+\/+)+/","",($this->options['storepaths'] == 0 && strstr($dirname,"/"))? substr($dirname,strrpos($dirname,"/") + 1) : $dirname),'type'=>5,'stat'=>stat($dirname))); } else { $files = array(); } $dir = @opendir($dirname); while($file = @readdir($dir)) { if($file == "." || $file == "..") { continue; } else if(@is_dir($dirname."/".$file)) { if(empty($this->options['recurse'])) { continue; } $temp = $this->parse_dir($dirname."/".$file); foreach($temp as $file2) { $files[] = $file2; } } else if(@file_exists($dirname."/".$file)) { $files[] = array('name'=>$dirname."/".$file,'name2'=>$this->options['prepend'] . preg_replace("/(\.+\/+)+/","",($this->options['storepaths'] == 0 && strstr($dirname."/".$file,"/"))? substr($dirname."/".$file,strrpos($dirname."/".$file,"/") + 1) : $dirname."/".$file),'type'=>0, 'ext'=>substr($file,strrpos($file,".")),'stat'=>stat($dirname."/".$file)); } } @closedir($dir); return $files; } function sort_files($a,$b) { if($a['type'] != $b['type']) { return $a['type'] > $b['type']? -1 : 1; } else if($a['type'] == 5) { return strcmp(strtolower($a['name']),strtolower($b['name'])); } else { if($a['ext'] != $b['ext']) { return strcmp($a['ext'],$b['ext']); } else if($a['stat'][7] != $b['stat'][7]) { return $a['stat'][7] > $b['stat'][7]? -1 : 1; } else { return strcmp(strtolower($a['name']),strtolower($b['name'])); } } return 0; } function download_file() { if($this->options['inmemory'] == 0) { $this->error[] = "Can only use download_file() if archive is in memory. Redirect to file otherwise, it is faster."; return; } switch($this->options['type']) { case "zip": header("Content-type:application/zip"); break; case "bzip": header("Content-type:application/x-compressed"); break; case "gzip": header("Content-type:application/x-compressed"); break; case "tar": header("Content-type:application/x-tar"); } $header = "Content-disposition: attachment; filename=\""; $header .= strstr($this->options['name'],"/")? substr($this->options['name'],strrpos($this->options['name'],"/") + 1) : $this->options['name']; $header .= "\""; header($header); header("Content-length: " . strlen($this->archive)); header("Content-transfer-encoding: binary"); header("Pragma: no-cache"); header("Expires: 0"); print($this->archive); } } class tar_file extends archive { function tar_file($name) { $this->archive($name); $this->options['type'] = "tar"; } function create_tar() { $pwd = getcwd(); chdir($this->options['basedir']); foreach($this->files as $current) { if($current['name'] == $this->options['name']) { continue; } if(strlen($current['name2']) > 99) { $path = substr($current['name2'],0,strpos($current['name2'],"/",strlen($current['name2']) - 100) + 1); $current['name2'] = substr($current['name2'],strlen($path)); if(strlen($path) > 154 || strlen($current['name2']) > 99) { $this->error[] = "Could not add {$path}{$current['name2']} to archive because the filename is too long."; continue; } } $block = pack("a100a8a8a8a12a12a8a1a100a6a2a32a32a8a8a155a12",$current['name2'],decoct($current['stat'][2]), sprintf("%6s ",decoct($current['stat'][4])),sprintf("%6s ",decoct($current['stat'][5])), sprintf("%11s ",decoct($current['stat'][7])),sprintf("%11s ",decoct($current['stat'][9])), " ",$current['type'],"","ustar","00","Unknown","Unknown","","",!empty($path)? $path : "",""); $checksum = 0; for($i = 0; $i < 512; $i++) { $checksum += ord(substr($block,$i,1)); } $checksum = pack("a8",sprintf("%6s ",decoct($checksum))); $block = substr_replace($block,$checksum,148,8); if($current['stat'][7] == 0) { $this->add_data($block); } else if($fp = @fopen($current['name'],"rb")) { $this->add_data($block); while($temp = fread($fp,1048576)) { $this->add_data($temp); } if($current['stat'][7] % 512 > 0) { $temp = ""; for($i = 0; $i < 512 - $current['stat'][7] % 512; $i++) { $temp .= "\0"; } $this->add_data($temp); } fclose($fp); } else { $this->error[] = "Could not open file {$current['name']} for reading. It was not added."; } } $this->add_data(pack("a512","")); chdir($pwd); return 1; } function extract_files() { $pwd = getcwd(); chdir($this->options['basedir']); if($fp = $this->open_archive()) { if($this->options['inmemory'] == 1) { $this->files = array(); } while($block = fread($fp,512)) { $temp = unpack("a100name/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100temp/a6magic/a2temp/a32temp/a32temp/a8temp/a8temp/a155prefix/a12temp",$block); $file = array( 'name'=>$temp['prefix'] . $temp['name'], 'stat'=>array( 2=>$temp['mode'], 4=>octdec($temp['uid']), 5=>octdec($temp['gid']), 7=>octdec($temp['size']), 9=>octdec($temp['mtime']), ), 'checksum'=>octdec($temp['checksum']), 'type'=>$temp['type'], 'magic'=>$temp['magic'], ); if($file['checksum'] == 0x00000000) { break; } else if($file['magic'] != "ustar") { $this->error[] = "This script does not support extracting this type of tar file."; break; } $block = substr_replace($block," ",148,8); $checksum = 0; for($i = 0; $i < 512; $i++) { $checksum += ord(substr($block,$i,1)); } if($file['checksum'] != $checksum) { $this->error[] = "Could not extract from {$this->options['name']}, it is corrupt."; } if($this->options['inmemory'] == 1) { $file['data'] = fread($fp,$file['stat'][7]); fread($fp,(512 - $file['stat'][7] % 512) == 512? 0 : (512 - $file['stat'][7] % 512)); unset($file['checksum'],$file['magic']); $this->files[] = $file; } else { if($file['type'] == 5) { if(!is_dir($file['name'])) { mkdir($file['name'],$file['stat'][2]); chown($file['name'],$file['stat'][4]); chgrp($file['name'],$file['stat'][5]); } } else if($this->options['overwrite'] == 0 && file_exists($file['name'])) { $this->error[] = "{$file['name']} already exists."; } else if($new = @fopen($file['name'],"wb")) { fwrite($new,fread($fp,$file['stat'][7])); fread($fp,(512 - $file['stat'][7] % 512) == 512? 0 : (512 - $file['stat'][7] % 512)); fclose($new); chmod($file['name'],$file['stat'][2]); chown($file['name'],$file['stat'][4]); chgrp($file['name'],$file['stat'][5]); } else { $this->error[] = "Could not open {$file['name']} for writing."; } } unset($file); } } else { $this->error[] = "Could not open file {$this->options['name']}"; } chdir($pwd); } function open_archive() { return @fopen($this->options['name'],"rb"); } } class gzip_file extends tar_file { function gzip_file($name) { $this->tar_file($name); $this->options['type'] = "gzip"; } function create_gzip() { if($this->options['inmemory'] == 0) { $pwd = getcwd(); chdir($this->options['basedir']); if($fp = gzopen($this->options['name'],"wb{$this->options['level']}")) { fseek($this->archive,0); while($temp = fread($this->archive,1048576)) { gzwrite($fp,$temp); } gzclose($fp); chdir($pwd); } else { $this->error[] = "Could not open {$this->options['name']} for writing."; chdir($pwd); return 0; } } else { $this->archive = gzencode($this->archive,$this->options['level']); } return 1; } function open_archive() { return @gzopen($this->options['name'],"rb"); } } class bzip_file extends tar_file { function bzip_file($name) { $this->tar_file($name); $this->options['type'] = "bzip"; } function create_bzip() { if($this->options['inmemory'] == 0) { $pwd = getcwd(); chdir($this->options['basedir']); if($fp = bzopen($this->options['name'],"wb")) { fseek($this->archive,0); while($temp = fread($this->archive,1048576)) { bzwrite($fp,$temp); } bzclose($fp); chdir($pwd); } else { $this->error[] = "Could not open {$this->options['name']} for writing."; chdir($pwd); return 0; } } else { $this->archive = bzcompress($this->archive,$this->options['level']); } return 1; } function open_archive() { return @bzopen($this->options['name'],"rb"); } } class zip_file extends archive { function zip_file($name) { $this->archive($name); $this->options['type'] = "zip"; } function create_zip() { $files = 0; $offset = 0; $central = ""; if(!empty($this->options['sfx'])) { if($fp = @fopen($this->options['sfx'],"rb")) { $temp = fread($fp,filesize($this->options['sfx'])); fclose($fp); $this->add_data($temp); $offset += strlen($temp); unset($temp); ... [truncated message content] |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:31
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/templates/subSilver/images Modified Files: nothumbnail.jpg Added Files: blue_dot.png green_dot.png icon_left_arrow.gif icon_left_arrow2.gif icon_left_arrow3.gif icon_mini_album_13x13.gif icon_right_arrow.gif icon_right_arrow2.gif icon_right_arrow3.gif orange_dot.png spacer.gif yellow_dot.png Log Message: --- NEW FILE: icon_left_arrow.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: spacer.gif --- (This appears to be a binary file; contents omitted.) Index: nothumbnail.jpg =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/images/nothumbnail.jpg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsLU3snD and /tmp/cvsk6c8da differ --- NEW FILE: icon_mini_album_13x13.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: yellow_dot.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: blue_dot.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_right_arrow2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_left_arrow3.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_left_arrow2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: green_dot.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: orange_dot.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_right_arrow3.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_right_arrow.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/includes Modified Files: album_cat.php album_cat_sort.php album_comment.php album_comment_delete.php album_comment_edit.php album_delete.php album_edit.php album_hotornot.php album_memberlist.php album_modcp.php album_page.php album_personal.php album_personal_cat_admin.php album_personal_index.php album_pic.php album_picm.php album_rate.php album_search.php album_showpage.php album_thumbnail.php album_upload.php Added Files: album_allpics.php album_download.php album_jupload.php album_nuffload.php album_nuffload_pbar.php album_otf.php album_otf_thumbnail.php album_pclzip_lib.php album_pic_nuffed.php album_rdf.php album_rss.php Log Message: Index: album_personal.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_personal.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** album_personal.php 30 Jun 2006 21:10:56 -0000 1.6 --- album_personal.php 7 Jun 2007 20:13:29 -0000 1.7 *************** *** 4,362 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @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 * */ ! // +-------------------------------------------------------------+ ! // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | ! // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003-2004 | ! // +-------------------------------------------------------------+ ! if ( !defined( 'IN_PORTAL' ) ) { ! die( 'Hacking attempt' ); } ! // ------------------------------------------------------------------------ ! // This file is only included in the album.php and album_cat.php, it should ! // be stored in the album_mod folder ! // ------------------------------------------------------------------------ ! // ------------------------------------------------------------------------ ! // $album_user_id, $cat_id and $moderators_list are as default set ! // in album.php and in album_cat.php files in the main folder. ! // ------------------------------------------------------------------------ ! // ------------------------------------------------------------------------ ! // Get the name of this user ! // ------------------------------------------------------------------------ ! $username = album_get_user_name( $album_user_id ); ! if ( empty( $username ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } ! $moderators_list = empty( $moderators_list ) ? $username : ',' . $username; ! // check if personal gallery root category exists ! if ( ALBUM_ROOT_CATEGORY == ( $check_cat_id = album_get_personal_root_id( $album_user_id ) ) ) { ! // if it doesn't then create the 'fake' category so we can authenticate it ! $thiscat = init_personal_gallery_cat( $album_user_id ); ! $cat_id = $check_cat_id; } ! else { ! if ( empty( $cat_id ) || $cat_id == 0 ) ! { ! $cat_id = $check_cat_id; ! } ! $thiscat = $album_data['data'][ $album_data['keys'][$cat_id] ]; } - // ------------------------------------------------------------------------ - // Check view permissions - // ------------------------------------------------------------------------ - $auth_data = album_permissions( $album_user_id, $cat_id, ALBUM_AUTH_ALL, $thiscat ); ! if ( !album_check_permission( $auth_data, ALBUM_AUTH_VIEW ) ) { ! if ( !$userdata['session_logged_in'] ) { ! redirect( append_sid( "login.$phpEx?redirect=album.$phpEx&user_id=$album_user_id" ) ); } else { ! mx_message_die( GENERAL_MESSAGE, $lang['Not_Authorised'] ); } } ! // END check permissions ! // ------------------------------------------------------------------------ ! // Check personal gallery creation/upload permission ! // ------------------------------------------------------------------------ ! if ( !album_check_permission( $auth_data, ALBUM_AUTH_UPLOAD ) && count( $album_data['data'] ) <= 1 ) { ! if ( $album_user_id == $userdata['user_id'] ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Not_allowed_to_create_personal_gallery'] ); } } // End check own gallery ! // ------------------------------------------------------------------------ ! // Check we are the root of the personal gallery and if it have ! // children or parents ! // ------------------------------------------------------------------------ ! // if $cat_id is equal to the non existing root category id, then it wasn't supplied to the call of the page ! // try to get the personal gallery root category instead (if it doesn't exists it returns ALBUM_ROOT_CATEGORY ! if ( $cat_id == ALBUM_ROOT_CATEGORY ) { ! $cat_id = album_get_personal_root_id( $album_user_id ); } ! ! $is_root_cat = ( ( $cat_id == album_get_personal_root_id( $album_user_id ) || $cat_id == ALBUM_ROOT_CATEGORY ) ? true : false ); ! $has_sub_cats = album_has_sub_cats( $cat_id ); ! $has_parent_cats = album_has_parent_cats( $cat_id ); ! // ------------------------------------------------------------------------ ! // Setup the correct link page ! // ------------------------------------------------------------------------ ! if ( $is_root_cat ) { ! $album_page_url = 'smartor_mode=album_cat'; } else { ! $album_page_url = 'smartor_mode=album_cat'; } ! if ( !$is_block ) { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); } ! ! $template->set_filenames( array( 'body' => 'album_cat_body.tpl' ) ); ! ! $auth_list = album_build_auth_list( $album_user_id, $cat_id, $auth_data ); ! // ------------------------------------------------------------------------ ! // Setup the correct variables and string acording to if we are showing all ! // the pictures or a category, this is infact the 'main' difference betwwen ! // these tho 'view modes'.. the rest is done in 'album_build_picture_table' ! // ------------------------------------------------------------------------ ! if ( $album_view_mode != ALBUM_VIEW_ALL ) { ! $album_nav_cat_desc = album_make_nav_tree( $cat_id, this_smartor_mxurl(), 'nav', $album_user_id ); ! if ( !empty( $album_nav_cat_desc ) ) { ! $album_nav_cat_desc = ALBUM_NAV_ARROW . $album_nav_cat_desc; } - - $cat_ids = $cat_id; - - $image_toggle_button = $images['all_pic_view_mode']; - $view_mode_url = append_sid( album_append_uid( this_smartor_mxurl( "$album_page_url&cat_id=" . intval( $cat_id ) . "&mode=" . ALBUM_VIEW_ALL ) ) ); - // $view_mode_url = append_sid(album_append_uid(this_smartor_mxurl("$album_page_url?cat_id=$cat_id&viewmode=" . ALBUM_VIEW_ALL))); - $view_mode_text = $lang['Show_all_pic_view_mode']; } else { ! $album_nav_cat_desc = album_make_nav_tree( album_get_personal_root_id( $album_user_id ), this_smartor_mxurl( $album_page_url ), 'nav', $album_user_id ); ! if ( !empty( $album_nav_cat_desc ) ) { ! $album_nav_cat_desc = ALBUM_NAV_ARROW . $album_nav_cat_desc; } ! ! if ( album_get_personal_root_id( $album_user_id ) != $cat_id ) { ! $allowed_cat = $cat_id; ! $tmp_array = array(); ! album_get_sub_cat_ids( album_get_personal_root_id( $album_user_id ), $tmp_array, ALBUM_AUTH_VIEW, true ); ! ! reset( $tmp_array ); ! while ( list( $key, $id ) = each( $tmp_array ) ) ! { ! if ( $id != $cat_id ) ! { ! $allowed_cat .= ',' . $id; ! } ! } } ! $cat_ids = $allowed_cat; - $image_toggle_button = $images['normal_pic_view_mode']; - $view_mode_url = append_sid( album_append_uid( this_smartor_mxurl( "$album_page_url&cat_id=" . intval( $cat_id ) ) ) ); - $view_mode_text = $lang['Show_selected_pic_view_mode']; - } - // ------------------------------------------------------------------------ - // Count Pics of the root category of personal gallery, - // - $cat_ids is set in the above IF statement - // ------------------------------------------------------------------------ - $sql = 'SELECT COUNT(p.pic_id) AS count - FROM ' . ALBUM_TABLE . ' AS p, ' . ALBUM_CAT_TABLE . ' AS c - WHERE c.cat_user_id = ' . $album_user_id . ' - AND c.cat_id IN (' . $cat_ids . ') - AND p.pic_cat_id = c.cat_id'; ! if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not count pics !!', '', __LINE__, __FILE__, $sql ); } ! $row = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); $total_pics = $row['count']; - // ------------------------------------------------------------------------ - // Build up the page - // ------------------------------------------------------------------------ - // I will try to explain how this SHOULD work. Only some testing and studying - // of the code will tell if really does do what it should. ! // NOTE : this might be change alittle AFTER this has been written so don't ! // take it for granted that it does work this way a 100% ! // But feel free to tell me if this(the description) need updating or ! // if the code needs fixing. ! // $cat_id : is the currently selected category ! // $allowed_cat: is a list of all the allowed categories that the current user ! // is allowed to view ! // £cat_ids : is synomous with $allowed_cat OR $cat_id, depending on the view mode ! // 0: Begin of 'work flow' ! // 1: Check if there are any pictures for the selected catery OR for the selected ! // categories (when in 'simple view' mode - see $allowed_cat above) ! // - No: No pictures found, go to step 2 ! // - Yes: One or more pictures found, go to step 5 ! // 2: Do another check to see if the use got any pictures in all of her ! // personal gallery categories, that the current user is allowed to view ! // - No: No pictures found, goto step 3 ! // - Yes: One or more pictures found, goto step 4 - // 3: The personal gallery does not have _ANY_pictures at all OR does not have _ANY_ - // at all the current user can view. Goto step 8 ! // 4: Only display the recent pictures of all the categories in this personal gallery ! // Goto step 10 ! // 5: Check if we are in simple view mode ! // - No: goto step 6 ! // - Yes: goto step 7 ! // 6: We are not in simple view mode, so display the pictures in the category and ! // if enabled; the recent pictures of the this category and it's sub categories. ! // Goto step 10 ! // 7: We are in simple mode, so only display the ALL the pictures of the personal gallery ! // which can be view by the currently logged in user. ! // Goto step 10 ! // 8: Check if personal gallery got sub categories (which can be viewed by current user) ! // - Yes: Display no picture message, since ther really are't any pictures to display ! // - No: Display message to logged in user that the gallery doesn't exists. ! // Goto step 10 ! // 9: Display message to logged in user that the gallery doesn't exists. ! // Goto step 10 ! // 10: End of 'work flow' ! // ------------------------------------------------------------------------ ! if ( $row['count'] == 0 ) ! { ! if ( !strstr( $album_nav_cat_desc, sprintf( $lang['Personal_Gallery_Of_User'], $username ) ) ) ! { ! // $album_nav_cat_desc .= ALBUM_NAV_ARROW . '<a href="'. append_sid(album_append_uid("album.$phpEx?cat_id$cat_id")) .'" class="nav">'.sprintf($lang['Personal_Gallery_Of_User'], $username)."</a>"; ! $album_nav_cat_desc .= ALBUM_NAV_ARROW . '<a href="' . this_smartor_mxurl( "user_id=$album_user_id" ) . '" class="nav">' . sprintf( $lang['Personal_Gallery_Of_User'], $username ) . "</a>"; ! } ! // ------------------------------------------------------------------------ ! // check if there is _any_ pictures at all in the personal gallery of this user. ! // but ONLY if we aren't in simple view mode (then we have already indirectly done the check) ! // ------------------------------------------------------------------------ ! if ( $album_view_mode != ALBUM_VIEW_ALL && !empty( $allowed_cat ) ) ! { ! $sql = 'SELECT COUNT(p.pic_id) AS count ! FROM ' . ALBUM_TABLE . ' AS p, ' . ALBUM_CAT_TABLE . ' AS c ! WHERE c.cat_user_id = ' . $album_user_id . ' ! AND c.cat_id IN (' . $allowed_cat . ') ! AND p.pic_cat_id = c.cat_id'; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not count pics !!', '', __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! $total_pics = $row['count']; ! } ! if ( $album_config['personal_show_recent_instead_of_nopics'] == 1 && $row['count'] > 0 ) ! { ! album_build_recent_pics( $allowed_cat ); ! } ! else ! { ! $template->assign_block_vars( 'index_pics_block', array() ); ! $template->assign_block_vars( 'index_pics_block.no_pics', array() ); } ! if ( $is_root_cat && ( !$has_sub_cats ) ) ! { ! $no_picture_message = sprintf( $lang['Personal_gallery_not_created'], $username ); ! } ! else ! { ! $no_picture_message = $lang['No_Pics']; ! } } else { ! album_build_picture_table( $album_user_id, $cat_ids, $thiscat, $auth_data, $start, $sort_method, $sort_order, $total_pics ); ! ! if ( $album_config['personal_show_recent_in_subcats'] == 1 && $album_view_mode != ALBUM_VIEW_ALL ) ! { ! album_build_recent_pics( $allowed_cat ); ! } } ! // ------------------------------------------------------------------------ ! // Check if we should show the upload picture image/icon ! // ------------------------------------------------------------------------ ! if ( album_check_permission( $auth_data, ALBUM_AUTH_UPLOAD ) == true ) { ! $template->assign_block_vars( 'enable_picture_upload', array() ); } ! // ------------------------------------------------------------------------ ! // Check if we should show the view toggle button ! // ------------------------------------------------------------------------ ! if ( $album_config['show_all_in_personal_gallery'] == 1 ) { ! $template->assign_block_vars( 'enable_view_toggle', array() ); } - $template->assign_block_vars( 'personal_gallery_header', array() ); - // ------------------------------------------------------------------------ - // Do our template info... - // ------------------------------------------------------------------------ - $template->assign_vars( array( - 'L_ALBUM' => $lang['Album'], ! 'U_VIEW_CAT' => append_sid( album_append_uid( this_smartor_mxurl() ) ), ! // 'U_VIEW_CAT' => append_sid(album_append_uid(this_smartor_mxurl("$album_page_url?cat_id=$cat_id"))), ! 'CAT_TITLE' => ( $is_root_cat || $album_view_mode == ALBUM_VIEW_ALL ) ? sprintf( $lang['Personal_Gallery_Of_User'], $username ) : $thiscat['cat_title'], ! 'ALBUM_NAVIGATION_ARROW' => ALBUM_NAV_ARROW, ! 'NAV_CAT_DESC' => $album_nav_cat_desc, - 'L_PERSONAL_GALLERY_EXPLAIN' => $lang['Personal_Gallery_Explain'], ! 'L_MODERATORS' => $lang['Moderators'], ! 'MODERATORS' => $moderators_list, ! 'U_UPLOAD_PIC' => append_sid( album_append_uid( this_smartor_mxurl( "smartor_mode=album_upload&cat_id=" . intval( $cat_id ) ) ) ), ! // 'U_UPLOAD_PIC' => append_sid(album_append_uid(this_smartor_mxurl("smartor_mode=album_upload&cat_id=$cat_id"))), ! 'UPLOAD_PIC_IMG' => $images['upload_pic'], 'L_UPLOAD_PIC' => $lang['Upload_Pic'], ! 'U_TOGGLE_VIEW_ALL' => $view_mode_url, ! 'TOGGLE_VIEW_ALL_IMG' => $image_toggle_button, ! 'L_TOGGLE_VIEW_ALL' => $view_mode_text, - 'L_CATEGORY' => sprintf( $lang['Personal_Gallery_Of_User'], $username ), - 'L_NO_PICS' => $no_picture_message, - 'L_RECENT_PUBLIC_PICS' => sprintf( $lang['Recent_Personal_Pics'], $username ), 'S_COLS' => $album_config['cols_per_page'], ! 'S_COL_WIDTH' => ( 100 / $album_config['cols_per_page'] ) . '%', 'L_VIEW' => $lang['View'], - 'L_PIC_CAT' => $lang['Pic_Cat'], - 'L_POSTER' => $lang['Poster'], 'L_POSTED' => $lang['Posted'], ! 'ALBUM_JUMPBOX' => $album_jumpbox, ! // 'S_ALBUM_ACTION' => append_sid(album_append_uid(this_smartor_mxurl("$album_page_url?cat_id=" . intval($cat_id)))), ! 'S_ALBUM_ACTION' => append_sid( album_append_uid( this_smartor_mxurl( "$album_page_url?cat_id=$cat_id" ) ) ), ! 'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? 'target="_blank"' : '', 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], --- 4,408 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ + + /*************************************************************************** + * MODIFICATIONS + * --------------- + * started : Saturday, September 06 12:09 pm + * copyright : © 2003 Volodymyr (CLowN) Skoryk + * email : bla...@ya... + * + * MODIFICATIONS: + * -fixed link to go to album_showpage.php + * + * + ***************************************************************************/ ! // MX ! if ( !defined('IN_PORTAL') ) ! { ! die("Hacking attempt"); ! } ! // ------------------------------------ ! // Check the request ! // ------------------------------------ ! if( isset($HTTP_POST_VARS['user_id']) ) { ! $user_id = intval($HTTP_POST_VARS['user_id']); } ! else if( isset($HTTP_GET_VARS['user_id']) ) { ! $user_id = intval($HTTP_GET_VARS['user_id']); } + else + { + $user_id = $userdata['user_id']; + } + // + // END check request + // ! ! // ------------------------------------ ! // Check $user_id ! // ------------------------------------ ! ! if( ($user_id < 1) and (!$userdata['session_logged_in']) ) { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); ! redirect(append_sid($phpbb_root_path ."login.$phpEx?redirect=album.php?smartor_mode=album_personal")); } ! ! ! // ------------------------------------ ! // Get the username of this gallery's owner ! // ------------------------------------ ! ! $sql = "SELECT username ! FROM ". USERS_TABLE ." ! WHERE user_id = $user_id"; ! ! if( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, 'Could not get the username of this category owner', '', __LINE__, __FILE__, $sql); } ! $row = $db->sql_fetchrow($result); ! ! $username = $row['username']; ! ! if( empty($username) ) { ! mx_message_die(GENERAL_ERROR, 'Sorry, this user does not exist'); ! } ! ! ! // ------------------------------------ ! // Check Permissions ! // ------------------------------------ ! $personal_gallery_access = personal_gallery_access(1,1); ! ! if( $personal_gallery_access['view'] == 0 ) ! { ! if (!$userdata['session_logged_in']) { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); ! redirect(append_sid($phpbb_root_path ."login.$phpEx?redirect=album.php?smartor_mode=album_personal&user_id=$user_id")); } else { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } ! // // END check permissions + // ! ! // ------------------------------------ ! // Check own gallery ! // ------------------------------------ ! ! if ($user_id == $userdata['user_id']) { ! if( $personal_gallery_access['upload'] == 0 ) { ! mx_message_die(GENERAL_MESSAGE, $lang['Not_allowed_to_create_personal_gallery']); } } + // // End check own gallery + // ! ! // ------------------------------------ ! // Build the thumbnail page ! // ------------------------------------ ! ! if( isset($HTTP_GET_VARS['start']) ) { ! $start = intval($HTTP_GET_VARS['start']); } ! else if( isset($HTTP_POST_VARS['start']) ) { ! $start = intval($HTTP_POST_VARS['start']); } else { ! $start = 0; } ! if( isset($HTTP_GET_VARS['sort_method']) ) { ! switch ($HTTP_GET_VARS['sort_method']) ! { ! case 'pic_title': ! $sort_method = 'pic_title'; ! break; ! case 'pic_view_count': ! $sort_method = 'pic_view_count'; ! break; ! case 'rating': ! $sort_method = 'rating'; ! break; ! case 'comments': ! $sort_method = 'comments'; ! break; ! case 'new_comment': ! $sort_method = 'new_comment'; ! break; ! default: ! $sort_method = $album_config['sort_method']; ! } } ! else if( isset($HTTP_POST_VARS['sort_method']) ) { ! switch ($HTTP_POST_VARS['sort_method']) { ! case 'pic_title': ! $sort_method = 'pic_title'; ! break; ! case 'pic_view_count': ! $sort_method = 'pic_view_count'; ! break; ! case 'rating': ! $sort_method = 'rating'; ! break; ! case 'comments': ! $sort_method = 'comments'; ! break; ! case 'new_comment': ! $sort_method = 'new_comment'; ! break; ! default: ! $sort_method = $album_config['sort_method']; } } else { ! $sort_method = $album_config['sort_method']; ! } ! ! if( isset($HTTP_GET_VARS['sort_order']) ) ! { ! switch ($HTTP_GET_VARS['sort_order']) { ! case 'ASC': ! $sort_order = 'ASC'; ! break; ! case 'DESC': ! $sort_order = 'DESC'; ! break; ! default: ! $sort_order = $album_config['sort_order']; } ! } ! else if( isset($HTTP_POST_VARS['sort_order']) ) ! { ! switch ($HTTP_POST_VARS['sort_order']) { ! case 'ASC': ! $sort_order = 'ASC'; ! break; ! case 'DESC': ! $sort_order = 'DESC'; ! break; ! default: ! $sort_order = $album_config['sort_order']; } + } + else + { + $sort_order = $album_config['sort_order']; + } ! $pics_per_page = $album_config['rows_per_page'] * $album_config['cols_per_page']; ! // ------------------------------------ ! // Count Pics ! // ------------------------------------ ! ! $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', '', __LINE__, __FILE__, $sql); } ! $row = $db->sql_fetchrow($result); $total_pics = $row['count']; ! // ------------------------------------ ! // Build up ! // ------------------------------------ ! if ($total_pics > 0) ! { ! $limit_sql = ($start == 0) ? $pics_per_page : $start .','. $pics_per_page; ! $sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_time, p.pic_view_count, p.pic_lock, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment ! FROM ". ALBUM_TABLE ." AS p ! LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id ! LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id ! WHERE p.pic_cat_id = ". PERSONAL_GALLERY ." ! AND p.pic_user_id = $user_id ! GROUP BY p.pic_id ! ORDER BY $sort_method $sort_order ! LIMIT $limit_sql"; ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not query pics information', '', __LINE__, __FILE__, $sql); ! } ! $picrow = array(); ! while( $row = $db->sql_fetchrow($result) ) ! { ! $picrow[] = $row; ! } ! // -------------------------------- ! // Thumbnails table ! // -------------------------------- ! for ($i = 0; $i < count($picrow); $i += $album_config['cols_per_page']) ! { ! $template->assign_block_vars('picrow', array()); ! for ($j = $i; $j < ($i + $album_config['cols_per_page']); $j++) ! { ! if( $j >= count($picrow) ) ! { ! break; ! } ! $template->assign_block_vars('picrow.piccol', array( ! 'U_PIC' => ($album_config['fullpic_popup']) ? append_sid(this_smartor_mxurl("smartor_mode=album_pic&pic_id=". $picrow[$j]['pic_id'])) : append_sid(this_smartor_mxurl("smartor_mode=album_showpage&pic_id=". $picrow[$j]['pic_id'])), ! 'THUMBNAIL' => append_sid(this_smartor_mxurl("smartor_mode=album_thumbnail&pic_id=". $picrow[$j]['pic_id'], TRUE)), ! 'DESC' => $picrow[$j]['pic_desc'] ! ) ! ); ! ! $image_rating = ImageRating($picrow[$j]['rating']); ! ! $template->assign_block_vars('picrow.pic_detail', array( ! 'TITLE' => $picrow[$j]['pic_title'], ! 'TIME' => create_date($board_config['default_dateformat'], $picrow[$j]['pic_time'], $board_config['board_timezone']), ! 'VIEW' => $picrow[$j]['pic_view_count'], ! 'RATING' => ($album_config['rate'] == 1) ? ( $lang['Rating'] . ': ' . $image_rating . '<br />') : '', ! 'COMMENTS' => ($album_config['comment'] == 1) ? ( $lang['Comments'] . ': ' . $picrow[$j]['comments'] . '<br />') : '', ! 'EDIT' => ( ($userdata['user_level'] == ADMIN) or ($userdata['user_id'] == $picrow[$j]['pic_user_id']) ) ? '<a href="'. append_sid(this_smartor_mxurl("smartor_mode=album_edit&pic_id=". $picrow[$j]['pic_id'])) . '">' . $lang['Edit_pic'] . '</a>' : '', ! 'DELETE' => ( ($userdata['user_level'] == ADMIN) or ($userdata['user_id'] == $picrow[$j]['pic_user_id']) ) ? '<a href="'. append_sid(this_smartor_mxurl("smartor_mode=album_delete&pic_id=". $picrow[$j]['pic_id'])) . '">' . $lang['Delete_pic'] . '</a>' : '', ! 'LOCK' => ($userdata['user_level'] == ADMIN) ? '<a href="'. append_sid(this_smartor_mxurl("smartor_mode=album_modcp&mode=". (($picrow[$j]['pic_lock'] == 0) ? 'lock' : 'unlock') ."&pic_id=". $picrow[$j]['pic_id'])) .'">'. (($picrow[$j]['pic_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($picrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($picrow[$j]['pic_user_ip']) .'</a><br />' : '' ! ) ! ); ! } } ! ! // -------------------------------- ! // Pagination ! // -------------------------------- ! ! $template->assign_vars(array( ! 'PAGINATION' => generate_pagination(append_sid(this_smartor_mxurl("smartor_mode=album_personal&user_id=$user_id&sort_method=$sort_method&sort_order=$sort_order")), $total_pics, $pics_per_page, $start), ! 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $pics_per_page ) + 1 ), ceil( $total_pics / $pics_per_page )) ! ) ! ); } else { ! $template->assign_block_vars('no_pics', array()); } ! ! ! /* ! +---------------------------------------------------------- ! | Main page... ! +---------------------------------------------------------- ! */ ! ! // ------------------------------------ ! // additional sorting options ! // ------------------------------------ ! ! $sort_rating_option = ''; ! $sort_comments_option = ''; ! if( $album_config['rate'] == 1 ) { ! $sort_rating_option = '<option value="rating" '; ! $sort_rating_option .= ($sort_method == 'rating') ? 'selected="selected"' : ''; ! $sort_rating_option .= '>' . $lang['Rating'] .'</option>'; } ! if( $album_config['comment'] == 1 ) { ! $sort_comments_option = '<option value="comments" '; ! $sort_comments_option .= ($sort_method == 'comments') ? 'selected="selected"' : ''; ! $sort_comments_option .= '>' . $lang['Comments'] .'</option>'; ! ! $sort_new_comment_option = '<option value="new_comment" '; ! $sort_new_comment_option .= ($sort_method == 'new_comment') ? 'selected="selected"' : ''; ! $sort_new_comment_option .= '>' . $lang['New_Comment'] .'</option>'; } ! // ! // Start output of page ! // ! $page_title = $lang['Album']; ! if ( !$is_block ) ! { ! include($mx_root_path . 'includes/page_header.'.$phpEx); ! } ! $template->set_filenames(array( ! 'body' => 'album_personal_body.tpl') ! ); ! if( $user_id == $userdata['user_id'] ) ! { ! $template->assign_block_vars('your_personal_gallery', array()); ! } ! ! $template->assign_vars(array( ! 'U_UPLOAD_PIC' => append_sid(this_smartor_mxurl("smartor_mode=album_upload&cat_id=". PERSONAL_GALLERY)), ! 'UPLOAD_PIC_IMG' => $mx_images['upload_pic'], 'L_UPLOAD_PIC' => $lang['Upload_Pic'], ! 'L_PERSONAL_GALLERY_NOT_CREATED' => sprintf($lang['Personal_gallery_not_created'], $username), ! ! 'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'target="_blank"' : '', 'S_COLS' => $album_config['cols_per_page'], ! 'S_COL_WIDTH' => (100/$album_config['cols_per_page']) . '%', 'L_VIEW' => $lang['View'], 'L_POSTED' => $lang['Posted'], ! 'U_PERSONAL_GALLERY' => append_sid(this_smartor_mxurl("smartor_mode=album_personal&user_id=$user_id")), ! 'L_YOUR_PERSONAL_GALLERY' => $lang['Your_Personal_Gallery'], ! 'L_PERSONAL_GALLERY_EXPLAIN' => $lang['Personal_Gallery_Explain'], ! 'L_PERSONAL_GALLERY_OF_USER' => sprintf($lang['Personal_Gallery_Of_User'], $username), 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], *************** *** 367,386 **** 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'SORT_TIME' => ( $sort_method == 'pic_time' ) ? 'selected="selected"' : '', ! 'SORT_PIC_TITLE' => ( $sort_method == 'pic_title' ) ? 'selected="selected"' : '', ! 'SORT_VIEW' => ( $sort_method == 'pic_view_count' ) ? 'selected="selected"' : '', 'SORT_RATING_OPTION' => $sort_rating_option, 'SORT_COMMENTS_OPTION' => $sort_comments_option, 'SORT_NEW_COMMENT_OPTION' => $sort_new_comment_option, - 'SORT_USERNAME_OPTION' => $sort_username_option, 'L_ASC' => $lang['Sort_Ascending'], 'L_DESC' => $lang['Sort_Descending'], ! 'SORT_ASC' => ( $sort_order == 'ASC' ) ? 'selected="selected"' : '', ! 'SORT_DESC' => ( $sort_order == 'DESC' ) ? 'selected="selected"' : '', ! ! 'S_AUTH_LIST' => $auth_list ) ); ?> \ No newline at end of file --- 413,448 ---- 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'SORT_TIME' => ($sort_method == 'pic_time') ? 'selected="selected"' : '', ! 'SORT_PIC_TITLE' => ($sort_method == 'pic_title') ? 'selected="selected"' : '', ! 'SORT_VIEW' => ($sort_method == 'pic_view_count') ? 'selected="selected"' : '', 'SORT_RATING_OPTION' => $sort_rating_option, 'SORT_COMMENTS_OPTION' => $sort_comments_option, 'SORT_NEW_COMMENT_OPTION' => $sort_new_comment_option, 'L_ASC' => $lang['Sort_Ascending'], 'L_DESC' => $lang['Sort_Descending'], ! 'SORT_ASC' => ($sort_order == 'ASC') ? 'selected="selected"' : '', ! 'SORT_DESC' => ($sort_order == 'DESC') ? 'selected="selected"' : '') ); + + + // + // Generate the page + // + $template->pparse('body'); + + if ( !$is_block ) + { + include($mx_root_path . 'includes/page_tail.'.$phpEx); + } + + + + // +--------------------------------------------------------+ + // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | + // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | + // +--------------------------------------------------------+ + ?> \ No newline at end of file Index: album_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_edit.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** album_edit.php 30 Jun 2006 21:10:55 -0000 1.6 --- album_edit.php 7 Jun 2007 20:13:29 -0000 1.7 *************** *** 4,37 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @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 * */ ! // +------------------------------------------------------+ ! // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | ! // +------------------------------------------------------+ ! ! if ( !defined( 'IN_PORTAL' ) ) { ! die( "Hacking attempt" ); } // ------------------------------------ // Check the request // ------------------------------------ ! if ( isset( $HTTP_GET_VARS['pic_id'] ) ) { ! $pic_id = intval( $HTTP_GET_VARS['pic_id'] ); } ! else if ( isset( $HTTP_POST_VARS['pic_id'] ) ) { ! $pic_id = intval( $HTTP_POST_VARS['pic_id'] ); } else { ! mx_message_die( GENERAL_ERROR, 'No pics specified' ); } ! /* // ------------------------------------ // Get this pic info --- 4,36 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! // MX ! if ( !defined('IN_PORTAL') ) { ! die("Hacking attempt"); } + // ------------------------------------ // Check the request // ------------------------------------ ! ! if( isset($HTTP_GET_VARS['pic_id']) ) { ! $pic_id = intval($HTTP_GET_VARS['pic_id']); } ! else if( isset($HTTP_POST_VARS['pic_id']) ) { ! $pic_id = intval($HTTP_POST_VARS['pic_id']); } else { ! mx_message_die(GENERAL_ERROR, 'No pics specified'); } ! // ------------------------------------ // Get this pic info *************** *** 91,149 **** $album_user_access = album_user_access($cat_id, $thiscat, 0, 0, 0, 0, 1, 0); // EDIT - */ - // --- Album Category Hierarchy : begin - // --- version : 1.1.0 - // ------------------------------------ - // Get this pic info and current Category Info - // ------------------------------------ - $sql = "SELECT p.*, c.* - FROM " . ALBUM_TABLE . " AS p, " . ALBUM_CAT_TABLE . " AS c - WHERE p.pic_id = '$pic_id' - AND c.cat_id = p.pic_cat_id"; - - if ( !( $result = $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql ); - } - $thispic = $db->sql_fetchrow( $result ); ! $cat_id = $thispic['cat_id']; ! $album_user_id = $thispic['cat_user_id']; ! ! $pic_filename = $thispic['pic_filename']; ! $pic_thumbnail = $thispic['pic_thumbnail']; ! ! if ( empty( $thispic ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['Pic_not_exist'] ); ! } ! // ------------------------------------ ! // Check the permissions ! // ------------------------------------ ! $album_user_access = album_permissions( $album_user_id, $cat_id, ALBUM_AUTH_EDIT, $thispic ); ! // --- Album Category Hierarchy : end ! if ( $album_user_access['edit'] == 0 ) { ! if ( !$userdata['session_logged_in'] ) { ! mx_message_die( GENERAL_ERROR, $lang['Not_Authorised'] ); ! redirect( append_sid( $phpbb_root_path . "login.$phpEx?redirect=album.php?smartor_mode=album_edit&pic_id=$pic_id" ) ); } else { ! mx_message_die( GENERAL_ERROR, $lang['Not_Authorised'] ); } } else ! { ! if ( ( !$album_user_access['moderator'] ) or ( $userdata['user_level'] != ADMIN ) ) { ! if ( $thispic['pic_user_id'] != $userdata['user_id'] ) { ! mx_message_die( GENERAL_ERROR, $lang['Not_Authorised'] ); } } } /* +---------------------------------------------------------- --- 90,118 ---- $album_user_access = album_user_access($cat_id, $thiscat, 0, 0, 0, 0, 1, 0); // EDIT ! if ($album_user_access['edit'] == 0) { ! if (!$userdata['session_logged_in']) { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); ! redirect(append_sid($phpbb_root_path ."login.$phpEx?redirect=album.php?smartor_mode=album_edit&pic_id=$pic_id")); } else { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } else ! { ! if( (!$album_user_access['moderator']) or ($userdata['user_level'] != ADMIN) ) { ! if ($thispic['pic_user_id'] != $userdata['user_id']) { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } + /* +---------------------------------------------------------- *************** *** 152,173 **** */ ! if ( !isset( $HTTP_POST_VARS['pic_title'] ) ) { ! // Start output of page ! $page_title = $lang['Album']; ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } - $template->set_filenames( array( 'body' => 'album_edit_body.tpl' ) ); ! $template->assign_vars( array( 'L_EDIT_PIC_INFO' => $lang['Edit_Pic_Info'], 'CAT_TITLE' => $thiscat['cat_title'], ! 'U_VIEW_CAT' => append_sid( this_smartor_mxurl( "smartor_mode=album_cat&cat_id=$cat_id" ) ), 'L_PIC_TITLE' => $lang['Pic_Title'], --- 121,145 ---- */ ! if( !isset($HTTP_POST_VARS['pic_title']) ) { ! // // Start output of page ! // $page_title = $lang['Album']; ! if ( !$is_block ) ! { ! include($mx_root_path . 'includes/page_header.'.$phpEx); ! } ! $template->set_filenames(array( ! 'body' => 'album_edit_body.tpl') ! ); ! ! $template->assign_vars(array( 'L_EDIT_PIC_INFO' => $lang['Edit_Pic_Info'], 'CAT_TITLE' => $thiscat['cat_title'], ! 'U_VIEW_CAT' => ($cat_id != PERSONAL_GALLERY) ? append_sid(this_smartor_mxurl("smartor_mode=album_cat&cat_id=$cat_id")) : append_sid(this_smartor_mxurl("smartor_mode=album_personal&user_id=$user_id")), 'L_PIC_TITLE' => $lang['Pic_Title'], *************** *** 186,200 **** 'L_SUBMIT' => $lang['Submit'], ! 'S_ALBUM_ACTION' => append_sid( this_smartor_mxurl( "smartor_mode=album_edit&pic_id=$pic_id" ) ), ! )); // Generate the page ! $template->pparse( 'body' ); - if ( !$is_block ) - { - include( $mx_root_path . 'includes/page_tail.' . $phpEx ); - } } else --- 158,175 ---- 'L_SUBMIT' => $lang['Submit'], ! 'S_ALBUM_ACTION' => append_sid(this_smartor_mxurl("smartor_mode=album_edit&pic_id=$pic_id")), ! ) ! ); + // // Generate the page + // + $template->pparse('body'); ! if ( !$is_block ) ! { ! include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } } else *************** *** 203,243 **** // Check posted info // -------------------------------- - $pic_title = str_replace( "\'", "''", htmlspecialchars( trim( $HTTP_POST_VARS['pic_title'] ) ) ); ! $pic_desc = str_replace( "\'", "''", htmlspecialchars( substr( trim( $HTTP_POST_VARS['pic_desc'] ), 0, $album_config['desc_length'] ) ) ); ! if ( empty( $pic_title ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Missed_pic_title'] ); } // -------------------------------- // Update the DB // -------------------------------- ! $sql = "UPDATE " . ALBUM_TABLE . " SET pic_title = '$pic_title', pic_desc= '$pic_desc' WHERE pic_id = '$pic_id'"; ! if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not update pic information', '', __LINE__, __FILE__, $sql ); } // -------------------------------- // Complete... now send a message to user // -------------------------------- - $message = $lang['Pics_updated_successfully']; ! $template->assign_vars( array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid( this_smartor_mxurl( "smartor_mode=album_cat&cat_id=$cat_id" ) ) . '">' ) ); ! if ( $album_user_id == ALBUM_PUBLIC_GALLERY ) { ! $message .= "<br /><br />" . sprintf( $lang['Click_return_category'], "<a href=\"" . append_sid( album_append_uid( this_smartor_mxurl( "smartor_mode=album_cat&cat_id=$cat_id" ) ) ) . "\">", "</a>" ); } else { ! $message .= "<br /><br />" . sprintf( $lang['Click_return_personal_gallery'], "<a href=\"" . append_sid( album_append_uid( this_smartor_mxurl() ) ) . "\">", "</a>" ); } ! $message .= "<br /><br />" . sprintf( $lang['Click_return_album_index'], "<a href=\"" . append_sid( this_smartor_mxurl() ) . "\">", "</a>" ); - mx_message_die( GENERAL_MESSAGE, $message ); } ?> \ No newline at end of file --- 178,244 ---- // Check posted info // -------------------------------- ! $pic_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['pic_title']))); ! //Added by GH ! $pic_title = addslashes($pic_title); ! ! $pic_desc = str_replace("\'", "''", htmlspecialchars(substr(trim($HTTP_POST_VARS['pic_desc']), 0, $album_config['desc_length']))); ! ! //Added by GH ! $pic_desc = addslashes($pic_desc); ! ! if( empty($pic_title) ) { ! mx_message_die(GENERAL_ERROR, $lang['Missed_pic_title']); } + + // -------------------------------- // Update the DB // -------------------------------- ! ! $sql = "UPDATE ". ALBUM_TABLE ." SET pic_title = '$pic_title', pic_desc= '$pic_desc' WHERE pic_id = '$pic_id'"; ! if( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not update pic information', '', __LINE__, __FILE__, $sql); } + + // -------------------------------- // Complete... now send a message to user // -------------------------------- ! $message = $lang['Pics_updated_successfully']; ! if ($cat_id != PERSONAL_GALLERY) { ! $template->assign_vars(array( ! 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_smartor_mxurl("smartor_mode=album_cat&cat_id=$cat_id")) . '">') ! ); ! ! $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href=\"" . append_sid(this_smartor_mxurl("smartor_mode=album_cat&cat_id=$cat_id")) . "\">", "</a>"); } else { ! $template->assign_vars(array( ! 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(this_smartor_mxurl("smartor_mode=album_personal")) . '">') ! ); ! ! $message .= "<br /><br />" . sprintf($lang['Click_return_personal_gallery'], "<a href=\"" . append_sid(this_smartor_mxurl("smartor_mode=album_personal")) . "\">", "</a>"); } ! $message .= "<br /><br />" . sprintf($lang['Click_return_album_index'], "<a href=\"" . append_sid(this_smartor_mxurl()) . "\">", "</a>"); ! ! mx_message_die(GENERAL_MESSAGE, $message); } + + + // +------------------------------------------------------+ + // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | + // +------------------------------------------------------+ + ?> \ No newline at end of file Index: album_comment_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_comment_edit.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** album_comment_edit.php 30 Jun 2006 21:10:55 -0000 1.6 --- album_comment_edit.php 7 Jun 2007 20:13:28 -0000 1.7 *************** *** 4,99 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @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 * */ ! // +------------------------------------------------------+ ! // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | ! // +------------------------------------------------------+ ! ! if ( !defined( 'IN_PORTAL' ) ) { ! die( "Hacking attempt" ); } // ------------------------------------ // Check feature enabled // ------------------------------------ ! if ( $album_config['comment'] == 0 ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Not_Authorised'] ); } // ------------------------------------ // Check the request // ------------------------------------ ! if ( isset( $HTTP_GET_VARS['comment_id'] ) ) { ! $comment_id = intval( $HTTP_GET_VARS['comment_id'] ); } ! else if ( isset( $HTTP_POST_VARS['comment_id'] ) ) { ! $comment_id = intval( $HTTP_POST_VARS['comment_id'] ); } else { ! mx_message_die( GENERAL_ERROR, 'No comment_id specified' ); } // ------------------------------------ // Get the comment info // ------------------------------------ $sql = "SELECT * ! FROM " . ALBUM_COMMENT_TABLE . " WHERE comment_id = '$comment_id'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not query this comment information', '', __LINE__, __FILE__, $sql ); } ! $thiscomment = $db->sql_fetchrow( $result ); ! if ( empty( $thiscomment ) ) { ! mx_message_die( GENERAL_ERROR, 'This comment does not exist' ); } // ------------------------------------ // Get $pic_id from $comment_id // ------------------------------------ $sql = "SELECT comment_id, comment_pic_id ! FROM " . ALBUM_COMMENT_TABLE . " WHERE comment_id = '$comment_id'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not query comment and pic information', '', __LINE__, __FILE__, $sql ); } ! $row = $db->sql_fetchrow( $result ); $pic_id = $row['comment_pic_id']; ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0 // ------------------------------------ ! // Get this pic info and current category info // ------------------------------------ ! // NOTE: we don't do a left join here against the category table ! // since ALL pictures belong to some category, if not then it's database error ! $sql = "SELECT p.*, cat.*, u.user_id, u.username, COUNT(c.comment_id) as comments_count ! FROM " . ALBUM_CAT_TABLE . " AS cat, " . ALBUM_TABLE . " AS p ! LEFT JOIN " . USERS_TABLE . " AS u ON p.pic_user_id = u.user_id ! LEFT JOIN " . ALBUM_COMMENT_TABLE . " AS c ON p.pic_id = c.comment_pic_id WHERE pic_id = '$pic_id' - AND cat.cat_id = p.pic_cat_id GROUP BY p.pic_id LIMIT 1"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql ); } ! $thispic = $db->sql_fetchrow( $result ); $cat_id = $thispic['pic_cat_id']; ! $album_user_id = $thispic['cat_user_id']; $total_comments = $thispic['comments_count']; --- 4,116 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ + + /*************************************************************************** + * MODIFICATIONS + * --------------- + * started : Saturday, September 06 12:07 pm + * copyright : © 2003 Volodymyr (CLowN) Skoryk + * email : bla...@ya... + * + * MODIFICATIONS: + * -fixed links to go to album_showpage.php + * + * + ***************************************************************************/ ! // MX ! if ( !defined('IN_PORTAL') ) { ! die("Hacking attempt"); } + // ------------------------------------ // Check feature enabled // ------------------------------------ ! ! if( $album_config['comment'] == 0 ) { ! mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } + + // ------------------------------------ // Check the request // ------------------------------------ ! ! if( isset($HTTP_GET_VARS['comment_id']) ) { ! $comment_id = intval($HTTP_GET_VARS['comment_id']); } ! else if( isset($HTTP_POST_VARS['comment_id']) ) { ! $comment_id = intval($HTTP_POST_VARS['comment_id']); } else { ! mx_message_die(GENERAL_ERROR, 'No comment_id specified'); } + + // ------------------------------------ // Get the comment info // ------------------------------------ $sql = "SELECT * ! FROM ". ALBUM_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; ! if( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, 'Could not query this comment information', '', __LINE__, __FILE__, $sql); } ! $thiscomment = $db->sql_fetchrow($result); ! if( empty($thiscomment) ) { ! mx_message_die(GENERAL_ERROR, 'This comment does not exist'); } + + // ------------------------------------ // Get $pic_id from $comment_id // ------------------------------------ + $sql = "SELECT comment_id, comment_pic_id ! FROM ". ALBUM_COMMENT_TABLE ." WHERE comment_id = '$comment_id'"; ! if( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, 'Could not query comment and pic information', '', __LINE__, __FILE__, $sql); } ! $row = $db->sql_fetchrow($result); $pic_id = $row['comment_pic_id']; ! ! // ------------------------------------ ! // Get this pic info // ------------------------------------ ! ! $sql = "SELECT p.*, u.user_id, u.username, COUNT(c.comment_id) as comments_count ! FROM ". ALBUM_TABLE ." AS p ! LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id ! LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id WHERE pic_id = '$pic_id' GROUP BY p.pic_id LIMIT 1"; ! if( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); } ! $thispic = $db->sql_fetchrow($result); $cat_id = $thispic['pic_cat_id']; ! $user_id = $thispic['pic_user_id']; $total_comments = $thispic['comments_count']; *************** *** 103,114 **** $pic_thumbnail = $thispic['pic_thumbnail']; ! if ( empty( $thispic ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Pic_not_exist'] ); } // ------------------------------------ // Get the current Category Info // ------------------------------------ ! /* if ($cat_id != PERSONAL_GALLERY) { --- 120,133 ---- $pic_thumbnail = $thispic['pic_thumbnail']; ! if( empty($thispic) ) { ! mx_message_die(GENERAL_ERROR, $lang['Pic_not_exist']); } + + // ------------------------------------ // Get the current Category Info // ------------------------------------ ! if ($cat_id != PERSONAL_GALLERY) { *************** *** 132,169 **** mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } ! */ ! // ------------------------------------ ! // Check the permissions ! // ------------------------------------ ! $album_user_access = album_permissions( $album_user_id, $cat_id, ALBUM_AUTH_COMMENT | ALBUM_AUTH_EDIT, $thispic ); ! // --- Album Category Hierarchy : end // ------------------------------------ // Check the permissions // ------------------------------------ - $album_user_access = album_user_access( $thispic['pic_cat_id'], $thiscat, 0, 0, 0, 1, 1, 0 ); ! if ( ( $album_user_access['comment'] == 0 ) or ( $album_user_access['edit'] == 0 ) ) { ! if ( !$userdata['session_logged_in'] ) { ! mx_message_die( GENERAL_ERROR, $lang['Not_Authorised'] ); ! redirect( append_sid( $phpbb_root_path . "login.$phpEx?redirect=album.php?smartor_mode=album_comment_edit&comment_id=$comment_id" ) ); } else { ! mx_message_die( GENERAL_ERROR, $lang['Not_Authorised'] ); } } else ! { ! if ( ( !$album_user_access['moderator'] ) or ( $userdata['user_level'] != ADMIN ) ) { ! if ( $thiscomment['comment_user_id'] != $userdata['user_id'] ) { ! mx_message_die( GENERAL_ERROR, $lang['Not_Authorised'] ); } } } /* +---------------------------------------------------------- --- 151,186 ---- mx_message_die(GENERAL_ERROR, $lang['Category_not_exist']); } ! ! // ------------------------------------ // Check the permissions // ------------------------------------ ! $album_user_access = album_user_access($thispic['pic_cat_id'], $thiscat, 0, 0, 0, 1, 1, 0); ! ! if( ($album_user_access['comment'] == 0) or ($album_user_access['edit'] == 0) ) { ! if (!$userdata['session_logged_in']) { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); ! redirect(append_sid($phpbb_root_path ."login.$phpEx?redirect=album.php?smartor_mode=album_comment_edit&comment_id=$comment_id")); } else { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } else ! { ! if( (!$album_user_access['moderator']) or ($userdata['user_level'] != ADMIN) ) { ! if ($thiscomment['comment_user_id'] != $userdata['user_id']) { ! mx_message_die(GENERAL_ERROR, $lang['Not_Authorised']); } } } + /* +---------------------------------------------------------- *************** *** 172,176 **** */ ! if ( !isset( $HTTP_POST_VARS['comment'] ) ) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 189,194 ---- */ ! ! if( !isset($HTTP_POST_VARS['comment']) ) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *************** *** 178,245 **** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ ! if ( ( $thispic['pic_user_id'] == ALBUM_GUEST ) or ( $thispic['username'] == '' ) ) { ! $poster = ( $thispic['pic_username'] == '' ) ? $lang['Guest'] : $thispic['pic_username']; } else { ! $poster = '<a href="' . append_sid( $phpbb_root_path . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $thispic['user_id'] ) . '">' . $thispic['username'] . '</a>'; } // Start output of page ! $page_title = $lang['Album']; ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } - $template->set_filenames( array( 'body' => 'album_comment_body.tpl' ) ); ! $template->assign_block_vars( 'switch_comment_post', array() ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0 ! if ( defined( 'ALBUM_SP_CONFIG_TABLE' ) ) ! { ! $image_rating = ImageRating( $thispic['rating'] ); ! // begin shows smilies ! $max_smilies = 20; ! $sql = 'SELECT emoticon, code, smile_url ! FROM ' . SMILIES_TABLE . ' GROUP BY smile_url ORDER BY smilies_id LIMIT ' . $max_smilies; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve smilies list", '', __LINE__, __FILE__, $sql ); ! } ! $smilies_count = $db->sql_numrows( $result ); ! $smilies_data = $db->sql_fetchrowset( $result ); ! for ( $i = 1; $i < $smilies_count + 1; $i++ ) ! { ! $template->assign_block_vars( 'switch_comment_post.smilies', array( ! 'CODE' => $smilies_data[$i - 1]['code'], ! 'URL' => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smilies_data[$i - 1]['smile_url'], ! 'DESC' => $smilies_data[$i - 1]['emoticon'] ! ) ); ! if ( is_integer( $i / 5 ) ) ! $template->assign_block_vars( 'switch_comment_post.smilies.new_col', array() ); ! } ! } ! // --- changed $thiscat to $thispic ! $template->assign_vars( array( ! 'CAT_TITLE' => $thispic['cat_title'], ! 'U_VIEW_CAT' => append_sid( album_append_uid( this_smartor_mxurl( "smartor_mode=album_cat&cat_id=$cat_id" ) ) ), ! // --- Album Category Hierarchy : end ! 'U_THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=$pic_id" ) ), ! 'U_PIC' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=$pic_id", true ) ), 'PIC_TITLE' => $thispic['pic_title'], ! 'PIC_DESC' => nl2br( $thispic['pic_desc'] ), 'POSTER' => $poster, ! 'PIC_TIME' => create_date( $board_config['default_dateformat'], $thispic['pic_time'], $board_config['board_timezone'] ), 'PIC_VIEW' => $thispic['pic_view_count'], 'PIC_COMMENTS' => $total_comments, --- 196,266 ---- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ ! if( ($thispic['pic_user_id'] == ALBUM_GUEST) or ($thispic['username'] == '') ) { ! $poster = ($thispic['pic_username'] == '') ? $lang['Guest'] : $thispic['pic_username']; } else { ! $poster = '<a href="'. append_sid($phpbb_root_path ."profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thispic['user_id']) .'">'. $thispic['username'] .'</a>'; } + // // Start output of page ! // $page_title = $lang['Album']; ! if ( !$is_block ) ! { ! include($mx_root_path . 'includes/page_header.'.$phpEx); ! } ! $template->set_filenames(array( ! 'body' => 'album_comment_body.tpl') ! ); ! $template->assign_block_vars('switch_comment_post', array()); ! ! $image_rating = ImageRating($thispic['rating']); ! ! //begin shows smilies ! $max_smilies = 20; ! ! $sql = 'SELECT emoticon, code, smile_url ! FROM ' . SMILIES_TABLE . ' GROUP BY smile_url ORDER BY smilies_id LIMIT ' . $max_smilies; ! if (!$result = $db->sql_query($sql)) ! { ! mx_message_die(GENERAL_ERROR, "Couldn't retrieve smilies list", '', __LINE__, __FILE__, $sql); ! } ! $smilies_count = $db->sql_numrows($result); ! $smilies_data = $db->sql_fetchrowset($result); ! ! for ($i = 1; $i < $smilies_count+1; $i++) ! { ! $template->assign_block_vars('switch_comment_post.smilies', array( ! 'CODE' => $smilies_data[$i - 1]['code'], ! 'URL' => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smilies_data[$i - 1]['smile_url'], ! 'DESC' => $smilies_data[$i - 1]['emoticon'] ! )); ! ! if ( is_integer($i / 5) ) ! $template->assign_block_vars('switch_comment_post.smilies.new_col', array()); ! } ! ! $template->assign_vars(array( ! 'CAT_TITLE' => $thiscat['cat_title'], ! 'U_VIEW_CAT' => ($cat_id != PERSONAL_GALLERY) ? append_sid(this_smartor_mxurl("smartor_mode=album_cat&cat_id=$cat_id")) : append_sid(this_smartor_mxurl("smartor_mode=album_personal&user_id=$user_id")), ! ! 'U_THUMBNAIL' => append_sid(this_smartor_mxurl("smartor_mode=album_thumbnail&pic_id=$pic_id")), ! 'U_PIC' => append_sid(this_smartor_mxurl("smartor_mode=album_thumbnail&pic_id=$pic_id", TRUE)), 'PIC_TITLE' => $thispic['pic_title'], ! 'PIC_DESC' => nl2br($thispic['pic_desc']), 'POSTER' => $poster, ! 'PIC_TIME' => create_date($board_config['default_dateformat'], $thispic['pic_time'], $board_config['board_timezone']), 'PIC_VIEW' => $thispic['pic_view_count'], 'PIC_COMMENTS' => $total_comments, *************** *** 263,277 **** 'L_SUBMIT' => $lang['Submit'], ! 'S_ALBUM_ACTION' => append_sid( this_smartor_mxurl( "smartor_mode=album_comment_edit&comment_id=$comment_id" ) ) ! )); // Generate the page ! $template->pparse( 'body' ); - if ( !$is_block ) - { - include( $mx_root_path . 'includes/page_tail.' . $phpEx ); - } } else --- 284,301 ---- 'L_SUBMIT' => $lang['Submit'], ! 'S_ALBUM_ACTION' => append_sid(this_smartor_mxurl("smartor_mode=album_comment_edit&comment_id=$comment_id")) ! ) ! ); + // // Generate the page + // + $template->pparse('body'); ! if ( !$is_block ) ! { ! include($mx_root_path . 'includes/page_tail.'.$phpEx); ! } } else *************** *** 281,314 **** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ ! $comment_text = str_replace( "\'", "''", htmlspecialchars( substr( trim( $HTTP_POST_VARS['comment'] ), 0, $album_config['desc_length'] ) ) ); ! if ( empty( $comment_text ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Comment_no_text'] ); } // -------------------------------- // Prepare variables // -------------------------------- $comment_edit_time = time(); $comment_edit_user_id = $userdata['user_id']; // -------------------------------- // Update the DB // -------------------------------- ! $sql = "UPDATE " . ALBUM_COMMENT_TABLE . " SET comment_text = '$comment_text', comment_edit_time = '$comment_edit_time', comment_edit_count = comment_edit_count + 1, comment_edit_user_id = '$comment_edit_user_id' WHERE comment_id = '$comment_id'"; ! if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not update comment data', '', __LINE__, __FILE__, $sql ); } // -------------------------------- // Complete... now send a message to user // -------------------------------- - $template->assign_vars( array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&comment_id=$comment_id" ) ) . '#' . $comment_id . '">' ) ); ! $message = $lang['Stored'] . "<br /><br />" . sprintf( $lang['Click_view_message'], "<a href=\"" . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&comment_id=$comment_id" ) ) . "#$comment_id\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_album_index'], "<a href=\"" . append_sid( album_append_uid( this_smartor_mxurl() ) ) . "\">", "</a>" ); ! mx_message_die( GENERAL_MESSAGE, $message ); } ?> \ No newline at end of file --- 305,356 ---- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ ! $comment_text = str_replace("\'", "''", htmlspecialchars(substr(trim($HTTP_POST_VARS['comment']), 0, $album_config['desc_length']))); ! if( empty($comment_text) ) { ! mx_message_die(GENERAL_ERROR, $lang['Comment_no_text']); } + + // -------------------------------- // Prepare variables // -------------------------------- + $comment_edit_time = time(); $comment_edit_user_id = $userdata['user_id']; + + // -------------------------------- // Update the DB // -------------------------------- ! ! $sql = "UPDATE ". ALBUM_COMMENT_TABLE ." SET comment_text = '$comment_text', comment_edit_time = '$comment_edit_time', comment_edit_count = comment_edit_count + 1, comment_edit_user_id = '$comment_edit_user_id' WHERE comment_id = '$comment_id'"; ! if( !$result = $db->sql_query($sql) ) ... [truncated message content] |
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/templates/subSilver/admin Modified Files: 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_personal_body.tpl album_personal_cat_body.tpl album_personal_cat_delete_body.tpl album_personal_cat_new_body.tpl Added Files: album_admin_body_ext.tpl album_admin_otf.tpl album_config_clearcache_body.tpl album_config_personal_body.tpl Log Message: Index: album_personal_cat_new_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_personal_cat_new_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_personal_cat_new_body.tpl 5 Apr 2006 21:40:22 -0000 1.2 --- album_personal_cat_new_body.tpl 7 Jun 2007 20:13:37 -0000 1.3 *************** *** 25,36 **** </script> <form name="acp" action="{S_ALBUM_ACTION}" method="post" onSubmit="return checkCategoryID()"> - <table width="100%" height="99%" cellpadding="2" cellspacing="0"> - <tr> - <th class="thHead" align="left" > {L_TITLE} </th> - </tr> - </table> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> ! <td class="nav" width="100%"><span class="nav"><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> --- 25,43 ---- </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> *************** *** 111,115 **** <!-- END acp --> <tr> ! <td class="cat" 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> --- 118,122 ---- <!-- 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> Index: album_cat_body_debug.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_cat_body_debug.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_cat_body_debug.tpl 5 Apr 2006 21:40:22 -0000 1.2 --- album_cat_body_debug.tpl 7 Jun 2007 20:13:37 -0000 1.3 *************** *** 1,3 **** - <!-- Album Category Hierarchy : begin --> <h1>{L_ALBUM_CAT_TITLE}</h1> --- 1,2 ---- *************** *** 55,59 **** <!-- BEGIN switch_board_footer --> <tr> ! <td colspan="{INC_SPAN_ALL}" class="cat">'{INC_SPAN_ALL}' <input class="post" type="text" name="name[0]" /> <input type="submit" class="liteoption" name="addcategory[0]" value="{L_CREATE_CATEGORY}" /> --- 54,58 ---- <!-- 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}" /> *************** *** 63,66 **** </table> <input type="hidden" value="new" name="mode" /> ! </form> ! <!-- Album Category Hierarchy : end --> \ No newline at end of file --- 62,64 ---- </table> <input type="hidden" value="new" name="mode" /> ! </form> \ No newline at end of file Index: album_personal_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_personal_cat_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_personal_cat_body.tpl 5 Apr 2006 21:40:22 -0000 1.2 --- album_personal_cat_body.tpl 7 Jun 2007 20:13:37 -0000 1.3 *************** *** 1,12 **** <!-- Album Hierarchy - START --> <form method="post" name="acp" action="{S_ALBUM_ACTION}"> - <table width="100%" height="99%" cellpadding="2" cellspacing="0"> - <tr> - <th class="thHead" align="left" > {L_TITLE} </th> - </tr> - </table> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> ! <td class="nav" width="100%"><span class="nav"><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> --- 1,7 ---- <!-- 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> *************** *** 64,68 **** <!-- BEGIN switch_board_footer --> <tr> ! <td colspan="{INC_SPAN_ALL}" class="cat"> <input class="post" type="text" name="name[0]" /> <input type="submit" {DISABLE_CREATION} class="liteoption" name="addcategory[0]" value="{L_CREATE_CATEGORY}" /> --- 59,63 ---- <!-- 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}" /> --- 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> Index: album_auth_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_auth_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_auth_body.tpl 5 Apr 2006 21:40:22 -0000 1.2 --- album_auth_body.tpl 7 Jun 2007 20:13:36 -0000 1.3 *************** *** 42,46 **** <!-- 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> --- 42,46 ---- <!-- END grouprow --> <tr> ! <td class="catBottom" 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> --- 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" /> Index: album_cat_new_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_cat_new_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** album_cat_new_body.tpl 5 Apr 2006 21:40:22 -0000 1.3 --- album_cat_new_body.tpl 7 Jun 2007 20:13:37 -0000 1.4 *************** *** 16,25 **** <td class="row2"><textarea name="cat_desc" class="post" cols="50" rows="5">{S_CAT_DESC}</textarea></td> </tr> ! <!-- Album Category Hierarchy : begin --> <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> - <!-- Album Category Hierarchy : end --> <tr> <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> --- 16,30 ---- <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> *************** *** 54,61 **** </tr> <tr> ! <td class="cat" 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 /> --- 59,66 ---- </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 /> \ No newline at end of file --- 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_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> Index: album_cat_delete_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_cat_delete_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_cat_delete_body.tpl 5 Apr 2006 21:40:22 -0000 1.2 --- album_cat_delete_body.tpl 7 Jun 2007 20:13:37 -0000 1.3 *************** *** 4,23 **** <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="cat" 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> --- 4,23 ---- <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> Index: album_personal_cat_delete_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_personal_cat_delete_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_personal_cat_delete_body.tpl 5 Apr 2006 21:40:22 -0000 1.2 --- album_personal_cat_delete_body.tpl 7 Jun 2007 20:13:37 -0000 1.3 *************** *** 1,11 **** - <table width="100%" height="99%" cellpadding="2" cellspacing="0"> - <tr> - <th class="thHead" align="left" > {L_TITLE} </th> - </tr> - </table> - <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> ! <td class="nav" width="100%"><span class="nav"><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> --- 1,5 ---- <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> *************** *** 31,35 **** </tr> <tr> ! <td class="cat" 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> --- 25,29 ---- </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> Index: album_cat_select_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_cat_select_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_cat_select_body.tpl 9 Jan 2005 21:52:02 -0000 1.2 --- album_cat_select_body.tpl 7 Jun 2007 20:13:37 -0000 1.3 *************** *** 10,15 **** <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> --- 10,14 ---- <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> Index: album_config_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_config_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** album_config_body.tpl 5 Apr 2006 21:40:22 -0000 1.3 --- album_config_body.tpl 7 Jun 2007 20:13:37 -0000 1.4 *************** *** 9,182 **** </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_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_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_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_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> - <!-- Album Category Hierarchy : begin --> <tr> ! <td class="row1"><span class="genmed">{L_SHOW_RECENT_IN_SUBCATS}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {SHOW_RECENT_IN_SUBCATS_ENABLED} name="show_recent_in_subcats" value="1" />{L_YES} <input type="radio" {SHOW_RECENT_IN_SUBCATS_DISABLED} name="show_recent_in_subcats" value="0" />{L_NO}</span></td> </tr> <tr> ! <td class="row1"><span class="genmed">{L_SHOW_RECENT_INSTEAD_OF_NOPICS}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED} name="show_recent_instead_of_nopics" value="1" />{L_YES} <input type="radio" {SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED} name="show_recent_instead_of_nopics" value="0" />{L_NO}</span></td> </tr> <tr> ! <td class="row1"><span class="genmed">{L_ALBUM_CATEGORY_SORTING}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {ALBUM_CATEGORY_SORTING_ID} name="album_category_sorting" value="cat_id" />{L_ALBUM_CATEGORY_SORTING_ID} <input type="radio" {ALBUM_CATEGORY_SORTING_NAME} name="album_category_sorting" value="cat_title" />{L_ALBUM_CATEGORY_SORTING_NAME} <input type="radio" {ALBUM_CATEGORY_SORTING_ORDER} name="album_category_sorting" value="cat_order" />{L_ALBUM_CATEGORY_SORTING_ORDER}</span></td> </tr> <tr> ! <td class="row1"><span class="genmed">{L_ALBUM_CATEGORY_DIRECTION}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {ALBUM_CATEGORY_SORTING_ASC} name="album_category_sorting_direction" value="ASC" />{L_ALBUM_CATEGORY_SORTING_ASC} <input type="radio" {ALBUM_CATEGORY_SORTING_DESC} name="album_category_sorting_direction" value="DESC" />{L_ALBUM_CATEGORY_SORTING_DESC}</span></td> </tr> - <tr> - <td class="row1"><span class="genmed">{L_ALBUM_DEBUG_MODE}</span></td> - <td class="row2"><span class="genmed"><input type="radio" {ALBUM_DEBUG_MODE_ENABLED} name="album_debug_mode" value="1" />{L_YES} <input type="radio" {ALBUM_DEBUG_MODE_DISABLED} name="album_debug_mode" value="0" />{L_NO}</span></td> - </tr> <tr> ! <th class="thHead" colspan="2">{L_ALBUM_INDEX_SETTINGS}</th> </tr> <tr> ! <td class="row1"><span class="genmed">{L_SHOW_PERSONAL_GALLERY_LINK}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED} name="show_personal_gallery_link" value="1" />{L_YES} <input 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 type="radio" {INDEX_SHOW_SUBCATS_ENABLED} name="show_index_subcats" value="1" />{L_YES} <input 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 type="radio" {INDEX_LINEBREAK_ENABLED} name="line_break_subcats" value="1" />{L_YES} <input 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 type="radio" {INDEX_THUMB_ENABLED} name="show_index_thumb" value="1" />{L_YES} <input 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 type="radio" {INDEX_TOTAL_PICS_ENABLED} name="show_index_total_pics" value="1" />{L_YES} <input 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 type="radio" {INDEX_TOTAL_COMMENTS_ENABLED} name="show_index_total_comments" value="1" />{L_YES} <input 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 type="radio" {INDEX_LAST_COMMENT_ENABLED} name="show_index_last_comment" value="1" />{L_YES} <input 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 type="radio" {INDEX_LAST_PIC_ENABLED} name="show_index_last_pic" value="1" />{L_YES} <input 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 type="radio" {INDEX_COMMENTS_ENABLED} name="show_index_comments" value="1" />{L_YES} <input 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 type="radio" {INDEX_PICS_ENABLED} name="show_index_pics" value="1" />{L_YES} <input 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 class="post" type="text" 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_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> - <!-- Album Category Hierarchy : end --> - <!-- Album Category Hierarchy : begin --> <tr> ! <th class="thHead" colspan="2">{L_ALBUM_PERSONAL_GALLERY_SETTINGS}</th> </tr> <tr> ! <td class="row1"><span class="genmed">{L_PERSONAL_SHOW_ALL_PICS}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {PERSONAL_SHOW_ALL_PICS_ENABLED} name="show_all_in_personal_gallery" value="1" />{L_YES} <input 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 type="radio" {PERSONAL_SHOW_SUBCATS_ENABLED} name="personal_show_subcats_in_index" value="1" />{L_YES} <input 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 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_ALBUM_PERSONAL_MODERATOR}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {PERSONAL_MOD_ENABLED} name="personal_allow_gallery_mod" value="1" />{L_YES} <input 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_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_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_SUB_GALLERY_LIMIT}</span></td> ! ! <td class="row2"><input 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_GATTEGORY}</span></td> ! <td class="row2"><span class="genmed"><input type="radio" {PERSONAL_SUBCAT_ENABLED} name="personal_allow_sub_categories" value="1" />{L_YES} <input 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 type="radio" {PERSONAL_SHOW_RECENT_IN_SUBCATS_ENABLED} name="personal_show_recent_in_subcats" value="1" />{L_YES} <input 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 type="radio" {PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED} name="personal_show_recent_instead_of_nopics" value="1" />{L_YES} <input type="radio" {PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED} name="personal_show_recent_instead_of_nopics" value="0" />{L_NO}</span></td> </tr> - <!-- Album Category Hierarchy : end --> <tr> <th class="thHead" colspan="2">{L_THUMBNAIL_SETTINGS}</th> --- 9,190 ---- </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_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> *************** *** 225,249 **** </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> <th class="thHead" colspan="2">{L_EXTRA_SETTINGS}</th> </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="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> --- 233,275 ---- </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> <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> Index: album_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/admin/album_cat_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** album_cat_body.tpl 5 Apr 2006 21:40:22 -0000 1.3 --- album_cat_body.tpl 7 Jun 2007 20:13:36 -0000 1.4 *************** *** 1,3 **** - <!-- Album Category Hierarchy : begin --> <h1>{L_ALBUM_CAT_TITLE}</h1> --- 1,2 ---- *************** *** 13,17 **** <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> --- 12,16 ---- <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> *************** *** 56,60 **** <!-- BEGIN switch_board_footer --> <tr> ! <td colspan="{INC_SPAN_ALL}" class="cat"> <input class="post" type="text" name="name[0]" /> <input type="submit" {DISABLE_CREATION} class="liteoption" name="addcategory[0]" value="{L_CREATE_CATEGORY}" /> --- 55,59 ---- <!-- BEGIN switch_board_footer --> <tr> ! <td colspan="{INC_SPAN_ALL}" class="catBottom"> <input class="post" type="text" name="name[0]" /> <i... [truncated message content] |