You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(361) |
Oct
(65) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(798) |
Feb
(694) |
Mar
(586) |
Apr
(145) |
May
(24) |
Jun
(24) |
Jul
(56) |
Aug
(11) |
Sep
(138) |
Oct
(107) |
Nov
(58) |
Dec
(39) |
2004 |
Jan
(157) |
Feb
(24) |
Mar
(13) |
Apr
(14) |
May
(73) |
Jun
(106) |
Jul
(217) |
Aug
(91) |
Sep
(116) |
Oct
(357) |
Nov
(27) |
Dec
(272) |
2005 |
Jan
(97) |
Feb
(40) |
Mar
(167) |
Apr
(365) |
May
(344) |
Jun
(357) |
Jul
(407) |
Aug
(529) |
Sep
(204) |
Oct
(52) |
Nov
(80) |
Dec
(1) |
2006 |
Jan
(2) |
Feb
(1) |
Mar
(11) |
Apr
(112) |
May
(121) |
Jun
(86) |
Jul
(51) |
Aug
(48) |
Sep
(107) |
Oct
(20) |
Nov
(50) |
Dec
(11) |
2007 |
Jan
(7) |
Feb
(11) |
Mar
(8) |
Apr
(11) |
May
(2) |
Jun
(25) |
Jul
(67) |
Aug
(134) |
Sep
(54) |
Oct
(69) |
Nov
(10) |
Dec
(74) |
2008 |
Jan
(73) |
Feb
(81) |
Mar
(64) |
Apr
(98) |
May
(157) |
Jun
(68) |
Jul
(80) |
Aug
(108) |
Sep
(176) |
Oct
(107) |
Nov
(265) |
Dec
(60) |
2009 |
Jan
(149) |
Feb
(140) |
Mar
(195) |
Apr
(141) |
May
(53) |
Jun
(45) |
Jul
(98) |
Aug
(153) |
Sep
(160) |
Oct
(138) |
Nov
(139) |
Dec
(104) |
2010 |
Jan
(188) |
Feb
(259) |
Mar
(133) |
Apr
(104) |
May
(42) |
Jun
(121) |
Jul
(38) |
Aug
(223) |
Sep
(259) |
Oct
(255) |
Nov
(106) |
Dec
(157) |
2011 |
Jan
(202) |
Feb
(110) |
Mar
(261) |
Apr
(272) |
May
(218) |
Jun
(108) |
Jul
(141) |
Aug
(205) |
Sep
(326) |
Oct
(279) |
Nov
(368) |
Dec
(238) |
2012 |
Jan
(239) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dj...@us...> - 2012-01-20 18:21:42
|
Revision: 8766 http://xoops.svn.sourceforge.net/xoops/?rev=8766&view=rev Author: djculex Date: 2012-01-20 18:21:33 +0000 (Fri, 20 Jan 2012) Log Message: ----------- css + js in about.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/about.php Modified: XoopsModules/smallworld/trunk/smallworld/admin/about.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-20 18:21:05 UTC (rev 8765) +++ XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-20 18:21:33 UTC (rev 8766) @@ -23,7 +23,7 @@ xoops_cp_header(); global $xoTheme; -$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/SmallworldAdmin.css'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/css/SmallworldAdmin.css'); $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); $aboutAdmin = new ModuleAdmin(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 18:21:12
|
Revision: 8765 http://xoops.svn.sourceforge.net/xoops/?rev=8765&view=rev Author: djculex Date: 2012-01-20 18:21:05 +0000 (Fri, 20 Jan 2012) Log Message: ----------- adjusted styling etc in index.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/index.php Modified: XoopsModules/smallworld/trunk/smallworld/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-20 17:25:31 UTC (rev 8764) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-20 18:21:05 UTC (rev 8765) @@ -24,7 +24,11 @@ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); +global $xoTheme; +$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/css/SmallworldAdmin.css'); +$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); + $indexAdmin = new ModuleAdmin(); @@ -49,71 +53,105 @@ $sumallusers = $admin->TotalUsers (); // Find list of most active users (total) $maAllround = $admin->mostactiveusers_allround(); - $ma = "<table class='smallworldadmin'><tr>"; - $ma .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; - $i = 1; - while ($i < count($maAllround)-1) { - $ma .= vsprintf('<tr><td>%s</td>',array($maAllround['counter'][$i])); - $ma .= vsprintf('<td>%s</td>',array($maAllround['img'][$i])); - $ma .= vsprintf('<td>%s</td>',array($maAllround['cnt'][$i])); - $ma .= vsprintf('<td>%s</td></tr>',array($maAllround['from'][$i])); - $i++; - } - $ma .= "</tr></table>"; +$ma_cnt = 0; + if (count($maAllround) != 0) { + $ma_cnt = 1; + $ma = "<table class='smallworldadmin'><tr>"; + $ma .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($maAllround)-1) { + $ma .= vsprintf('<tr><td>%s</td>',array($maAllround['counter'][$i])); + $ma .= vsprintf('<td>%s</td>',array($maAllround['img'][$i])); + $ma .= vsprintf('<td>%s</td>',array($maAllround['cnt'][$i])); + $ma .= vsprintf('<td>%s</td></tr>',array($maAllround['from'][$i])); + $i++; + } + $ma .= "</tr></table>"; + } else { + $maAllround = 0; + } // Find list of most active users (24 hours) $maToday = $admin->mostactiveusers_today(); - $mat = "<table class='smallworldadmin'><tr>"; - $mat .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; - $i = 1; - while ($i < count($maToday)-1) { - $mat .= vsprintf('<tr><td>%s</td>',array($maToday['counter'][$i])); - $mat .= vsprintf('<td>%s</td>',array($maToday['img'][$i])); - $mat .= vsprintf('<td>%s</td>',array($maToday['cnt'][$i])); - $mat .= vsprintf('<td>%s</td></tr>',array($maToday['from'][$i])); - $i++; - } - $mat .= "</tr></table>"; +$mat_cnt = 0; + if (count($maToday) != 0) { + $mat_cnt = 1; + $mat = "<table class='smallworldadmin'><tr>"; + $mat .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($maToday)-1) { + $mat .= vsprintf('<tr><td>%s</td>',array($maToday['counter'][$i])); + $mat .= vsprintf('<td>%s</td>',array($maToday['img'][$i])); + $mat .= vsprintf('<td>%s</td>',array($maToday['cnt'][$i])); + $mat .= vsprintf('<td>%s</td></tr>',array($maToday['from'][$i])); + $i++; + } + $mat .= "</tr></table>"; + } else { + $mat = 0; + } // FInd list of best rated users overall $topusers = $admin->topratedusers('up'); - $top = "<table class='smallworldadmin'><tr>"; - $top .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; - $i = 1; - while ($i < count($topusers)-1) { - $top .= vsprintf('<tr><td>%s</td>',array($topusers['counter'][$i])); - $top .= vsprintf('<td>%s</td>',array($topusers['img'][$i])); - $top .= vsprintf('<td>%s</td>',array($topusers['cnt'][$i])); - $top .= vsprintf('<td>%s</td></tr>',array($topusers['user'][$i])); - $i++; - } - $top .= "</tr></table>"; +$top_cnt = 0; + if (count($topusers) != 0) { + $top_cnt = 1; + $top = "<table class='smallworldadmin'><tr>"; + $top .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($topusers)-1) { + $top .= vsprintf('<tr><td>%s</td>',array($topusers['counter'][$i])); + $top .= vsprintf('<td>%s</td>',array($topusers['img'][$i])); + $top .= vsprintf('<td>%s</td>',array($topusers['cnt'][$i])); + $top .= vsprintf('<td>%s</td></tr>',array($topusers['user'][$i])); + $i++; + } + $top .= "</tr></table>"; + } else { + $top = 0; + } // FInd list of worst rated users overall $lowusers = $admin->topratedusers('down'); - $low = "<table class='smallworldadmin'><tr>"; - $low .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; - $i = 1; - while ($i < count($lowusers)-1) { - $low .= vsprintf('<tr><td>%s</td>',array($lowusers['counter'][$i])); - $low .= vsprintf('<td>%s</td>',array($lowusers['img'][$i])); - $low .= vsprintf('<td>%s</td>',array($lowusers['cnt'][$i])); - $low .= vsprintf('<td>%s</td></tr>',array($lowusers['user'][$i])); - $i++; - } - $low .= "</tr></table>"; +$low_cnt = 0; + if (count($lowusers) != 0) { + $low_cnt = 1; + $low = "<table class='smallworldadmin'><tr>"; + $low .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i <= count(array($lowusers))) { + $low .= vsprintf('<tr><td>%s</td>',array($lowusers['counter'][$i])); + $low .= vsprintf('<td>%s</td>',array($lowusers['img'][$i])); + $low .= vsprintf('<td>%s</td>',array($lowusers['cnt'][$i])); + $low .= vsprintf('<td>%s</td></tr>',array($lowusers['user'][$i])); + $i++; + } + $low .= "</tr></table>"; + } else { + $low = 0; + } $indexAdmin->addInfoBox(_AM_SMALLWORLD_USERSTATS); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<span style='smallworldadmin_tab_container'><p class='smallworldadmin'>"._AM_SMALLWORLD_DATEOFFIRSTMESSAGE." : %s</p>",$dateoffirstmessage,'Green','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_DATEOFFIRSTMESSAGE." : %s</p>",$dateoffirstmessage,'Green','default'); $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOTALUSERS." : %s</p>",$sumallusers, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_AVERAGEMSGPERDAY." : %s</p>", $avgperday, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS_TODAY." : %s</p>", $mat, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS." : %s</p>", $ma, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPRATEDUSERS." : %s</p>", $top, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_BOTTOMRATEDUSERS." : %s</p></span>", $low, 'Red','default'); +if ($avgperday > 0) { + $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_AVERAGEMSGPERDAY." : %s</p>", $avgperday, 'Red','default'); +} +if ($mat_cnt != 0 ) { + $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS_TODAY." : %s</p>", $mat, 'Red','default'); +} +if ($ma_cnt != 0 ) { + $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS." : %s</p>", $ma, 'Red','default'); +} +if ($top_cnt != 0 ) { + $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPRATEDUSERS." : %s</p>", $top, 'Red','default'); +} +if ($low_cnt != 0 ) { +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_BOTTOMRATEDUSERS." : %s</p>", $low, 'Red','default'); +} echo $indexAdmin->addNavigation('index.php'); echo $indexAdmin->renderIndex(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 17:25:42
|
Revision: 8764 http://xoops.svn.sourceforge.net/xoops/?rev=8764&view=rev Author: djculex Date: 2012-01-20 17:25:31 +0000 (Fri, 20 Jan 2012) Log Message: ----------- updated danish files - translation later Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php XoopsModules/smallworld/trunk/smallworld/language/danish/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.ui.datepicker-language.js XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-20 17:21:51 UTC (rev 8763) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-20 17:25:31 UTC (rev 8764) @@ -40,7 +40,7 @@ define('_AM_SMALLWORLD_MODULEINFO','Module info'); define('_AM_SMALLWORLD_USERSTATS','User stats'); define('_AM_SMALLWORLD_NONEYET','No messages in database'); -define('_AM_SMALLWORLD_NO','no'); +define('_AM_SMALLWORLD_NO','none'); define('_AM_SMALLWORLD_THEREARE','There are'); define('_AM_SMALLWORLD_UPDATE_STATUS','Status of your Smallworld version:'); @@ -71,53 +71,10 @@ define('_AM_SMALLWORLD_UPDATE_YOUHAVENEWESTVERSION','You have the newest version of Smallworld'); define('_AM_SMALLWORLD_HELP','Help'); define('_AM_SMALLWORLD_ADMIN_USERDELETEDALERT',' and associated folders, files and table rows has been deleted'); +define('_AM_SMALLWORLD_STATS_POS','#'); +define('_AM_SMALLWORLD_STATS_NAME','Name'); +define('_AM_SMALLWORLD_STATS_AMOUNT','Amount'); +define('_AM_SMALLWORLD_STATS_IMG','Icon'); -//Help section -define('_AM_SMALLWORLD_HELP_ABOUT','About Smallworld'); -define('_AM_SMALLWORLD_HELP_PREFACE','Smallworld is a Social Network system. Inspired by the Srinivas Tamada tutorials on fecebook scripting. The base system has been re-written, adapted, and heavily expanded for XOOPS by Culex<br/>The module is featuring like/dislike, bookmarking, wall system, image gallery, and is using XIM if installed. The admin side is featuring deleting users, banning users based on time. A countdown is shown on user side to when it\'s back.. And many more features. It is fully supported by XOOPS version 2.5.0 and higher.<br/>Smallworld is released under the terms of the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License (GPL)</a> and is free to use and modify. It is free to redistribute as long as you abide by the distribution terms of the GPL.'); -define('_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS','Requirements'); -define('_AM_SMALLWORLD_HELP_REQUIREMENTS','<ul class="help"> - <li>WWW Server (<a href="http://www.apache.org/" target="_blank">Apache</a>, IIS, Roxen, etc)</li> - <li><a href="http://www.xoops.org/" target="_blank">XOOPS</a> 2.4.0 or higher as Smallworld uses preloads</li> - <li><a href="http://www.php.net/" target="_blank">PHP</a> 5.2.0 or higher.</li> - <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 4 or higher (5 or higher recommended)</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED','Recommended for testing Smallworld'); -define('_AM_SMALLWORLD_HELP_RECOMMENDED','<ul class="help"> - <li>Browser <a href="http://www.mozilla.com" target"_blank">Firefox</a> and the Firefox plugin <a href="https://addons.mozilla.org/en-US/firefox/downloads/latest/1843/addon-1843-latest.xpi" target="_blank">FireBug plugin (latest version)</a></li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_INSTALLATION','How to install'); -define('_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL','<ul class="help"> - <li>Check to see if the downloaded Smallworld version is the latest released version.</li> - <li>Turn cookie and JavaScript of your browser on.</li> - </ul>'); - -define('_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM','Installing on a hosted platform'); -define('_AM_SMALLWORLD_HELP_HOSTED_PLATFORM','<ul class="help"> - <li>Upload the unzipped folder Smallworld to your module directory.</li> - <li>Install using XOOPS module install as any other module installation.</li> - <li>Make the block visible for the user groups you want to see the block (admin/moderators etc etc).</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_UPGRADING','Upgrading from a previous version'); -define('_AM_SMALLWORLD_HELP_UPGRADING','<ul class="help"> - <li>Make sure you are using newest version</li> - <li>Read the readme.txt in archive</li> - <li>Maybe do a backup of your tables</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_FAQ','Problem solving'); -define('_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1','I get blank page, can\'t click username, The block does not show.......'); -define('_AM_SMALLWORLD_HELP_COMMENPROBLEMS1','<ul class="help"> - <li>Make sure your Xoops version is > 2.4.0. Older versions of Xoops don\'t have preloads, which are required.</li> - <li>Turn on debug and check to see if any errors emerge.</li> - <li>Using FireFox, right click on the screen, choose inspect element, choose console in the tabs and check to see if any errors<br/></li> - <li>If no errors, use Firebug (Right click->inspect element->console) and see if there are any jQuery errors.</li> - <li>If there are no jQuery errors. Clean caches-> module update Smallworld, system modules.</li> - <li>If the page is still blank, Go to your protector module -> settings and write smallworld in the form "Modules out of Dos / Crawler checker".</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_CONTACTS','Ask question'); -define('_AM_SMALLWORLD_HELP_OTHERHELP','<ul class="help"> - <li>If still questions or errors please post at the <a href="http://www.xoops.org/modules/newbb" target="_blank">Xoops support Forum</a></li> - </ul> - '); -define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake by buying me a coffee</a>'); +define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;vertical-align: middle;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake by buying me a coffee</a>'); define('_AM_SMALLWORLD_FOOTER', "<div class='center smallsmall italic pad5'>Module SmallWorld is maintained by <a class='tooltip' rel='external' href='http://culex.dk/' title='Visit my Website'>Culex</a></div>"); \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/index.html =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/index.html 2012-01-20 17:21:51 UTC (rev 8763) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/index.html 2012-01-20 17:25:31 UTC (rev 8764) @@ -1 +1 @@ - <script>history.go(-1);</script> \ No newline at end of file +<script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.ui.datepicker-language.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.ui.datepicker-language.js 2012-01-20 17:21:51 UTC (rev 8763) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.ui.datepicker-language.js 2012-01-20 17:25:31 UTC (rev 8764) @@ -1,23 +1,23 @@ -/* Danish initialisation for the jQuery UI date picker plugin. */ -/* Written by Jan Christensen ( del...@gm...). */ -jQuery(function($){ - $.datepicker.regional['da'] = { - closeText: 'Luk', - prevText: '<Forrige', - nextText: 'Næste>', - currentText: 'Idag', - monthNames: ['Januar','Februar','Marts','April','Maj','Juni', - 'Juli','August','September','Oktober','November','December'], - monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', - 'Jul','Aug','Sep','Okt','Nov','Dec'], - dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], - dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], - dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], - weekHeader: 'Uge', - dateFormat: 'dd-mm-yy', +/* English/UK initialisation for the jQuery UI date picker plugin. */ +/* Written by Stuart. */ +jQuery(function(xoops_smallworld){ + xoops_smallworld.datepicker.regional['en-GB'] = { + closeText: 'Done', + prevText: 'Prev', + nextText: 'Next', + currentText: 'Today', + monthNames: ['January','February','March','April','May','June', + 'July','August','September','October','November','December'], + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['da']); + xoops_smallworld.datepicker.setDefaults(xoops_smallworld.datepicker.regional['en-GB']); }); Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php 2012-01-20 17:21:51 UTC (rev 8763) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php 2012-01-20 17:25:31 UTC (rev 8764) @@ -52,6 +52,9 @@ define ("_MI_SMALLWORLD_BOOKMARSAVATARS","Use Smallworld Logo when bookmarking ? "); define ("_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC","When posts are public and you want to share on social networks. You can here descide weather to use<br>smallworld logo as shared image or 'no' = the posting users avatar.<br><br>Default is 'yes' = smallworld logo."); +define ("_MI_SMALLWORLD_USEMAILNOTIFICATION","Use mail notifications ? "); +define ("_MI_SMALLWORLD_USEMAILNOTIFICATION_DESC","When new user register a mail is sent to admin, or when a comment is added to a post where user is part a mail is sent to user.<br><br>Default is 'yes'"); + // Select fields & Mandetory fields define ('_MI_SMALLWORLD_VIEWFIELDS','Use fields in registration and profile'); define ('_MI_SMALLWORLD_VIEWFIELDS_DESC','Select fields to use in registration form and in profile viewing<br>Use control + mouse to multiselect'); @@ -59,6 +62,7 @@ define ('_MI_SMALLWORLD_VERIFYFIELDS_DESC','Select (*) mandatory fields in registration form<br>Use control + mouse to multiselect'); define ('_MI_SMALLWORLD_REALNAME','Real name'); +define ('_MI_SMALLWORLD_GENDER','Gender'); define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); define ('_MI_SMALLWORLD_RELATIONSHIPSTATUS','relationship status'); define ('_MI_SMALLWORLD_PARTNER','Partner'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 17:22:00
|
Revision: 8763 http://xoops.svn.sourceforge.net/xoops/?rev=8763&view=rev Author: djculex Date: 2012-01-20 17:21:51 +0000 (Fri, 20 Jan 2012) Log Message: ----------- malformed array in user.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/class/user.php Modified: XoopsModules/smallworld/trunk/smallworld/class/user.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/class/user.php 2012-01-20 17:12:27 UTC (rev 8762) +++ XoopsModules/smallworld/trunk/smallworld/class/user.php 2012-01-20 17:21:51 UTC (rev 8763) @@ -97,7 +97,7 @@ function following_or ($userid, $friendid) { global $xoopsDB,$xoopsUser; - //$respons = 2; + $respons[0] = 0; if ($userid != $friendid) { $sql = "SELECT * FROM ".$xoopsDB->prefix('smallworld_followers')." WHERE me = '".intval($userid)."' AND you = '".intval($friendid)."'"; $result = $xoopsDB->query($sql); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 17:12:33
|
Revision: 8762 http://xoops.svn.sourceforge.net/xoops/?rev=8762&view=rev Author: djculex Date: 2012-01-20 17:12:27 +0000 (Fri, 20 Jan 2012) Log Message: ----------- amin adjustments Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php Removed Paths: ------------- XoopsModules/smallworld/trunk/smallworld/css/base/images/Thumbs.db XoopsModules/smallworld/trunk/smallworld/css/ui-lightness/images/Thumbs.db Modified: XoopsModules/smallworld/trunk/smallworld/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-20 17:04:28 UTC (rev 8761) +++ XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-20 17:12:27 UTC (rev 8762) @@ -103,9 +103,9 @@ $result = $xoopsDB->queryF($sql); $counter = $xoopsDB->getRowsNum($result); - if ($counter == 1) { - $msg['cnt'][1] = _AM_SMALLWORLD_NO; - $msg['uid_fk'][1] = _AM_SMALLWORLD_THEREARE; + if ($counter < 1) { + $msg['cnt'][1] = _AM_SMALLWORLD_THEREARE; + $msg['uid_fk'][1] = _AM_SMALLWORLD_NO; //$xoopsTpl->append('topuser', $msg); } else { $msg = array(); @@ -151,8 +151,8 @@ $i++; } } else { - $msgtoday['cnt'][1] = _AM_SMALLWORLD_NO; - $msgtoday['from'][1] = _AM_SMALLWORLD_THEREARE; + $msgtoday['cnt'][1] = _AM_SMALLWORLD_THEREARE; + $msgtoday['from'][1] = _AM_SMALLWORLD_NO; } return $msgtoday; } Deleted: XoopsModules/smallworld/trunk/smallworld/css/base/images/Thumbs.db =================================================================== (Binary files differ) Deleted: XoopsModules/smallworld/trunk/smallworld/css/ui-lightness/images/Thumbs.db =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 17:04:34
|
Revision: 8761 http://xoops.svn.sourceforge.net/xoops/?rev=8761&view=rev Author: djculex Date: 2012-01-20 17:04:28 +0000 (Fri, 20 Jan 2012) Log Message: ----------- New items to xoops_version admin settings Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/xoops_version.php Modified: XoopsModules/smallworld/trunk/smallworld/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/xoops_version.php 2012-01-20 17:00:46 UTC (rev 8760) +++ XoopsModules/smallworld/trunk/smallworld/xoops_version.php 2012-01-20 17:04:28 UTC (rev 8761) @@ -25,11 +25,12 @@ $modversion['author'] = "Michael Albertsen"; $modversion['nickname'] = 'Culex'; $modversion['credits'] = "Mariane, Mrsculex, Mamba, Rune"; -$modversion['website'] = 'www.culex.dk'; -$modversion['name_website'] = 'Culex.dk'; +$modversion['module_website_name'] = 'www.culex.dk'; +$modversion['module_website_url'] = 'http://www.culex.dk'; $modversion['license'] = 'GNU GPL'; $modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/'; $modversion['status_version'] = 'RC'; +$modversion['module_status'] = 'Release Candidate'; $modversion['release_date'] = '2011/12/24'; $modversion['help'] = 'page=help'; $modversion['min_php'] = '5.2'; @@ -49,7 +50,7 @@ // Menu $modversion['hasMain'] = 1; -$modversion['adminindex'] = "admin/moduleinfo.php"; +$modversion['adminindex'] = "admin/index.php"; $modversion['adminmenu'] = "admin/menu.php"; $modversion['sqlfile']['mysql'] = "sql/mysql.sql"; @@ -145,7 +146,7 @@ $modversion['config'][$i]['description'] = '_MI_SMALLWORLD_TAKEOVERLINKS_DESC'; $modversion['config'][$i]['formtype'] = 'yesno'; $modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = 0; +$modversion['config'][$i]['default'] = 1; $i++; $modversion['config'][$i]['name'] = 'usersownpostscount'; @@ -161,9 +162,17 @@ $modversion['config'][$i]['description'] = '_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC'; $modversion['config'][$i]['formtype'] = 'yesno'; $modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = 0; +$modversion['config'][$i]['default'] = 1; $i++; +$modversion['config'][$i]['name'] = 'smallworldusemailnotification'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_USEMAILNOTIFICATION'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_USEMAILNOTIFICATION_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; + +$i++; $modversion['config'][$i]['name'] = 'smallworldusethesefields'; $modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VIEWFIELDS'; $modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VIEWFIELDS_DESC'; @@ -195,6 +204,7 @@ '_MI_SMALLWORLD_EDUCATION' => 'education', '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); $modversion['config'][$i]['default'] = array( 'realname', + 'gender', 'interestedin', 'relationshipstatus', 'partner', @@ -228,6 +238,7 @@ $modversion['config'][$i]['formtype'] = 'select_multi'; $modversion['config'][$i]['valuetype'] = 'array'; $modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', + '_MI_SMALLWORLD_GENDER' => 'gender', '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', '_MI_SMALLWORLD_RELATIONSHIPSTATUS' => 'relationshipstatus', '_MI_SMALLWORLD_PARTNER' => 'partner', @@ -253,29 +264,16 @@ '_MI_SMALLWORLD_EDUCATION' => 'education', '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); $modversion['config'][$i]['default'] = array( 'realname', + 'gender', 'interestedin', 'relationshipstatus', - 'partner', 'lookingfor', 'birthday', 'birthplace', - 'politicalview', - 'religiousview', 'emails', 'screennames', - 'mobile', - 'landphone', 'streetadress', 'presentcity', - 'country', - 'website', - 'interests', - 'favouritemusic', - 'favouritetvshows', - 'favouritemovies', - 'favouritebooks', - 'aboutme', - 'education', - 'employment'); + 'country'); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 17:00:57
|
Revision: 8760 http://xoops.svn.sourceforge.net/xoops/?rev=8760&view=rev Author: djculex Date: 2012-01-20 17:00:46 +0000 (Fri, 20 Jan 2012) Log Message: ----------- Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php XoopsModules/smallworld/trunk/smallworld/admin/main.php Added: XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php 2012-01-20 17:00:46 UTC (rev 8760) @@ -0,0 +1,44 @@ +<?php +/** +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/xoops_version.php $ +* @Last committed: $Revision: 8707 $ +* @Last changed by: $Author: djculex $ +* @Last changed date: $Date: 2012-01-13 09:40:50 +0100 (fr, 13 jan 2012) $ +* @ID: $Id: xoops_version.php 8707 2012-01-13 08:40:50Z djculex $ +**/ + + include '../../../mainfile.php'; + include_once XOOPS_ROOT_PATH.'/class/xoopsmodule.php'; + include XOOPS_ROOT_PATH.'/include/cp_functions.php'; + if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("smallworld"); + + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",2,_NOPERM); + exit(); + } + } + else { + redirect_header(XOOPS_URL."/",2,_NOPERM); + exit(); + } + + if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) { + include("../language/".$xoopsConfig['language']."/admin.php"); + } + else { + include("../language/english/admin.php"); + } +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/admin/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/main.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/main.php 2012-01-20 17:00:46 UTC (rev 8760) @@ -0,0 +1,183 @@ +<?php +/** +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/xoops_version.php $ +* @Last committed: $Revision: 8707 $ +* @Last changed by: $Author: djculex $ +* @Last changed date: $Date: 2012-01-13 09:40:50 +0100 (fr, 13 jan 2012) $ +* @ID: $Id: xoops_version.php 8707 2012-01-13 08:40:50Z djculex $ +**/ + +require_once 'admin_header.php'; +require_once '../../../include/cp_header.php'; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +require_once XOOPS_ROOT_PATH . '/class/template.php'; +if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} +$xoopsTpl->xoops_setCaching(0); + +xoops_cp_header(); + +if (isset($_POST['xim_admin_message'])) {$_POST['xim_admin_message'] = '';} + +$admin = new SmallworldAdmin(); +$tpl = new XoopsTpl(); + +$ai = array(); +$ani = array(); + +// --------------- First tab in admin --------------- +// Find oldest message and apply to template +$dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); +// Get days number +$totaldays = $admin->CountDays(); +// get average messages per day +$avgperday = $admin->AvgMsgDay ($totaldays); +// XIM version number +$installversion = $admin->ModuleInstallVersion (); +// XIM install date +$installdate = $admin->ModuleInstallDate (); + +//check current version of XIM, return desc,link,version if new available +$installCheck = $admin->doCheckUpdate (); + +// Count members using XIM +$sumallusers = $admin->TotalUsers (); +// Find list of most active users (total) +$admin->mostactiveusers_allround(); +// Find list of most active users (24 hours) +$admin->mostactiveusers_today(); + +// FInd list of best rated users overall +$admin->topratedusers('up'); + +// FInd list of worst rated users overall +$admin->topratedusers('down'); + +$allusers_inspect = $admin->getAllUsers('yes'); + if (!empty($allusers_inspect)) { + foreach ($allusers_inspect as $data) { + $ai['id'] = $data['id']; + $ai['userid'] = $data['userid']; + $ai['username'] = $data['username']; + $ai['realname'] = $data['realname']; + $ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ai['ip'] = $data['ip']; + $ai['complaint'] = $data['complaint']; + $ai['inspect_start'] = $data['inspect_start']; + $ai['inspect_stop'] = $data['inspect_stop']; + $ai['userinspect_timetotal'] = ($data['inspect_start'] + $data['inspect_stop'])-time(); + $xoopsTpl->append('allusersinspect', $ai); + } + } + $xoopsTpl->assign('allusersinspectcounter',count($ai)); + +$allusers_noinspect = $admin->getAllUsers('no'); + if (!empty($allusers_noinspect)) { + foreach ($allusers_noinspect as $data) { + $ani['id'] = $data['id']; + $ani['userid'] = $data['userid']; + $ani['username'] = $data['username']; + $ani['realname'] = $data['realname']; + $ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ani['ip'] = $data['ip']; + $ani['complaint'] = $data['complaint']; + $ani['inspect_start'] = ''; + $ani['inspect_stop'] = ''; + $ani['userinspect_timetotal'] = ''; + $xoopsTpl->append('allusersnoinspect', $ani); + } + } + $xoopsTpl->assign('allusersnoinspectcounter',count($ani)); +// ---------------- end of tabs ---------------- // + +// template assignments + // tab titles + $xoopsTpl->assign('lang_statistics', _AM_SMALLWORLD_STATISTICS_TITLE); + $xoopsTpl->assign('lang_moduleinfo', _AM_SMALLWORLD_MODULEINFO); + $xoopsTpl->assign('lang_userstats', _AM_SMALLWORLD_USERSTATS); + $xoopsTpl->assign('lang_installversion', _AM_SMALLWORLD_MODULEINSTALL); + $xoopsTpl->assign('lang_installversion_status', _AM_SMALLWORLD_UPDATE_STATUS); + $xoopsTpl->assign('lang_installdate', _AM_SMALLWORLD_INSTALLDATE); + $xoopsTpl->assign('lang_dateoffirstmessage', _AM_SMALLWORLD_DATEOFFIRSTMESSAGE); + $xoopsTpl->assign('lang_totalusers', _AM_SMALLWORLD_TOTALUSERS); + $xoopsTpl->assign('lang_averagemsgperday', _AM_SMALLWORLD_AVERAGEMSGPERDAY); + $xoopsTpl->assign('lang_topchatters',_AM_SMALLWORLD_TOPCHATTERS); + $xoopsTpl->assign('lang_topchatterstoday',_AM_SMALLWORLD_TOPCHATTERS_TODAY); + $xoopsTpl->assign('lang_toprated',_AM_SMALLWORLD_TOPRATEDUSERS); + $xoopsTpl->assign('lang_bottomrated',_AM_SMALLWORLD_BOTTOMRATEDUSERS); + $xoopsTpl->assign('lang_useradmin',_AM_SMALLWORLD_USERADMIN_TITLE); + $xoopsTpl->assign('lang_help',_AM_SMALLWORLD_HELP); + $xoopsTpl->assign('lang_prefs',_MI_SYSTEM_ADMENU6); + $xoopsTpl->assign('lang_prefslink',"<a href='../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule ->getVar('mid')."'>"._MI_SYSTEM_ADMENU6."</a>"); + + // help file from admin + $xoopsTpl->assign('lang_hlp_about',_AM_SMALLWORLD_HELP_ABOUT); + $xoopsTpl->assign('lang_hlp_preface',_AM_SMALLWORLD_HELP_PREFACE); + $xoopsTpl->assign('lang_hlp_requirements_t',_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS); + $xoopsTpl->assign('lang_hlp_requirements',_AM_SMALLWORLD_HELP_REQUIREMENTS); + $xoopsTpl->assign('lang_hlp_recommended_t',_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED); + $xoopsTpl->assign('lang_hlp_recommended',_AM_SMALLWORLD_HELP_RECOMMENDED); + $xoopsTpl->assign('lang_hlp_installation_t',_AM_SMALLWORLD_HELP_HEADER_INSTALLATION); + $xoopsTpl->assign('lang_hlp_firsttime',_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL); + $xoopsTpl->assign('lang_hlp_hostedplatform_t',_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM); + $xoopsTpl->assign('lang_hlp_hostedplatform',_AM_SMALLWORLD_HELP_HOSTED_PLATFORM); + $xoopsTpl->assign('lang_hlp_upgrading_t',_AM_SMALLWORLD_HELP_HEADER_UPGRADING); + $xoopsTpl->assign('lang_hlp_upgrading',_AM_SMALLWORLD_HELP_UPGRADING); + $xoopsTpl->assign('lang_hlp_faq_t',_AM_SMALLWORLD_HELP_HEADER_FAQ); + $xoopsTpl->assign('lang_hlp_commen1_t',_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1); + $xoopsTpl->assign('lang_hlp_commen1',_AM_SMALLWORLD_HELP_COMMENPROBLEMS1); + $xoopsTpl->assign('lang_hlp_contacts_t',_AM_SMALLWORLD_HELP_HEADER_CONTACTS); + $xoopsTpl->assign('lang_hlp_otherhelp',_AM_SMALLWORLD_HELP_OTHERHELP); + $xoopsTpl->assign('installversion', $installversion); + $xoopsTpl->assign('installdate', $installdate); + $xoopsTpl->assign('installversion_status',$installCheck); + $xoopsTpl->assign('dateoffirstmessage', $dateoffirstmessage); + $xoopsTpl->assign('totalusers', $sumallusers); + $xoopsTpl->assign('averagemsgperday', $avgperday); + $xoopsTpl->display('db:smallworld_admin.html'); + + global $xoTheme; + //Check Language + $lang = $xoopsConfig['language']; + // GET various variables from language folder + if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/variables.js')) { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/variables.js'); + } else { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/variables.js'); + } + +$adminscript= <<<SCRIPT + var smallworld_url="XOOPS_URL/modules/smallworld/"; + var $ = jQuery(); +SCRIPT; + $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); + $xoTheme->addScript(XOOPS_URL.'/browse.php?Frameworks/jquery/jquery.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery-ui-1.8.11.custom.js'); + $xoTheme->addScript('modules/smallworld/js/smallworld_tabs.js'); + $xoTheme->addScript('','',$adminscript); + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.form.js'); + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.countdown.js'); + if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/jquery.ui.datepicker-language.js')) { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.ui.datepicker-language.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.countdown.js'); + } else { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.ui.datepicker-language.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.countdown.js'); + } + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); + +xoops_cp_footer(); +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-20 16:59:13
|
Revision: 8759 http://xoops.svn.sourceforge.net/xoops/?rev=8759&view=rev Author: djculex Date: 2012-01-20 16:59:04 +0000 (Fri, 20 Jan 2012) Log Message: ----------- Admin changes + applying statistics on index.php page thus deleting statistics.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/about.php XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php XoopsModules/smallworld/trunk/smallworld/admin/index.php XoopsModules/smallworld/trunk/smallworld/admin/index0.php XoopsModules/smallworld/trunk/smallworld/admin/menu.php XoopsModules/smallworld/trunk/smallworld/class/adminclass.php XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php XoopsModules/smallworld/trunk/smallworld/language/danish/main.php XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php XoopsModules/smallworld/trunk/smallworld/language/english/admin.php XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php Removed Paths: ------------- XoopsModules/smallworld/trunk/smallworld/admin/index.html XoopsModules/smallworld/trunk/smallworld/admin/statistics.php Property Changed: ---------------- XoopsModules/smallworld/trunk/smallworld/admin/about.php XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php XoopsModules/smallworld/trunk/smallworld/admin/help.php XoopsModules/smallworld/trunk/smallworld/admin/index0.php XoopsModules/smallworld/trunk/smallworld/admin/moduleinfo.php XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt XoopsModules/smallworld/trunk/smallworld/docs/credits.txt XoopsModules/smallworld/trunk/smallworld/docs/install.txt XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt XoopsModules/smallworld/trunk/smallworld/docs/licence.txt XoopsModules/smallworld/trunk/smallworld/docs/readme.txt XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php XoopsModules/smallworld/trunk/smallworld/language/danish/help/help.html XoopsModules/smallworld/trunk/smallworld/language/danish/help/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_attencionneeded.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_complaint.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_newcomment.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_register.html XoopsModules/smallworld/trunk/smallworld/language/danish/main.php XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php XoopsModules/smallworld/trunk/smallworld/language/english/help/help.html XoopsModules/smallworld/trunk/smallworld/language/english/help/index.html XoopsModules/smallworld/trunk/smallworld/templates/admin_help.html XoopsModules/smallworld/trunk/smallworld/templates/admin_moduleinfo.html XoopsModules/smallworld/trunk/smallworld/templates/admin_statistics.html XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html Modified: XoopsModules/smallworld/trunk/smallworld/admin/about.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -1,29 +1,36 @@ <?php /** - * Birthday module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) - * @package birthday - * @since 2.5.0 - * @author XOOPS Module Team - * @version $Id $ - **/ +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ +**/ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); +global $xoTheme; +$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/SmallworldAdmin.css'); +$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderAbout('WKFZBRBGMYKCA', false); +echo $aboutAdmin->renderAbout('', false); + + include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/about.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -7,12 +7,16 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * -* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license http://www.fsf.org/copyleft/gpl.html GNU public license -* @package modules -* @subpackage Small World -* @since 1.0.0 -* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ echo "<div class='adminfooter'>\n" Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -1,28 +1,28 @@ <?php /** - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright : The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license : http://www.fsf.org/copyleft/gpl.html GNU public license - * @module : Smallworld - * @Author : Michael Albertsen (http://culex.dk) <cu...@cu...> - * @copyright : 2011 Culex - * @Repository path: $HeadURL$ - * @Last committed: $Revision$ - * @Last changed by: $Author$ - * @Last changed date: $Date$ - * @ID : $Id$ - **/ +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ +**/ $path = dirname(dirname(dirname(dirname(__FILE__)))); include_once $path . '/mainfile.php'; include_once $path . '/include/cp_functions.php'; -include_once $path . '/class/xoopsmodule.php'; +include_once $path . '/kernel/module.php'; require_once $path . '/include/cp_header.php'; global $xoopsModule; Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/help.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Deleted: XoopsModules/smallworld/trunk/smallworld/admin/index.html =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.html 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.html 2012-01-20 16:59:04 UTC (rev 8759) @@ -1 +0,0 @@ - <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -20,7 +20,7 @@ **/ -require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +//require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); @@ -29,54 +29,93 @@ $admin = new SmallworldAdmin(); -$tpl = new XoopsTpl(); -$ai = array(); -$ani = array(); - -// --------------- First tab in admin --------------- // Find oldest message and apply to template $dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); + // Get days number $totaldays = $admin->CountDays(); // get average messages per day $avgperday = $admin->AvgMsgDay ($totaldays); -// XIM version number +// Smallworld version number $installversion = $admin->ModuleInstallVersion (); -// XIM install date +// Smallworld install date $installdate = $admin->ModuleInstallDate (); -//check current version of XIM, return desc,link,version if new available +//check current version of Smallworld, return desc,link,version if new available $installCheck = $admin->doCheckUpdate (); -// Count members using XIM +// Count members using Smallworld $sumallusers = $admin->TotalUsers (); // Find list of most active users (total) -$admin->mostactiveusers_allround(); +$maAllround = $admin->mostactiveusers_allround(); + $ma = "<table class='smallworldadmin'><tr>"; + $ma .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($maAllround)-1) { + $ma .= vsprintf('<tr><td>%s</td>',array($maAllround['counter'][$i])); + $ma .= vsprintf('<td>%s</td>',array($maAllround['img'][$i])); + $ma .= vsprintf('<td>%s</td>',array($maAllround['cnt'][$i])); + $ma .= vsprintf('<td>%s</td></tr>',array($maAllround['from'][$i])); + $i++; + } + $ma .= "</tr></table>"; + // Find list of most active users (24 hours) -$admin->mostactiveusers_today(); +$maToday = $admin->mostactiveusers_today(); + $mat = "<table class='smallworldadmin'><tr>"; + $mat .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($maToday)-1) { + $mat .= vsprintf('<tr><td>%s</td>',array($maToday['counter'][$i])); + $mat .= vsprintf('<td>%s</td>',array($maToday['img'][$i])); + $mat .= vsprintf('<td>%s</td>',array($maToday['cnt'][$i])); + $mat .= vsprintf('<td>%s</td></tr>',array($maToday['from'][$i])); + $i++; + } + $mat .= "</tr></table>"; // FInd list of best rated users overall -$admin->topratedusers('up'); +$topusers = $admin->topratedusers('up'); + $top = "<table class='smallworldadmin'><tr>"; + $top .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($topusers)-1) { + $top .= vsprintf('<tr><td>%s</td>',array($topusers['counter'][$i])); + $top .= vsprintf('<td>%s</td>',array($topusers['img'][$i])); + $top .= vsprintf('<td>%s</td>',array($topusers['cnt'][$i])); + $top .= vsprintf('<td>%s</td></tr>',array($topusers['user'][$i])); + $i++; + } + $top .= "</tr></table>"; // FInd list of worst rated users overall -$admin->topratedusers('down'); +$lowusers = $admin->topratedusers('down'); + $low = "<table class='smallworldadmin'><tr>"; + $low .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($lowusers)-1) { + $low .= vsprintf('<tr><td>%s</td>',array($lowusers['counter'][$i])); + $low .= vsprintf('<td>%s</td>',array($lowusers['img'][$i])); + $low .= vsprintf('<td>%s</td>',array($lowusers['cnt'][$i])); + $low .= vsprintf('<td>%s</td></tr>',array($lowusers['user'][$i])); + $i++; + } + $low .= "</tr></table>"; -$indexAdmin->addInfoBox( _AM_SMALLWORLD_USERSTATS); -//$indexAdmin->addInfoBoxLine( _AM_XTUBE_MINDEX_VIDEOSUMMARY, "<infolabel>" .<{$lang_userstats}>. "</infolabel>", index.php); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_DATEOFFIRSTMESSAGE, $dateoffirstmessage, 'Green'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOTALUSERS, $totalusers, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_AVERAGEMSGPERDAY, $avgperday, 'Red'); +$indexAdmin->addInfoBox(_AM_SMALLWORLD_USERSTATS); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<span style='smallworldadmin_tab_container'><p class='smallworldadmin'>"._AM_SMALLWORLD_DATEOFFIRSTMESSAGE." : %s</p>",$dateoffirstmessage,'Green','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOTALUSERS." : %s</p>",$sumallusers, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_AVERAGEMSGPERDAY." : %s</p>", $avgperday, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS_TODAY." : %s</p>", $mat, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS." : %s</p>", $ma, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPRATEDUSERS." : %s</p>", $top, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_BOTTOMRATEDUSERS." : %s</p></span>", $low, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPCHATTERS_TODAY, $avgperday, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPCHATTERS, $avgperday, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPRATEDUSERS, $avgperday, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_BOTTOMRATEDUSERS, $avgperday, 'Red'); - echo $indexAdmin->addNavigation('index.php'); echo $indexAdmin->renderIndex(); - -include "admin_footer.php"; \ No newline at end of file +include "admin_footer.php"; +?> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/index0.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/admin/index.php $ -* @Last committed: $Revision: 8707 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ -* @ID: $Id: index.php 8707 2012-01-13 08:40:50Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ require_once 'admin_header.php'; Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/index0.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/menu.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/menu.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -18,6 +18,7 @@ * @Last changed date: $Date$ * @ID: $Id$ **/ + $dirname = basename(dirname(dirname(__FILE__))); $module_handler = xoops_gethandler('module'); $module = $module_handler->getByDirname($dirname); @@ -31,7 +32,7 @@ $i++; $adminmenu[$i]['title'] = _MI_SMALLWORLD_ADMENU; $adminmenu[$i]['link'] = 'admin/moduleinfo.php'; -$adminmenu[$i]['icon'] = $pathIcon32."/home.png"; +$adminmenu[$i]['icon'] = $pathIcon32."/update.png"; $i++; $adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_USERADMIN; @@ -39,17 +40,6 @@ $adminmenu[$i]['icon'] = $pathIcon32."/administration.png"; $i++; -$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_STATS; -$adminmenu[$i]['link'] = "admin/statistics.php"; -$adminmenu[$i]['icon'] = $pathIcon32."/stats.png"; - -//$i++; -//$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; -//$adminmenu[$i]['link'] = "admin/help.php"; -//$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; - -$i++; - $adminmenu[$i]["title"] =_MI_SMALLWORLDMENU_ABOUT; $adminmenu[$i]["link"] = "admin/about.php"; $adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/moduleinfo.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Deleted: XoopsModules/smallworld/trunk/smallworld/admin/statistics.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/statistics.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/statistics.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -1,79 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ - -require_once 'admin_header.php'; -require_once '../../../include/cp_header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); - -require_once XOOPS_ROOT_PATH . '/class/template.php'; -if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} -$xoopsTpl->xoops_setCaching(0); - -xoops_cp_header(); - -$admin = new SmallworldAdmin(); -$tpl = new XoopsTpl(); - -$ai = array(); -$ani = array(); - -// Count members using Smallworld -$sumallusers = $admin->TotalUsers (); -// Find list of most active users (total) -$admin->mostactiveusers_allround(); -// Find list of most active users (24 hours) -$admin->mostactiveusers_today(); -// Get days number -$totaldays = $admin->CountDays(); -// Find oldest message and apply to template -$dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); -// get average messages per day -$avgperday = $admin->AvgMsgDay ($totaldays); -// FInd list of best rated users overall -$admin->topratedusers('up'); - -// FInd list of worst rated users overall -$admin->topratedusers('down'); - -// template assignments - // tab titles - $xoopsTpl->assign('lang_statistics', _AM_SMALLWORLD_STATISTICS_TITLE); - - // help file from admin - $xoopsTpl->assign('lang_dateoffirstmessage', _AM_SMALLWORLD_DATEOFFIRSTMESSAGE); - $xoopsTpl->assign('lang_totalusers', _AM_SMALLWORLD_TOTALUSERS); - $xoopsTpl->assign('lang_averagemsgperday', _AM_SMALLWORLD_AVERAGEMSGPERDAY); - $xoopsTpl->assign('lang_topchatters',_AM_SMALLWORLD_TOPCHATTERS); - $xoopsTpl->assign('lang_topchatterstoday',_AM_SMALLWORLD_TOPCHATTERS_TODAY); - $xoopsTpl->assign('lang_toprated',_AM_SMALLWORLD_TOPRATEDUSERS); - $xoopsTpl->assign('lang_bottomrated',_AM_SMALLWORLD_BOTTOMRATEDUSERS); - $xoopsTpl->assign('dateoffirstmessage', $dateoffirstmessage); - $xoopsTpl->assign('totalusers', $sumallusers); - $xoopsTpl->assign('averagemsgperday', $avgperday); - $xoopsTpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/admin_statistics.html'); - - global $xoTheme; - $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); - $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); - -xoops_cp_footer(); -?> \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -90,41 +90,43 @@ } // find user with most posted messages function mostactiveusers_allround() { - global $xoopsDB,$xoopsUser,$xoopsTpl; + global $xoopsDB,$xoopsUser; $sql = "SELECT uid_fk, COUNT( * ) as cnt "; $sql .= "FROM ( "; $sql .= "SELECT uid_fk "; - $sql .= "FROM xoops_smallworld_messages "; + $sql .= "FROM ".$xoopsDB->prefix('smallworld_messages')." "; $sql .= "UNION ALL SELECT uid_fk "; - $sql .= "FROM xoops_smallworld_comments "; + $sql .= "FROM ".$xoopsDB->prefix('smallworld_comments')." "; $sql .= ") AS u "; $sql .= "GROUP BY uid_fk "; $sql .= "ORDER BY count( * ) DESC limit 20"; $result = $xoopsDB->queryF($sql); $counter = $xoopsDB->getRowsNum($result); - if ($counter < 1) { - $msg['cnt'] = _AM_SMALLWORLD_NO; - $msg['uid_fk'] = _AM_SMALLWORLD_THEREARE; - $xoopsTpl->append('topuser', $msg); + if ($counter == 1) { + $msg['cnt'][1] = _AM_SMALLWORLD_NO; + $msg['uid_fk'][1] = _AM_SMALLWORLD_THEREARE; + //$xoopsTpl->append('topuser', $msg); } else { $msg = array(); - $counter = 1; + + $i = 1; while ($row = $xoopsDB->fetchArray($result)) { - $msg["counter"] = $counter; - $msg["img"] = "<img src = '../images/".$counter.".png'></img>"; - if ($msg['counter'] > 3) { $msg["img"] = '';} - $msg["cnt"] = $row["cnt"]; - $msg["from"] = $xoopsUser->getUnameFromId($row["uid_fk"]); - $xoopsTpl->append('topuser', $msg); - $counter++; + $msg["counter"][$i] = $i; + $msg["img"][$i] = "<img style='margin:0px 5px;' src = '../images/".$i.".png'></img>"; + if ($msg['counter'][$i] > 3) { $msg["img"][$i] = '';} + $msg["cnt"][$i] = $row["cnt"]; + $msg["from"][$i] = $xoopsUser->getUnameFromId($row["uid_fk"]); + //$xoopsTpl->append('topuser', $msg); + $i++; } } - return $msg; + return $msg; } + // find user with most posted messages in last 24 hours function mostactiveusers_today() { - global $xoopsDB,$xoopsUser,$xoopsTpl; + global $xoopsDB,$xoopsUser; $sql = "SELECT uid_fk, COUNT( * ) as cnt "; $sql .= "FROM ( "; $sql .= "SELECT uid_fk "; @@ -139,20 +141,18 @@ $result = $xoopsDB->queryF($sql); if ($xoopsDB->getRowsNum($result) > 0) { $msgtoday = array(); - $counter = 1; + $i = 1; while ($row = $xoopsDB->fetchArray($result)) { - $msgtoday["counter"] = $counter; - $msgtoday["img"] = "<img src = '../images/".$counter.".png'></img>"; - if ($msgtoday['counter'] > 3) { $msgtoday["img"] = '';} - $msgtoday["cnt"] = $row["cnt"]; - $msgtoday["from"] = $xoopsUser->getUnameFromId($row["uid_fk"]); - $xoopsTpl->append('topusertoday', $msgtoday); - $counter++; + $msgtoday["counter"][$i] = $i; + $msgtoday["img"][$i] = "<img style='margin:0px 5px;' src = '../images/".$i.".png'></img>"; + if ($msgtoday['counter'][$i] > 3) { $msgtoday["img"][$i] = '';} + $msgtoday["cnt"][$i] = $row["cnt"]; + $msgtoday["from"][$i] = $xoopsUser->getUnameFromId($row["uid_fk"]); + $i++; } } else { - $msgtoday['cnt'] = _AM_SMALLWORLD_NO; - $msgtoday['from'] = _AM_SMALLWORLD_THEREARE; - $xoopsTpl->append('topusertoday', $msgtoday); + $msgtoday['cnt'][1] = _AM_SMALLWORLD_NO; + $msgtoday['from'][1] = _AM_SMALLWORLD_THEREARE; } return $msgtoday; } @@ -161,33 +161,47 @@ function topratedusers($direction) { global $xoopsUser, $xoopsDB,$xoopsTpl; $array = array(); - $counter = 1; - if ($direction == 'up') { - $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where up='1' GROUP by owner ORDER BY cnt DESC limit 20"; - $result = $xoopsDB->queryF($sql); - while ($row = $xoopsDB->fetchArray($result)) { - $array['counter'] = $counter; - $array['img'] = "<img src = '../images/".$counter.".png'></img>"; - if ($array['counter'] > 3) { $array["img"] = '';} - $array['cnt'] = $row['cnt']; - $array['user'] = $xoopsUser->getUnameFromId($row["owner"]); - $xoopsTpl->append('topratedusers', $array); - $counter++; - } - } else { - $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where down='1' GROUP by owner ORDER BY cnt DESC limit 20"; + $i = 1; + if ($direction == 'up') { + $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where up='1' GROUP by owner ORDER BY cnt DESC limit 20"; $result = $xoopsDB->queryF($sql); - while ($row = $xoopsDB->fetchArray($result)) { - $array['counter'] = $counter; - $array['img'] = "<img src = '../images/".$counter.".png'></img>"; - if ($array['counter'] > 3) { $array["img"] = '';} - $array['cnt'] = $row['cnt']; - $array['user'] = $xoopsUser->getUnameFromId($row["owner"]); - $xoopsTpl->append('bottomratedusers', $array); - $counter++; + $count = $xoopsDB->getRowsNum($result); + if ($count != 0) { + while ($row = $xoopsDB->fetchArray($result)) { + $array['counter'][$i] = $i; + $array['img'][$i] = "<img height='10px' width='10px' style='margin:0px 5px;' src = '../images/like.png'></img>"; + if ($array['counter'][$i] > 3) { $array["img"][$i] = '';} + $array['cnt'][$i] = $row['cnt']; + $array['user'][$i] = $xoopsUser->getUnameFromId($row["owner"]); + $i++; + } + } else { + $array['counter'][$i] = ''; + $array['img'][$i] = ""; + $array['cnt'][$i] = _AM_SMALLWORLD_NO; + $array['user'][$i] = _AM_SMALLWORLD_THEREARE; } - } - + } else { + $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where down='1' GROUP by owner ORDER BY cnt DESC limit 20"; + $result = $xoopsDB->queryF($sql); + $count = $xoopsDB->getRowsNum($result); + if ($count != 0) { + while ($row = $xoopsDB->fetchArray($result)) { + $array['counter'][$i] = $i; + $array['img'][$i] = "<img height='10px' width='10px' style='margin:0px 5px;' src = '../images/dislike.png'></img>"; + if ($array['counter'][$i] > 3) { $array["img"][$i] = '';} + $array['cnt'][$i] = $row['cnt']; + $array['user'][$i] = $xoopsUser->getUnameFromId($row["owner"]); + $i++; + } + } else { + $array['counter'][$i] = ''; + $array['img'][$i] = ""; + $array['cnt'][$i] = _AM_SMALLWORLD_NO; + $array['user'][$i] = _AM_SMALLWORLD_THEREARE; + } + } + return $array; } // Get all users to loop in admin for administration Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/credits.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/install.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/licence.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/readme.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/admin.php $ -* @Last committed: $Revision: 8707 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ -* @ID: $Id: admin.php 8707 2012-01-13 08:40:50Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/help/help.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/help/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_attencionneeded.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_complaint.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_newcomment.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_register.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/main.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/main.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/main.php $ -* @Last committed: $Revision: 8707 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ -* @ID: $Id: main.php 8707 2012-01-13 08:40:50Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ /*----------------- Menu items ---------------*/ Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/main.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/modinfo.php $ -* @Last committed: $Revision: 8743 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-16 09:29:22 -0500 (Mon, 16 Jan 2012) $ -* @ID: $Id: modinfo.php 8743 2012-01-16 14:29:22Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ define("_MI_SMALLWORLD_MODULE_NAME","Smallworld"); Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/english/admin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/admin.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/english/admin.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -40,7 +40,7 @@ define('_AM_SMALLWORLD_MODULEINFO','Module info'); define('_AM_SMALLWORLD_USERSTATS','User stats'); define('_AM_SMALLWORLD_NONEYET','No messages in database'); -define('_AM_SMALLWORLD_NO','no'); +define('_AM_SMALLWORLD_NO','none'); define('_AM_SMALLWORLD_THEREARE','There are'); define('_AM_SMALLWORLD_UPDATE_STATUS','Status of your Smallworld version:'); @@ -71,53 +71,10 @@ define('_AM_SMALLWORLD_UPDATE_YOUHAVENEWESTVERSION','You have the newest version of Smallworld'); define('_AM_SMALLWORLD_HELP','Help'); define('_AM_SMALLWORLD_ADMIN_USERDELETEDALERT',' and associated folders, files and table rows has been deleted'); +define('_AM_SMALLWORLD_STATS_POS','#'); +define('_AM_SMALLWORLD_STATS_NAME','Name'); +define('_AM_SMALLWORLD_STATS_AMOUNT','Amount'); +define('_AM_SMALLWORLD_STATS_IMG','Icon'); -//Help section -define('_AM_SMALLWORLD_HELP_ABOUT','About Smallworld'); -define('_AM_SMALLWORLD_HELP_PREFACE','Smallworld is a Social Network system. Inspired by the Srinivas Tamada tutorials on fecebook scripting. The base system has been re-written, adapted, and heavily expanded for XOOPS by Culex<br/>The module is featuring like/dislike, bookmarking, wall system, image gallery, and is using XIM if installed. The admin side is featuring deleting users, banning users based on time. A countdown is shown on user side to when it\'s back.. And many more features. It is fully supported by XOOPS version 2.5.0 and higher.<br/>Smallworld is released under the terms of the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License (GPL)</a> and is free to use and modify. It is free to redistribute as long as you abide by the distribution terms of the GPL.'); -define('_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS','Requirements'); -define('_AM_SMALLWORLD_HELP_REQUIREMENTS','<ul class="help"> - <li>WWW Server (<a href="http://www.apache.org/" target="_blank">Apache</a>, IIS, Roxen, etc)</li> - <li><a href="http://www.xoops.org/" target="_blank">XOOPS</a> 2.4.0 or higher as Smallworld uses preloads</li> - <li><a href="http://www.php.net/" target="_blank">PHP</a> 5.2.0 or higher.</li> - <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 4 or higher (5 or higher recommended)</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED','Recommended for testing Smallworld'); -define('_AM_SMALLWORLD_HELP_RECOMMENDED','<ul class="help"> - <li>Browser <a href="http://www.mozilla.com" target"_blank">Firefox</a> and the Firefox plugin <a href="https://addons.mozilla.org/en-US/firefox/downloads/latest/1843/addon-1843-latest.xpi" target="_blank">FireBug plugin (latest version)</a></li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_INSTALLATION','How to install'); -define('_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL','<ul class="help"> - <li>Check to see if the downloaded Smallworld version is the latest released version.</li> - <li>Turn cookie and JavaScript of your browser on.</li> - </ul>'); - -define('_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM','Installing on a hosted platform'); -define('_AM_SMALLWORLD_HELP_HOSTED_PLATFORM','<ul class="help"> - <li>Upload the unzipped folder Smallworld to your module directory.</li> - <li>Install using XOOPS module install as any other module installation.</li> - <li>Make the block visible for the user groups you want to see the block (admin/moderators etc etc).</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_UPGRADING','Upgrading from a previous version'); -define('_AM_SMALLWORLD_HELP_UPGRADING','<ul class="help"> - <li>Make sure you are using newest version</li> - <li>Read the readme.txt in archive</li> - <li>Maybe do a backup of your tables</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_FAQ','Problem solving'); -define('_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1','I get blank page, can\'t click username, The block does not show.......'); -define('_AM_SMALLWORLD_HELP_COMMENPROBLEMS1','<ul class="help"> - <li>Make sure your Xoops version is > 2.4.0. Older versions of Xoops don\'t have preloads, which are required.</li> - <li>Turn on debug and check to see if any errors emerge.</li> - <li>Using FireFox, right click on the screen, choose inspect element, choose console in the tabs and check to see if any errors<br/></li> - <li>If no errors, use Firebug (Right click->inspect element->console) and see if there are any jQuery errors.</li> - <li>If there are no jQuery errors. Clean caches-> module update Smallworld, system modules.</li> - <li>If the page is still blank, Go to your protector module -> settings and write smallworld in the form "Modules out of Dos / Crawler checker".</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_CONTACTS','Ask question'); -define('_AM_SMALLWORLD_HELP_OTHERHELP','<ul class="help"> - <li>If still questions or errors please post at the <a href="http://www.xoops.org/modules/newbb" target="_blank">Xoops support Forum</a></li> - </ul> - '); -define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake by buying me a coffee</a>'); +define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;vertical-align: middle;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake by buying me a coffee</a>'); define('_AM_SMALLWORLD_FOOTER', "<div class='center smallsmall italic pad5'>Module SmallWorld is maintained by <a class='tooltip' rel='external' href='http://culex.dk/' title='Visit my Website'>Culex</a></div>"); \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/language/english/help/help.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/english/help/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -52,6 +52,9 @@ define ("_MI_SMALLWORLD_BOOKMARSAVATARS","Use Smallworld Logo when bookmarking ? "); define ("_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC","When posts are public and you want to share on social networks. You can here descide weather to use<br>smallworld logo as shared image or 'no' = the posting users avatar.<br><br>Default is 'yes' = smallworld logo."); +define ("_MI_SMALLWORLD_USEMAILNOTIFICATION","Use mail notifications ? "); +define ("_MI_SMALLWORLD_USEMAILNOTIFICATION_DESC","When new user register a mail is sent to admin, or when a comment is added to a post where user is part a mail is sent to user.<br><br>Default is 'yes'"); + // Select fields & Mandetory fields define ('_MI_SMALLWORLD_VIEWFIELDS','Use fields in registration and profile'); define ('_MI_SMALLWORLD_VIEWFIELDS_DESC','Select fields to use in registration form and in profile viewing<br>Use control + mouse to multiselect'); @@ -59,6 +62,7 @@ define ('_MI_SMALLWORLD_VERIFYFIELDS_DESC','Select (*) mandatory fields in registration form<br>Use control + mouse to multiselect'); define ('_MI_SMALLWORLD_REALNAME','Real name'); +define ('_MI_SMALLWORLD_GENDER','Gender'); define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); define ('_MI_SMALLWORLD_RELATIONSHIPSTATUS','relationship status'); define ('_MI_SMALLWORLD_PARTNER','Partner'); Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_help.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_moduleinfo.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_statistics.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-01-20 08:53:03
|
Revision: 8758 http://xoops.svn.sourceforge.net/xoops/?rev=8758&view=rev Author: wishcraft Date: 2012-01-20 08:52:39 +0000 (Fri, 20 Jan 2012) Log Message: ----------- X-Forum 5.83 (XOOPS 2.5) - Admin Fixes [Multifielding] & Globalisation X-Forum 5.90 Beta (XOOPS 2.6) - Converted to XOOPS 2.6 Syntax Added Paths: ----------- XoopsModules/xforum/branches/ XoopsModules/xforum/branches/2.6.0/ XoopsModules/xforum/branches/2.6.0/5.9/ XoopsModules/xforum/branches/2.6.0/5.9/docs/ XoopsModules/xforum/branches/2.6.0/5.9/docs/.htaccess XoopsModules/xforum/branches/2.6.0/5.9/docs/gpl.txt XoopsModules/xforum/branches/2.6.0/5.9/docs/licence.txt XoopsModules/xforum/branches/2.6.0/5.9/extra/ XoopsModules/xforum/branches/2.6.0/5.9/extra/D3forum/ XoopsModules/xforum/branches/2.6.0/5.9/extra/D3forum/htdocs/ XoopsModules/xforum/branches/2.6.0/5.9/extra/D3forum/htdocs/migratetoxforum.php XoopsModules/xforum/branches/2.6.0/5.9/extra/Newbb/ XoopsModules/xforum/branches/2.6.0/5.9/extra/Newbb/htdocs/ XoopsModules/xforum/branches/2.6.0/5.9/extra/Newbb/htdocs/migratetoxforum.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.block.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.category.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.digest.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.field.permissions.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.fields.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.forum.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.permissions.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.prune.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.reorder.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.report.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.sync.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/16/xforum.vote.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.block.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.category.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.digest.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.field.permissions.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.fields.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.forum.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.permissions.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.prune.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.reorder.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.report.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.sync.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/moduleclasses/icons/32/xforum.vote.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/Frameworks/tcpdf/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/tag/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/tag/plugin/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/tag/plugin/xforum.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/action.post.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/action.topic.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/action.transfer.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_about.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_blocks.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_cat_manager.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_dashboard.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_digest.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_field.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_field_permissions.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_field_visibility.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_forum_manager.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_forum_prune.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_forum_reorder.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_header.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_permissions.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_post.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_report.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/admin_votedata.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/admin/menu.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/archive.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/blocks/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/blocks/forum_block.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/blocks/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/category.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/digest.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/extras.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/field.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/forum.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/karma.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/moderate.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/online.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/permission.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/post.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/posts.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/rate.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/read.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/readforum.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/readtopic.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/report.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/text.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/topic.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/blog/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/blog/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/blog/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/blog/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/blog/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/blog/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/bookmark/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/bookmark/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/bookmark/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/bookmark/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/bookmark/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/bookmark/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/dokuwiki/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/dokuwiki/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/dokuwiki/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/dokuwiki/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/dokuwiki/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/dokuwiki/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/action.email.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/email/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pdf/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pdf/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pdf/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pdf/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pdf/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pdf/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pm/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pm/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pm/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pm/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pm/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/pm/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/print/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/print/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/print/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/print/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/print/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/print/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/wordpress/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/wordpress/config.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/wordpress/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/wordpress/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/wordpress/language/english.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer/wordpress/language/schinese.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/transfer.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/uploader.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/user.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/visibility.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/xforumtree.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/xlanguage_ext.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/xmlrss.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/class/xoopsformloader.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/delete.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/digest.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/dl_attachment.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/changelog.txt XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/credits.txt XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/install.txt XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/lang_diff.txt XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/licence.txt XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/docs/readme.txt XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/edit.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/graphs/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/header.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/add-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/aim-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/aim-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/approve-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/approve-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/arrow-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/arrow-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/bg.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/bg.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/blank.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-blc.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-bottom.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-brc.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-left.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-right.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-tlc.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-top.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/brdr-trc.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/category/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/category/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/category/blank.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/category/topxoops.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/category/xforum.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/category/xoops-au.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/del_topic-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/del_topic-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/delete-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/delete-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/delete.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/delete.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/digest-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/digest-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/disable.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/document-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/document-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/edit-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/edit-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/edit.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/edit.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/email-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/email-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/enable.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/external.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/ace.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/avi.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/bmp.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/doc.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/exe.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/flash.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/gif.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/html.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/jpeg.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/jpg.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/mid.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/mov.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/mp3.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/mpg.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/netscape.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/pdf.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/png.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/ppt.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/rar.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/txt.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/unknown.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/wav.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/xls.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/filetypes/zip.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/home-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/home-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/icons/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/icons/accept.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/icons/cancel.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/icq-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/icq-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/attachment-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/attachment-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/clip-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/clip-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/doubledown-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/doubledown-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/down-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/down-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/new_forum-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/new_forum-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/new_subforum-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/new_subforum-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/offline-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/offline-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/online-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/online-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_delete-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_delete-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_edit-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_edit-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_quote-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_quote-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_reply-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_reply-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_report-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_report-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_up-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/p_up-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_new-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_new-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_poll-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_poll-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_qr-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_qr-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_reply-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/english/t_reply-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/flat-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/flat-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_big-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_big-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_digest-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_digest-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_locked_big-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_locked_big-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_locked_big_newposts-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_locked_big_newposts-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_new_big-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_new_big-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_sticky-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_sticky-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_user-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/folder_user-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/forum_moderators-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/forum_moderators-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/new_forum-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/new_forum-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/new_subforum-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/new_subforum-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/offline-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/offline-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/online-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/online-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_delete-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_delete-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_edit-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_edit-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_quote-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_quote-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_reply-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_reply-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_report-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_report-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_up-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/p_up-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_new-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_new-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_poll-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_poll-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_qr-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_qr-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_reply-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/german/t_reply-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/hot_folder-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/hot_folder-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/hot_folder_user-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/hot_folder_user-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/hot_red_folder-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/hot_red_folder-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/left-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/left-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/lock-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/lock-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/pixel-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/poll-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/poll-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/post_content-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/post_content-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/printer-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/printer-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate1-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate1-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate2-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate2-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate3-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate3-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate4-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate4-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate5-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rate5-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/red_folder-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/red_folder-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/red_folder_user-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/red_folder_user-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/right-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/right-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/Thumbs.db XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/blue.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/green.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/img_backing.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/img_left.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/img_right.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/rpg/orange.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/threaded-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/threaded-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/up-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/up-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/whosonline-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/imagesets/default/whosonline-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/left_both.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/left_both.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/lock_topic-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/lock_topic-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/minus-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/minus-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/minus.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/minus.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/move_topic-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/move_topic-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/msnm-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/msnm-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/news-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/news-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/pdf-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/pdf-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/personal-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/personal-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/plus-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/plus-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/plus.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/plus.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/pm-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/pm-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/right_both.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/right_both.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/rss-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/rss-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/rss-small.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/spacer-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/sticky-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/sticky-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/undigest-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/undigest-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/unlock_topic-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/unlock_topic-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/unsticky-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/unsticky-a.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/xforum.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/xoopsxf_slogo.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/yahoo-a.gif XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/images/yahoo-xforum.png XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/admin.functions.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/formselectforum.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/forumform.inc.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/functions.image.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/functions.ini.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/functions.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/functions.welcome.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/xforum_browserdetect.js XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/xforum_dynMenu.js XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/xforum_menu_click.js XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/xforum_tip.js XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/xforum_tipstyle.js XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/js/xforum_toggle.js XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/module.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/notification.inc.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/plugin.dist.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/plugin.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/pngbehavior.htc XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/search.inc.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/vars.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/include/xforum.htc XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/index.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/admin.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/blocks.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/forum_newpost_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/forum_newthread_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/global_digest_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/global_newforum_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/global_newfullpost_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/global_newpost_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/mail_template/thread_newpost_notify.tpl XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/main.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/modinfo.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/xforum.css XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/xforum_menu_click.css XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/english/xforum_menu_hover.css XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/language/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/list.tag.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/makepdf.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/moderate.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/newtopic.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/notification_update.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/polls.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/post.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/posttonews.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/posttopm.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/print.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/ratethread.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/reply.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/report.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/rss.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/search.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/sql/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/sql/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/sql/mysql.sql XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/admin/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/admin/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/admin/xforum_admin_fieldlist.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/admin/xforum_admin_visibility.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/ XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_block.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_block_author.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_block_post.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_block_text.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_block_topic.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_tag_block_cloud.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/blocks/xforum_tag_block_top.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_dropdown_menu.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_index.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_item.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_online.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_poll_results.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_poll_view.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_rss.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_search.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_searchresults.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_tag_bar.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_thread.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_viewall.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_viewforum.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_viewpost.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_viewpost_list.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_viewtopic_flat.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/templates/xforum_viewtopic_thread.html XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/topicmanager.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/view.tag.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/viewall.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/viewforum.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/viewpost.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/viewtopic.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/votepolls.php XoopsModules/xforum/branches/2.6.0/5.9/htdocs/modules/xforum/xoops_version.php XoopsModules/xforum/releases/5.83/ XoopsModules/xforum/releases/5.83/docs/ XoopsModules/xforum/releases/5.83/docs/.htaccess XoopsModules/xforum/releases/5.83/docs/gpl.txt XoopsModules/xforum/releases/5.83/docs/licence.txt XoopsModules/xforum/releases/5.83/extra/ XoopsModules/xforum/releases/5.83/extra/D3forum/ XoopsModules/xforum/releases/5.83/extra/D3forum/htdocs/ XoopsModules/xforum/releases/5.83/extra/D3forum/htdocs/migratetoxforum.php XoopsModules/xforum/releases/5.83/extra/Newbb/ XoopsModules/xforum/releases/5.83/extra/Newbb/htdocs/ XoopsModules/xforum/releases/5.83/extra/Newbb/htdocs/migratetoxforum.php XoopsModules/xforum/releases/5.83/htdocs/ XoopsModules/xforum/releases/5.83/htdocs/Frameworks/ XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/ XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.block.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.category.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.digest.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.field.permissions.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.fields.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.forum.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.permissions.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.prune.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.reorder.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.report.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.sync.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/16/xforum.vote.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.block.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.category.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.digest.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.field.permissions.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.fields.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.forum.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.permissions.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.prune.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.reorder.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.report.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.sync.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/moduleclasses/icons/32/xforum.vote.png XoopsModules/xforum/releases/5.83/htdocs/Frameworks/tcpdf/ XoopsModules/xforum/releases/5.83/htdocs/modules/ XoopsModules/xforum/releases/5.83/htdocs/modules/tag/ XoopsModules/xforum/releases/5.83/htdocs/modules/tag/plugin/ XoopsModules/xforum/releases/5.83/htdocs/modules/tag/plugin/xforum.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/action.post.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/action.topic.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/action.transfer.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_about.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_blocks.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_cat_manager.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_dashboard.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_digest.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_field.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_field_permissions.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_field_visibility.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_forum_manager.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_forum_prune.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_forum_reorder.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_header.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_permissions.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_post.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_report.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/admin_votedata.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/index.html XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/admin/menu.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/archive.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/blocks/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/blocks/forum_block.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/blocks/index.html XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/category.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/digest.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/extras.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/field.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/forum.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/index.html XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/karma.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/moderate.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/online.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/permission.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/post.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/posts.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/rate.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/read.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/readforum.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/readtopic.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/report.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/text.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/topic.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/blog/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/blog/config.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/blog/index.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/blog/language/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/blog/language/english.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/blog/language/schinese.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/bookmark/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/bookmark/config.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/bookmark/index.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/bookmark/language/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/bookmark/language/english.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/bookmark/language/schinese.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/dokuwiki/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/dokuwiki/config.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/dokuwiki/index.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/dokuwiki/language/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/dokuwiki/language/english.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/dokuwiki/language/schinese.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/action.email.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/config.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/index.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/language/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/language/english.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/email/language/schinese.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/index.html XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pdf/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pdf/config.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pdf/index.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pdf/language/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pdf/language/english.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pdf/language/schinese.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pm/ XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pm/config.php XoopsModules/xforum/releases/5.83/htdocs/modules/xforum/class/transfer/pm/index.php XoopsModules/xforum/releases/5.83/htdocs/m... [truncated message content] |
From: <vo...@us...> - 2012-01-19 08:09:36
|
Revision: 8757 http://xoops.svn.sourceforge.net/xoops/?rev=8757&view=rev Author: voltan1 Date: 2012-01-19 08:09:27 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Fix forms Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/backend.php XoopsModules/fmcontent/branches/news/class/story.php XoopsModules/fmcontent/branches/news/class/topic.php XoopsModules/fmcontent/branches/news/submit.php Modified: XoopsModules/fmcontent/branches/news/admin/backend.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-19 07:35:40 UTC (rev 8756) +++ XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-19 08:09:27 UTC (rev 8757) @@ -178,7 +178,7 @@ } // file - if(isset($_REQUEST['file_name'])) { + if(isset($_FILES['file_name']['name']) && !empty($_FILES['file_name']['name'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); @@ -274,7 +274,7 @@ } // file - if(isset($_REQUEST['xoops_upload_file'])) { + if(isset($_FILES['file_name']['name']) && !empty($_FILES['file_name']['name'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); Modified: XoopsModules/fmcontent/branches/news/class/story.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/story.php 2012-01-19 07:35:40 UTC (rev 8756) +++ XoopsModules/fmcontent/branches/news/class/story.php 2012-01-19 08:09:27 UTC (rev 8757) @@ -120,7 +120,7 @@ $form->addElement ( new XoopsFormHidden ( 'story_topic', 0 ) ); } // Short - $form->addElement ( new XoopsFormTextArea ( _NEWS_AM_CONTENT_SHORT, 'story_short', $this->getVar ( 'story_short', 'e' ), 5, 90 ) ); + $form->addElement ( new XoopsFormTextArea ( _NEWS_AM_CONTENT_SHORT, 'story_short', $this->getVar ( 'story_short', 'e' ), 10, 90 ) ); // Editor $editor_tray = new XoopsFormElementTray ( _NEWS_AM_CONTENT_FORMTEXT, '<br />' ); if (class_exists ( 'XoopsFormEditor' )) { @@ -188,8 +188,8 @@ $file->setDescription ( _NEWS_AM_CONTENT_FILE_DESC ); $form->addElement ($file); // Metas - $form->addElement ( new XoopsFormTextArea ( 'Metas Keyword', 'story_words', $this->getVar ( 'story_words', 'e' ), 5, 90 ) ); - $form->addElement ( new XoopsFormTextArea ( 'Metas Description', 'story_desc', $this->getVar ( 'story_desc', 'e' ), 5, 90 ) ); + $form->addElement ( new XoopsFormTextArea ( 'Metas Keyword', 'story_words', $this->getVar ( 'story_words', 'e' ), 3, 50 ) ); + $form->addElement ( new XoopsFormTextArea ( 'Metas Description', 'story_desc', $this->getVar ( 'story_desc', 'e' ), 3, 50 ) ); // Content author $form->addElement ( new XoopsFormText ( _NEWS_AM_CONTENT_FORMAUTHOR, 'story_author', 50, 255, $this->getVar ( 'story_author', 'e' ) ), false ); // Content Source @@ -299,7 +299,7 @@ $form->addElement ( new XoopsFormHidden ( 'story_topic', 0 ) ); } // Short - $form->addElement ( new XoopsFormTextArea ( _NEWS_AM_CONTENT_SHORT, 'story_short', $this->getVar ( 'story_short', 'e' ), 5, 80 ) ); + $form->addElement ( new XoopsFormTextArea ( _NEWS_AM_CONTENT_SHORT, 'story_short', $this->getVar ( 'story_short', 'e' ), 10, 80 ) ); // Editor $editor_tray = new XoopsFormElementTray ( _NEWS_AM_CONTENT_FORMTEXT, '<br />' ); if (class_exists ( 'XoopsFormEditor' )) { Modified: XoopsModules/fmcontent/branches/news/class/topic.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/topic.php 2012-01-19 07:35:40 UTC (rev 8756) +++ XoopsModules/fmcontent/branches/news/class/topic.php 2012-01-19 08:09:27 UTC (rev 8757) @@ -89,15 +89,14 @@ $criteria = new CriteriaCompo (); $criteria->add ( new Criteria ( 'topic_modid', $NewsModule->getVar ( 'mid' ) ) ); $topic = $topic_Handler->getObjects ( $criteria ); - $tree = new XoopsObjectTree ( $topic, 'topic_id', 'topic_pid' ); - ob_start (); - echo $tree->makeSelBox ( 'topic_pid', 'topic_title', '--', $this->getVar ( 'topic_pid', 'e' ), true ); - $form->addElement ( new XoopsFormLabel ( _NEWS_AM_TOPIC_PARENT, ob_get_contents () ) ); - ob_end_clean (); - - $form->addElement ( new XoopsFormTextArea ( _NEWS_AM_TOPIC_DESC, "topic_desc", $this->getVar ( "topic_desc" ), 5, 47 ), false ); - //$form->addElement ( new XoopsFormText ( _NEWS_AM_TOPIC_WEIGHT, "topic_weight", 5, 11, $this->getVar ( "topic_weight" ) ), false ); - + if($topic) { + $tree = new XoopsObjectTree ( $topic, 'topic_id', 'topic_pid' ); + ob_start (); + echo $tree->makeSelBox ( 'topic_pid', 'topic_title', '--', $this->getVar ( 'topic_pid', 'e' ), true ); + $form->addElement ( new XoopsFormLabel ( _NEWS_AM_TOPIC_PARENT, ob_get_contents () ) ); + ob_end_clean (); + } + $form->addElement ( new XoopsFormTextArea ( _NEWS_AM_TOPIC_DESC, "topic_desc", $this->getVar ( "topic_desc" ), 8, 47 ), false ); // Image $topic_img = $this->getVar ( 'topic_img' ) ? $this->getVar ( 'topic_img' ) : 'blank.gif'; $uploadirectory_topic_img = xoops_getModuleOption ( 'img_dir', $NewsModule->getVar ( 'dirname' ) ); Modified: XoopsModules/fmcontent/branches/news/submit.php =================================================================== --- XoopsModules/fmcontent/branches/news/submit.php 2012-01-19 07:35:40 UTC (rev 8756) +++ XoopsModules/fmcontent/branches/news/submit.php 2012-01-19 08:09:27 UTC (rev 8757) @@ -100,7 +100,7 @@ } // file - if(isset($_REQUEST['file_name'])) { + if(isset($_FILES['file_name']['name']) && !empty($_FILES['file_name']['name'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2012-01-19 07:35:47
|
Revision: 8756 http://xoops.svn.sourceforge.net/xoops/?rev=8756&view=rev Author: voltan1 Date: 2012-01-19 07:35:40 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Fix error in files Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/backend.php XoopsModules/fmcontent/branches/news/submit.php Modified: XoopsModules/fmcontent/branches/news/admin/backend.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-18 18:55:31 UTC (rev 8755) +++ XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-19 07:35:40 UTC (rev 8756) @@ -178,7 +178,7 @@ } // file - if(isset($_REQUEST['xoops_upload_file'])) { + if(isset($_REQUEST['file_name'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); Modified: XoopsModules/fmcontent/branches/news/submit.php =================================================================== --- XoopsModules/fmcontent/branches/news/submit.php 2012-01-18 18:55:31 UTC (rev 8755) +++ XoopsModules/fmcontent/branches/news/submit.php 2012-01-19 07:35:40 UTC (rev 8756) @@ -100,7 +100,7 @@ } // file - if(isset($_REQUEST['xoops_upload_file'])) { + if(isset($_REQUEST['file_name'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-01-18 18:55:37
|
Revision: 8755 http://xoops.svn.sourceforge.net/xoops/?rev=8755&view=rev Author: wishcraft Date: 2012-01-18 18:55:31 +0000 (Wed, 18 Jan 2012) Log Message: ----------- WURFL 2.02 - Fixed Device Detection and Theme Selection - Added Useragent Spy in Admin Modified Paths: -------------- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/devices.php Modified: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/devices.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/devices.php 2012-01-18 17:53:27 UTC (rev 8754) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/devices.php 2012-01-18 18:55:31 UTC (rev 8755) @@ -78,28 +78,28 @@ foreach(explode('|', $GLOBALS['wurflModuleConfig']['pad_useragent_android']) as $ua) { if (!empty($ua)) - if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower(' '.$ua))>0) { + if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower($ua))>0) { return $GLOBALS['wurflModuleConfig']['pad_android']; } } foreach(explode('|', $GLOBALS['wurflModuleConfig']['pad_useragent_apple']) as $ua) { if (!empty($ua)) - if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower(' '.$ua))>0) { + if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower($ua))>0) { return $GLOBALS['wurflModuleConfig']['pad_apple']; } } foreach(explode('|', $GLOBALS['wurflModuleConfig']['mob_useragent_android']) as $ua) { if (!empty($ua)) - if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower(' '.$ua))>0) { + if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower($ua))>0) { return $GLOBALS['wurflModuleConfig']['mob_android']; } } foreach(explode('|', $GLOBALS['wurflModuleConfig']['mob_useragent_apple']) as $ua) { if (!empty($ua)) - if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower(' '.$ua))>0) { + if (strpos(' '.strtolower(' '.$ua), strtolower($user_agent))>0||strpos(' '.strtolower($user_agent), strtolower($ua))>0) { return $GLOBALS['wurflModuleConfig']['mob_apple']; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-01-18 17:53:38
|
Revision: 8754 http://xoops.svn.sourceforge.net/xoops/?rev=8754&view=rev Author: wishcraft Date: 2012-01-18 17:53:27 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Flowplayer 1.13 - With Insecurity Options Added Paths: ----------- XoopsModules/flowplayer/releases/1.13/ XoopsModules/flowplayer/releases/1.13/docs/ XoopsModules/flowplayer/releases/1.13/docs/licence.txt XoopsModules/flowplayer/releases/1.13/htdocs/ XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/ XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/ XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png XoopsModules/flowplayer/releases/1.13/htdocs/modules/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/header.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/menu.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/blocks/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/blocks/flowplayer_block_player.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/blocks/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/class/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/class/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/class/mimetypes.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/class/player.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/changelog.txt XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/credits.txt XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/install.txt XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/lang_diff.txt XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/licence.txt XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/docs/readme.txt XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/dojson_player.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/error_log XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/header.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/flowplayer_slogo.png XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/icons/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/icons/admin/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/icons/admin/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/icons/admin/video.png XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/icons/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/images/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/JSON.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/formobjects.flowplayer.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/forms.flowplayer.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/formselectmimetype.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/formselectplayer.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/formselectsupport.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/functions.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/update.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/include/uploader.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/index.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/js/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/js/core.js XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/js/flowplayer-3.2.6.min.js XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/js/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/js/json_functions.js XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/js/video.js XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/admin.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/block.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/blocks.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/forms.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/mainfile.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/modinfo.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/style.css XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/english/video-js.css XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/language/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/preloads/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/preloads/core.php XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/preloads/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/sql/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/sql/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/sql/mysql.sql XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/swf/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/swf/flowplayer-3.2.7.swf XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/swf/flowplayer-3_2_7-0.swf XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/swf/flowplayer.controls-3.2.5.swf XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/swf/flowplayer.rtmp-3.2.3.swf XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/swf/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/blocks/ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/blocks/flowplayer_block_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/blocks/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_edit.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_list.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_edit.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_list.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_cpanel_useragents_list.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_flash_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_html5_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_flash_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_html5_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_ios_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_other_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtmp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtsp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_silverlight_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_ios_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_other_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_rstp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_rtmp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_index_silverlight_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_flash_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_html5_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_ios_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_other_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtmp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtsp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_block_silverlight_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_flash_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_html5_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_ios_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_other_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_rtmp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_rtsp_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/flowplayer_json_silverlight_player.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/templates/index.html XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/xoops_version.php Added: XoopsModules/flowplayer/releases/1.13/docs/licence.txt =================================================================== --- XoopsModules/flowplayer/releases/1.13/docs/licence.txt (rev 0) +++ XoopsModules/flowplayer/releases/1.13/docs/licence.txt 2012-01-18 17:53:27 UTC (rev 8754) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.13/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/header.php =================================================================== --- XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/header.php (rev 0) +++ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/header.php 2012-01-18 17:53:27 UTC (rev 8754) @@ -0,0 +1,61 @@ +<?php + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['flowplayerModule'] = $module_handler->getByDirname('flowplayer'); + $GLOBALS['flowplayerModuleConfig'] = $config_handler->getConfigList($GLOBALS['flowplayerModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo flowplayer_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['flowplayerImageIcon'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons16'); + $GLOBALS['flowplayerImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['flowplayerModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['flowplayerImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['flowplayerImageAdmin']); + + + require_once('../include/functions.php'); + require_once('../include/formobjects.flowplayer.php'); + require_once('../include/forms.flowplayer.php'); + + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/modinfo.php'); + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/forms.php'); + + +?> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.html =================================================================== --- XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.html (rev 0) +++ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.html 2012-01-18 17:53:27 UTC (rev 8754) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.php =================================================================== --- XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.php (rev 0) +++ XoopsModules/flowplayer/releases/1.13/htdocs/modules/flowplayer/admin/index.php 2012-01-18 17:53:27 UTC (rev 8754) @@ -0,0 +1,397 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'flowplayer'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "dashboard": + default: + echo flowplayer_adminMenu(0); + error_reporting(E_ALL); + $player_handler = xoops_getmodulehandler('player', 'flowplayer'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLATFILES."</label>", $player_handler->getCount(new Criteria('stream', '0', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTMPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTSPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLASHSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_IOSSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green'); + $players = $player_handler->getObjects(new Criteria('`default`', '1'), false); + if (is_object($players[0])) { + $player = $players[0]; + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_DEFAULT); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/flowplayer/?fid='.$player->getVar('fid').'&iframe=1&width=320px&height=200px" style="width:320px;height:200px;"></iframe>"', '', 'Green'); + } + echo $indexAdmin->renderIndex(); + break; + case "about": + echo flowplayer_adminMenu(4); + $paypalitemno='FLOWPLAYER106'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_TWITTERBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')), strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')). ' '.$GLOBALS['flowplayerModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + break; + case "agents": + flowplayer_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + xoops_load('XoopsCache'); + $ret = XoopsCache::read('flowplayer_user_agents'); + asort($ret, SORT_DESC); + $ttl = count($ret); + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + foreach (array( 'time','player','agents','user') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + $s=0; + $i=0; + foreach($ret as $time => $agent) { + if (is_array($agent)&&$s>=$start&&$i<=$limit) { + $GLOBALS['xoopsTpl']->append('useragents', array('time'=>date(_DATESTRING, $time), 'player'=>$agent['player'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent'])); + $i++; + } + $s++; + } + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_useragents_list.html'); + break; + + + case "player": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $criteria = $player_handler->getFilterCriteria($filter); + $ttl = $player_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'fid','name','source','reference','height','width','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $player_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $players = $player_handler->getObjects($criteria, true); + foreach($players as $cid => $player) { + if (is_object($player)) + $GLOBALS['xoopsTpl']->append('players', $player->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $player = $player_handler->get(intval($_REQUEST['id'])); + } else { + $player = $player_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form($player)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_edit.html'); + break; + case "save": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $player = $player_handler->get($id); + } else { + $player = $player_handler->create(); + } + $player->setVars($_POST[$id]); + if (!$id=$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } else { + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + include_once($GLOBALS['xoops']->path('modules/flowplayer/include/uploader.php')); + $player = $player_handler->get($id); + $uploader = new FlowplayerMediaUploader($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']), explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_mimetype']), $GLOBALS['flowplayerModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($player->getVar('poster'))) + unlink($GLOBALS['xoops']->path($player->getVar('path')).$player->getVar('poster')); + + $player->setVar('path', $GLOBALS['flowplayerModuleConfig']['upload_areas']); + $player->setVar('poster', $uploader->getSavedFileName()); + @$player_handler->insert($player); + } + } else { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $player = $player_handler->get($id); + $player->setVars($_POST[$id]); + if (!$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + exit(0); + break; + case "delete": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $player = $player_handler->get($id); + if (!$player_handler->delete($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_DELETED); + exit(0); + } + } else { + $player = $player_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_PLAYER_DELETE, $player->getVar('name'))); + } + break; + } + break; + case "mimetypes": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $criteria = $mimetypes_handler->getFilterCriteria($filter); + $ttl = $mimetypes_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'mid','support','name','mimetype','codecs','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mimetypes_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $mimetypess = $mimetypes_handler->getObjects($criteria, true); + foreach($mimetypess as $cid => $mimetypes) { + if (is_object($mimetypes)) + $GLOBALS['xoopsTpl']->append('mimetypes', $mimetypes->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get(intval($_REQUEST['id'])); + } else { + $mimetypes = $mimetypes_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form($mimetypes)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_edit.html'); + break; + case "save": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + } else { + $mimetypes = $mimetypes_handler->create(); + } + $mimetypes->setVars($_POST[$id]); + if (!$id=$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } else { + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $mimetypes = $mimetypes_handler->get($id); + $mimetypes->setVars($_POST[$id]); + if (!$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + if (!$mimetypes_handler->delete($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$... [truncated message content] |
From: <wis...@us...> - 2012-01-18 12:59:15
|
Revision: 8753 http://xoops.svn.sourceforge.net/xoops/?rev=8753&view=rev Author: wishcraft Date: 2012-01-18 12:59:05 +0000 (Wed, 18 Jan 2012) Log Message: ----------- WURFL 2.02 - Fixed Device Detection and Theme Selection - Added Useragent Spy in Admin Added Paths: ----------- XoopsModules/wurfl/releases/2.02/ XoopsModules/wurfl/releases/2.02/htdocs/ XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/ XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/ XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.devices.png XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.import.png XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.useragents.png XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.devices.png XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.import.png XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.useragents.png XoopsModules/wurfl/releases/2.02/htdocs/modules/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/about.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/ajax.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bearer.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bugs.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/cache.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/chtml_ui.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/css.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/dashboard.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/devices.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/display.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/drm.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/flash_lite.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/header.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/image_format.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/import.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/j2me.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/markup.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/menu.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/mms.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/object_download.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/pdf.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/playback.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/processes.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/product_info.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/rss.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/security.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/sms.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/sound_format.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/storage.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/streaming.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/transcoding.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/useragents.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/wap_push.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/wml_ui.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/wta.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/xhtml_ui.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/ajax.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/bearer.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/bugs.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/cache.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/chtml_ui.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/css.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/devices.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/display.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/drm.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/flash_lite.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/image_format.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/j2me.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/markup.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/mms.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/object_download.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/pdf.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/playback.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/product_info.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/rss.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/security.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/sms.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/sound_format.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/storage.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/streaming.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/transcoding.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/wap_push.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/wml_ui.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/wta.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/class/xhtml_ui.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/changelog.txt XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/credits.txt XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/install.txt XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/lang_diff.txt XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/licence.txt XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/docs/readme.txt XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/images/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/images/Thumbs.db XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/images/import.png XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/images/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/images/wurfl_slogo.png XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/form.objects.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/form.wurfl.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/formselectdevice.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/functions.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/include/update.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/admin.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/forms.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/help/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/help/help.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/help/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/main.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/language/english/modinfo.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/preloads/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/preloads/core.php XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/preloads/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/resource/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/resource/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/resource/wurfl.xml XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/sql/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/sql/index.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/sql/mysql.sql XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_ajax.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_bearer.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_bugs.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_cache.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_chtml_ui.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_css.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_display.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_drm.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_flash_lite.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_image_format.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_j2me.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_markup.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_mms.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_object_download.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_pdf.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_playback.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_product_info.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_rss.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_security.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_sms.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_sound_format.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_storage.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_streaming.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_transcoding.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_wap_push.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_wml_ui.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_wta.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_create_xhtml_ui.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_devices_edit.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_devices_list.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_import.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_import_errors.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_import_finished.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_import_redirect.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_ajax.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_bearer.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_bugs.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_cache.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_chtml_ui.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_css.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_display.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_drm.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_flash_lite.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_image_format.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_j2me.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_markup.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_mms.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_object_download.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_pdf.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_playback.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_product_info.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_rss.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_security.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_sms.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_sound_format.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_storage.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_streaming.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_transcoding.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_useragents.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_wap_push.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_wml_ui.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_wta.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/templates/wurfl_cpanel_list_xhtml_ui.html XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/xoops_version.php Added: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.devices.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.devices.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.import.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/16/wurfl.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.devices.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.devices.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.import.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.02/htdocs/Frameworks/moduleclasses/icons/32/wurfl.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/about.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/about.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/about.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,73 @@ +<?php +// $Id: about.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// 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. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + + xoops_cp_header(); + wurfl_adminMenu(5, 'about.php'); + $paypalitemno='WURFL20'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_WURFL_AM_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['wurflModule']->getVar('dirname')), strtoupper($GLOBALS['wurflModule']->getVar('dirname')). ' '.$GLOBALS['wurflModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/ajax.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/ajax.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/ajax.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bearer.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bearer.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bearer.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bugs.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bugs.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/bugs.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/cache.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/cache.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/cache.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/chtml_ui.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/chtml_ui.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/chtml_ui.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/css.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/css.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/css.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/dashboard.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/dashboard.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/dashboard.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,25 @@ +<?php + include ('header.php'); + + xoops_loadLanguage('forms', 'wurfl'); + $op = (isset($_REQUEST['op']))? $_REQUEST['op'] : "default"; + switch ($op) { + case "default": + default: + xoops_cp_header(); + wurfl_adminMenu(1, 'dashboard.php'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_WURFL_FRM_RECORDS); + foreach(array( 'devices', 'ajax', 'bearer', 'bugs', 'cache', 'chtml_ui', 'css', 'display', 'drm', 'flash_lite', 'image_format', + 'j2me', 'markup', 'mms', 'object_download', 'pdf', 'playback', 'product_info', 'rss', 'security', + 'sms', 'sound_format', 'storage', 'streaming', 'transcoding', 'wap_push', 'wml_ui', 'wta', 'xhtml_ui' ) as $class) { + $class_handler = xoops_getmodulehandler($class, 'wurfl'); + $indexAdmin->addInfoBoxLine(_WURFL_FRM_RECORDS, "<label>".defined('_WURFL_FRM_RECORDS_COUNT_'.strtoupper($class))?constant('_WURFL_FRM_RECORDS_COUNT_'.strtoupper($class)):'_WURFL_FRM_RECORDS_COUNT_'.strtoupper($class)."</label>", $class_handler->getCount(), ($class_handler->getCount()>0)?'Green':'Red'); + } + echo $indexAdmin->renderIndex(); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + break; + } + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/devices.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/devices.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/devices.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,133 @@ +<?php + + require('header.php'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"devices"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'ASC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'did'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch ($op) { + case "devices": + $op = 'devices'; + switch ($fct) + { + default: + case "list": + wurfl_adminMenu(2, 'devices.php'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + + $criteria = $devices_handler->getFilterCriteria($filter); + $ttl = $devices_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'did'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'did','id','user_agent','fallback','manufacture','model','series') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_WURLF_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_WURLF_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_WURLF_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $devices_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['wurflModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $devicess = $devices_handler->getObjects($criteria, true); + foreach($devicess as $did => $devices) { + $GLOBALS['xoopsTpl']->append('devices', $devices->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', wurfl_devices_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_devices_list.html'); + break; + + case "new": + case "edit": + + wurfl_adminMenu(2, 'devices.php'); + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + if (isset($_REQUEST['did'])) { + $devices = $devices_handler->get(intval($_REQUEST['did'])); + } else { + $devices = $devices_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $devices->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_devices_edit.html'); + break; + case "save": + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + $id=0; + if ($id=intval($_REQUEST['did'])) { + $devices = $devices_handler->get($id); + } else { + $devices = $devices_handler->create(); + } + $devices->setVars($_POST[$id]); + + if (!$id=$devices_handler->insert($devices)) { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_FAILEDTOSAVE); + exit(0); + } else { + redirect_header('devices.php?op='.$op.'&fct=edit&did='.$id.'&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + foreach($_REQUEST['did'] as $id) { + $devices = $devices_handler->get($id); + $devices->setVars($_POST[$id]); + if (!$devices_handler->insert($devices)) { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + $id=0; + if (isset($_POST['did'])&&$id=intval($_POST['did'])) { + $devices = $devices_handler->get($id); + if (!$devices_handler->delete($devices)) { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_DELETED); + exit(0); + } + } else { + $devices = $devices_handler->get(intval($_REQUEST['did'])); + xoops_confirm(array('did'=>$_REQUEST['did'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'devices.php', sprintf(_WURFL_AM_MSG_DEVICES_DELETE, $devices->getTitle())); + } + break; + } + break; + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/display.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/display.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/display.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/drm.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/drm.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/drm.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/flash_lite.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/flash_lite.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/flash_lite.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/header.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/header.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/header.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,72 @@ +<?php + + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['wurflModule'] = $module_handler->getByDirname('wurfl'); + $GLOBALS['wurflModuleConfig'] = $config_handler->getConfigList($GLOBALS['wurflModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + } + + $GLOBALS['wurflImageIcon'] = XOOPS_URL .'/'. $GLOBALS['wurflModule']->getInfo('icons16'); + $GLOBALS['wurflImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['wurflModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['wurflModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['wurflImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['wurflImageAdmin']); + + include(dirname(dirname(__FILE__)).'/include/functions.php'); + + include(dirname(dirname(__FILE__)).'/include/form.objects.php'); + + include(dirname(dirname(__FILE__)).'/include/form.wurfl.php'); + + xoops_loadLanguage('admin', 'wurfl'); + xoops_loadLanguage('forms', 'wurfl'); + + $parts = explode('.', strtolower(basename($_SERVER['PHP_SELF']))); + unset($parts[sizeof($parts)-1]); + $GLOBALS['op'] = isset($_REQUEST['op'])?$_REQUEST['op']:implode('.', $parts); + $GLOBALS['fct'] = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $GLOBALS['limit'] = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $GLOBALS['start'] = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $GLOBALS['order'] = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $GLOBALS['filter'] = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/image_format.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/image_format.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/image_format.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/import.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/import.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/import.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,188 @@ +<?php + ini_set('memory_limit', '256M'); + + require dirname(__FILE__).'/header.php'; + + xoops_cp_header(); + + $GLOBALS['op'] = isset($_REQUEST['op'])?(string)($_REQUEST['op']):'import'; + $GLOBALS['fct'] = isset($_REQUEST['fct'])?(string)($_REQUEST['fct']):'form'; + $linenum = isset($_REQUEST['linenum'])?intval($_REQUEST['linenum']):0; + $bytes = isset($_REQUEST['bytes'])?intval($_REQUEST['bytes']):0; + $xmlfile = isset($_REQUEST['xmlfile'])?(string)($_REQUEST['xmlfile']):''; + $rnum = isset($_REQUEST['rnum'])?(string)($_REQUEST['rnum']):0; + + switch ($GLOBALS['op']) { + default: + case 'import': + switch ($GLOBALS['fct']) { + case "go": + if ($linenum==0&&$rnum==0) { + + $tbl[1] = "wurfl_devices_xhtml_ui"; + $tbl[2] = "wurfl_devices_wta"; + $tbl[3] = "wurfl_devices_wml_ui"; + $tbl[4] = "wurfl_devices_wap_push"; + $tbl[5] = "wurfl_devices_transcoding"; + $tbl[6] = "wurfl_devices_streaming"; + $tbl[7] = "wurfl_devices_storage"; + $tbl[8] = "wurfl_devices_sound_format"; + $tbl[9] = "wurfl_devices_sms"; + $tbl[10] = "wurfl_devices_security"; + $tbl[11] = "wurfl_devices_rss"; + $tbl[12] = "wurfl_devices_product_info"; + $tbl[13] = "wurfl_devices_playback"; + $tbl[14] = "wurfl_devices_pdf"; + $tbl[15] = "wurfl_devices_rss"; + $tbl[16] = "wurfl_devices_object_download"; + $tbl[17] = "wurfl_devices_mms"; + $tbl[18] = "wurfl_devices_markup"; + $tbl[19] = "wurfl_devices_j2me"; + $tbl[20] = "wurfl_devices_image_format"; + $tbl[21] = "wurfl_devices_flash_lite"; + $tbl[22] = "wurfl_devices_drm"; + $tbl[23] = "wurfl_devices_display"; + $tbl[24] = "wurfl_devices_css"; + $tbl[25] = "wurfl_devices_chtml_ui"; + $tbl[26] = "wurfl_devices_cache"; + $tbl[27] = "wurfl_devices_bugs"; + $tbl[26] = "wurfl_devices_bearer"; + $tbl[27] = "wurfl_devices_ajax"; + $tbl[28] = "wurfl_devices"; + + foreach($tbl as $id => $table) + @$GLOBALS['xoopsDB']->queryF("TRUNCATE TABLES ".$GLOBALS['xoopsDB']->prefix($table)); + + } else { + + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('line', $linenum); + $GLOBALS['xoopsTpl']->assign('redirect', $rnum); + $GLOBALS['xoopsTpl']->assign('file', $xmlfile); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import_redirect.html'); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + + } + + set_time_limit(3600); + $timer['start'] = time(); + if (file_exists($xmlfile)) { + $handle = @fopen($xmlfile, "r"); + if ($handle) { + if ($linenum>0) { + for($ii=0;$i<$linenum;$ii++) { + if (!feof($handle)) { + $skip = fgets($handle, 4096); + } + } + } + while (!feof($handle)) { + if (time()-$timer['start']>2400) { + $rnum++; + redirect_header("import.php?op=$op&fct=go&xmlfile=".urlencode($xmlfile)."&bytes=$bytes&linenum=$linenum&rnum=$rnum", 3, sprintf(_WURFL_AM_TIMEREDIRECT, $linenum, $rnum)); + exit(0); + } + + $buffer = fgets($handle, 4096); + $linenum++; + if (strpos(' '.$buffer, '<device ')>0) + $device = array(0=>'<?xml version="1.0" encoding="UTF-8"?>', + 1=>'<wurlf>'); + $device[] = $buffer; + if (strpos(' '.$buffer, '</device>')>0) + { + $device[] = '</wurlf>'; + $bytes += strlen(implode("\n",$device)); + $xml = wurfl_xml2array(implode("\n",$device), 1, 'tag'); + foreach($xml as $key => $ele) { + switch($ele['tag']) { + case "device": + if ($ele['type']=='open'){ + $deviceHandler =& xoops_getmodulehandler('devices', 'wurfl'); + $wdevice = $deviceHandler->create(); + foreach($ele['attributes'] as $field => $value) + $wdevice->setVar($field, $value); + $did = $deviceHandler->insert($wdevice); + } + break; + case "group": + if ($ele['type']=='open'){ + if (file_exists(XOOPS_ROOT_PATH."/modules/wurfl/class/".$ele['attributes']['id'].".php")) { + $skip_group = false; + $groupHandler =& xoops_getmodulehandler($ele['attributes']['id'], 'wurfl'); + $group = $groupHandler->create(); + $group->setVar('did', $did); + } else { + $skip_group = true; + } + } else { + if ($skip_group==false) { + $groupHandler->insert($group); + unset($group); + unset($groupHandler); + } + } + break; + case "capability": + if ($ele['type']=='complete'&&$skip_group==false){ + if (is_numeric($ele['attributes']['value'])) + $value = intval($ele['attributes']['value']); + elseif ($ele['attributes']['value']=='true') + $value = true; + elseif ($ele['attributes']['value']=='false') + $value = false; + else + $value = $ele['attributes']['value']; + + $group->setVar($ele['attributes']['name'], $value); + } + break; + } + } + } + } + fclose($handle); + } + redirect_header("import.php?op=$op&fct=finished&xmlfile=".urlencode($xmlfile)."&linenum=$linenum&rnum=$rnum&bytes=$bytes", 3, sprintf(_WURFL_AM_TIMEREDIRECT, $linenum, $rnum)); + } else + redirect_header("import.php?op=$op&fct=error&xmlfile=".urlencode($xmlfile), 10, _WURFL_AM_FILENOTFOUND); + break; + case 'finished': + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('lines', number_format($linenum,0)); + $GLOBALS['xoopsTpl']->assign('bytes', number_format($bytes,0)); + $GLOBALS['xoopsTpl']->assign('redirects', $rnum); + $GLOBALS['xoopsTpl']->assign('file', $xmlfile); + $devices_handler = xoops_getmodulehandler('devices', 'wurfl'); + $GLOBALS['xoopsTpl']->assign('devices', $devices_handler->getCount(NULL)); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import_finished.html'); + break; + + case 'error': + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('file', $xmlfile); + $GLOBALS['xoopsTpl']->assign('file_exist', file_exists($xmlfile)); + $GLOBALS['xoopsTpl']->assign('xml_parser', function_exists('xml_parser_create')); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import_errors.html'); + break; + + case 'list': + default: + if (!function_exists('xml_parser_create')) { + redirect_header("import.php?op=$op&fct=error", 10, _WURFL_AM_XMLPARSER_NOTFOUND); + exit; + } + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('form', wurfl_form_import_xml()); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import.html'); + break; + + } + + break; + } + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); +?> + Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/index.html =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/index.html (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/index.html 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/j2me.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/j2me.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/j2me.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/markup.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/markup.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/markup.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/menu.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/menu.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/menu.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,33 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +$module_handler = xoops_gethandler('module'); +$GLOBALS['wurflModule'] = $module_handler->getByDirname('wurfl'); +global $adminmenu; +$adminmenu = array(); +$adminmenu[1]= array("link" => "admin/dashboard.php", + "title" => _WURFL_MI_DASHBOARD, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/home.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/home.png"); + +$adminmenu[2]= array("link" => "admin/devices.php", + "title" => _WURFL_MI_DEVICES, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.devices.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.devices.png"); + +$adminmenu[3]= array("link" => "admin/import.php", + "title" => _WURFL_MI_IMPORTXML, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.import.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.import.png"); + +$adminmenu[4]= array("link" => "admin/useragents.php", + "title" => _WURFL_MI_USERAGENTS, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.useragents.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.useragents.png"); + +$adminmenu[5]= array("link" => "admin/about.php", + "title" => _WURFL_MI_ABOUT, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/about.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/about.png"); + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/mms.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/mms.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/mms.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/object_download.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/object_download.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/object_download.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/pdf.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/pdf.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/pdf.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/playback.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/playback.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/playback.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/processes.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/processes.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/processes.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,54 @@ +<?php + + if (!defined('XOOPS_ROOT_PATH')) die(_NOPERM); + + if (!in_array($GLOBALS['op'], array( 'ajax', 'bearer', 'bugs', 'cache', 'chtml_ui', 'css', 'display', 'drm', 'flash_lite', 'image_format', + 'j2me', 'markup', 'mms', 'object_download', 'pdf', 'playback', 'product_info', 'rss', 'security', + 'sms', 'sound_format', 'storage', 'streaming', 'transcoding', 'wap_push', 'wml_ui', 'wta', 'xhtml_ui' ))) { + redirect_header('dashboard.php', 10, _NOPERM); + exit; + } + + $handler = xoops_getmodulehandler($GLOBALS['op'], 'wurfl'); + switch($GLOBALS['fct']) { + case 'list': + $object = $handler->get($_REQUEST['did']); + xoops_cp_header(); + wurfl_adminMenu(3, 'devices.php'); + $GLOBALS['xoopsTpl']->assign('form', wurfl_form_general($object, $GLOBALS['op'], false)); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_list_'.$GLOBALS['op'].'.html'); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + exit; + break; + case 'create': + $object = $handler->create(); + xoops_cp_header(); + wurfl_adminMenu(3, 'devices.php'); + $GLOBALS['xoopsTpl']->assign('form', wurfl_form_general($object, $GLOBALS['op'], true)); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_create_'.$GLOBALS['op'].'.html'); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + exit; + break; + case 'new': + $object = $handler->create(); + $object->setVars($_POST); + if ($handler->insert($object)) { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_CREATEWENTOK); + } else { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_CREATEFAILED); + } + exit; + case 'save': + $object = $handler->get($_REQUEST['did']); + $object->setVars($_POST); + if ($handler->insert($object)) { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_SAVEWENTOK); + } else { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_SAVEFAILED); + } + exit; + } + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/product_info.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/product_info.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/product_info.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/rss.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/rss.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/rss.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/security.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/security.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/security.php 2012-01-18 12:59:05 UTC (rev 8753) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/sms.php =================================================================== --- XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/sms.php (rev 0) +++ XoopsModules/wurfl/releases/2.02/htdocs/modules/wurfl/admin/sms.php 2012... [truncated message content] |
From: <wis...@us...> - 2012-01-18 12:55:56
|
Revision: 8752 http://xoops.svn.sourceforge.net/xoops/?rev=8752&view=rev Author: wishcraft Date: 2012-01-18 12:55:43 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Flowplayer 1.12 - Added Useragent Spy to Admin Added Paths: ----------- XoopsModules/flowplayer/releases/1.12/ XoopsModules/flowplayer/releases/1.12/docs/ XoopsModules/flowplayer/releases/1.12/docs/licence.txt XoopsModules/flowplayer/releases/1.12/htdocs/ XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/ XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/ XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png XoopsModules/flowplayer/releases/1.12/htdocs/modules/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/header.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/menu.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/blocks/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/blocks/flowplayer_block_player.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/blocks/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/class/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/class/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/class/mimetypes.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/class/player.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/changelog.txt XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/credits.txt XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/install.txt XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/lang_diff.txt XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/licence.txt XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/docs/readme.txt XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/dojson_player.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/header.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/flowplayer_slogo.png XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/icons/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/icons/admin/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/icons/admin/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/icons/admin/video.png XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/icons/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/images/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/JSON.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/formobjects.flowplayer.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/forms.flowplayer.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/formselectmimetype.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/formselectplayer.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/formselectsupport.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/functions.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/update.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/include/uploader.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/index.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/js/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/js/core.js XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/js/flowplayer-3.2.6.min.js XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/js/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/js/json_functions.js XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/js/video.js XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/admin.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/blocks.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/forms.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/mainfile.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/modinfo.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/style.css XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/english/video-js.css XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/language/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/preloads/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/preloads/core.php XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/preloads/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/sql/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/sql/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/sql/mysql.sql XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/swf/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/swf/flowplayer-3.2.7.swf XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/swf/flowplayer.controls-3.2.5.swf XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/swf/flowplayer.rtmp-3.2.3.swf XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/swf/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/blocks/ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/blocks/flowplayer_block_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/blocks/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_edit.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_list.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_edit.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_list.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_cpanel_useragents_list.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_flash_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_html5_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_flash_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_html5_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_ios_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_other_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtmp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtsp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_silverlight_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_ios_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_other_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_rstp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_rtmp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_index_silverlight_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_flash_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_html5_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_ios_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_other_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtmp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtsp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_block_silverlight_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_flash_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_html5_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_ios_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_other_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_rtmp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_rtsp_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/flowplayer_json_silverlight_player.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/templates/index.html XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/xoops_version.php Added: XoopsModules/flowplayer/releases/1.12/docs/licence.txt =================================================================== --- XoopsModules/flowplayer/releases/1.12/docs/licence.txt (rev 0) +++ XoopsModules/flowplayer/releases/1.12/docs/licence.txt 2012-01-18 12:55:43 UTC (rev 8752) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.12/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/header.php =================================================================== --- XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/header.php (rev 0) +++ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/header.php 2012-01-18 12:55:43 UTC (rev 8752) @@ -0,0 +1,61 @@ +<?php + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['flowplayerModule'] = $module_handler->getByDirname('flowplayer'); + $GLOBALS['flowplayerModuleConfig'] = $config_handler->getConfigList($GLOBALS['flowplayerModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo flowplayer_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['flowplayerImageIcon'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons16'); + $GLOBALS['flowplayerImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['flowplayerModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['flowplayerImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['flowplayerImageAdmin']); + + + require_once('../include/functions.php'); + require_once('../include/formobjects.flowplayer.php'); + require_once('../include/forms.flowplayer.php'); + + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/modinfo.php'); + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/forms.php'); + + +?> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.html =================================================================== --- XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.html (rev 0) +++ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.html 2012-01-18 12:55:43 UTC (rev 8752) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.php =================================================================== --- XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.php (rev 0) +++ XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/index.php 2012-01-18 12:55:43 UTC (rev 8752) @@ -0,0 +1,397 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'flowplayer'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "dashboard": + default: + echo flowplayer_adminMenu(0); + error_reporting(E_ALL); + $player_handler = xoops_getmodulehandler('player', 'flowplayer'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLATFILES."</label>", $player_handler->getCount(new Criteria('stream', '0', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTMPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTSPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLASHSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_IOSSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green'); + $players = $player_handler->getObjects(new Criteria('`default`', '1'), false); + if (is_object($players[0])) { + $player = $players[0]; + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_DEFAULT); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/flowplayer/?fid='.$player->getVar('fid').'&iframe=1&width=320px&height=200px" style="width:320px;height:200px;"></iframe>"', '', 'Green'); + } + echo $indexAdmin->renderIndex(); + break; + case "about": + echo flowplayer_adminMenu(4); + $paypalitemno='FLOWPLAYER106'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_TWITTERBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')), strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')). ' '.$GLOBALS['flowplayerModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + break; + case "agents": + flowplayer_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + xoops_load('XoopsCache'); + $ret = XoopsCache::read('flowplayer_user_agents'); + asort($ret, SORT_DESC); + $ttl = count($ret); + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + foreach (array( 'time','player','agents','user') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + $s=0; + $i=0; + foreach($ret as $time => $agent) { + if (is_array($agent)&&$s>=$start&&$i<=$limit) { + $GLOBALS['xoopsTpl']->append('useragents', array('time'=>date(_DATESTRING, $time), 'player'=>$agent['player'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent'])); + $i++; + } + $s++; + } + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_useragents_list.html'); + break; + + + case "player": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $criteria = $player_handler->getFilterCriteria($filter); + $ttl = $player_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'fid','name','source','reference','height','width','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $player_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $players = $player_handler->getObjects($criteria, true); + foreach($players as $cid => $player) { + if (is_object($player)) + $GLOBALS['xoopsTpl']->append('players', $player->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $player = $player_handler->get(intval($_REQUEST['id'])); + } else { + $player = $player_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form($player)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_edit.html'); + break; + case "save": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $player = $player_handler->get($id); + } else { + $player = $player_handler->create(); + } + $player->setVars($_POST[$id]); + if (!$id=$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } else { + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + include_once($GLOBALS['xoops']->path('modules/flowplayer/include/uploader.php')); + $player = $player_handler->get($id); + $uploader = new FlowplayerMediaUploader($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']), explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_mimetype']), $GLOBALS['flowplayerModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($player->getVar('poster'))) + unlink($GLOBALS['xoops']->path($player->getVar('path')).$player->getVar('poster')); + + $player->setVar('path', $GLOBALS['flowplayerModuleConfig']['upload_areas']); + $player->setVar('poster', $uploader->getSavedFileName()); + @$player_handler->insert($player); + } + } else { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $player = $player_handler->get($id); + $player->setVars($_POST[$id]); + if (!$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + exit(0); + break; + case "delete": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $player = $player_handler->get($id); + if (!$player_handler->delete($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_DELETED); + exit(0); + } + } else { + $player = $player_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_PLAYER_DELETE, $player->getVar('name'))); + } + break; + } + break; + case "mimetypes": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $criteria = $mimetypes_handler->getFilterCriteria($filter); + $ttl = $mimetypes_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'mid','support','name','mimetype','codecs','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mimetypes_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $mimetypess = $mimetypes_handler->getObjects($criteria, true); + foreach($mimetypess as $cid => $mimetypes) { + if (is_object($mimetypes)) + $GLOBALS['xoopsTpl']->append('mimetypes', $mimetypes->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get(intval($_REQUEST['id'])); + } else { + $mimetypes = $mimetypes_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form($mimetypes)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_edit.html'); + break; + case "save": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + } else { + $mimetypes = $mimetypes_handler->create(); + } + $mimetypes->setVars($_POST[$id]); + if (!$id=$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } else { + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $mimetypes = $mimetypes_handler->get($id); + $mimetypes->setVars($_POST[$id]); + if (!$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + if (!$mimetypes_handler->delete($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_DELETED); + exit(0); + } + } else { + $mimetypes = $mimetypes_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_MIMETYPES_DELETE, $mimetypes->getVar('name'))); + } + break; + } + break; + } + + flowplayer_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.12/htdocs/modules/flowplayer/admin/menu.php =========... [truncated message content] |
From: <vo...@us...> - 2012-01-18 11:25:38
|
Revision: 8751 http://xoops.svn.sourceforge.net/xoops/?rev=8751&view=rev Author: voltan1 Date: 2012-01-18 11:25:27 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Fix some problems Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/backend.php XoopsModules/fmcontent/branches/news/class/file.php XoopsModules/fmcontent/branches/news/submit.php XoopsModules/fmcontent/branches/news/templates/news_archive.html XoopsModules/fmcontent/branches/news/templates/news_topic.html Modified: XoopsModules/fmcontent/branches/news/admin/backend.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/admin/backend.php 2012-01-18 11:25:27 UTC (rev 8751) @@ -178,7 +178,7 @@ } // file - if($_REQUEST ['file_name']) { + if(isset($_REQUEST['xoops_upload_file'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); @@ -274,7 +274,7 @@ } // file - if($_REQUEST ['file_name']) { + if(isset($_REQUEST['xoops_upload_file'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); Modified: XoopsModules/fmcontent/branches/news/class/file.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/file.php 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/class/file.php 2012-01-18 11:25:27 UTC (rev 8751) @@ -169,7 +169,7 @@ foreach ( $files as $root ) { $tab = array (); $tab = $root->toArray (); - $tab ['fileurl'] = XOOPS_URL . xoops_getModuleOption ( 'file_dir', $NewsModule->getVar ( 'dirname' ) ) . $root->getVar ( 'file_name' ); + $tab ['fileurl'] = XOOPS_URL . xoops_getModuleOption ( 'file_dir', $NewsModule->getVar ( 'dirname' ) ) . '/' . $root->getVar ( 'file_name' ); $ret [] = $tab; } } Modified: XoopsModules/fmcontent/branches/news/submit.php =================================================================== --- XoopsModules/fmcontent/branches/news/submit.php 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/submit.php 2012-01-18 11:25:27 UTC (rev 8751) @@ -73,6 +73,7 @@ $obj->setVar ( 'story_desc', NewsUtils::News_AjaxFilter ( $_REQUEST ['story_title'] ) ); $obj->setVar ( 'story_create', time () ); $obj->setVar ( 'story_update', time () ); + $obj->setVar ( 'story_publish', time () ); $obj->setVar ( 'story_groups', $groups ); //Form topic_img @@ -99,7 +100,7 @@ } // file - if($_REQUEST ['file_name']) { + if(isset($_REQUEST['xoops_upload_file'])) { $fileobj = $file_handler->create (); $fileobj->setVar ( 'file_date', time () ); $fileobj->setVar ( 'file_modid', $NewsModule->getVar ( 'mid' ) ); Modified: XoopsModules/fmcontent/branches/news/templates/news_archive.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_archive.html 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/templates/news_archive.html 2012-01-18 11:25:27 UTC (rev 8751) @@ -1,6 +1,6 @@ <div class="news-archive"> <div class="pad2 marg2"> - <table> + <table class="outer"> <tr> <th><{$smarty.const._NEWS_MD_ARCHIVE}></th> </tr> Modified: XoopsModules/fmcontent/branches/news/templates/news_topic.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_topic.html 2012-01-18 05:24:13 UTC (rev 8750) +++ XoopsModules/fmcontent/branches/news/templates/news_topic.html 2012-01-18 11:25:27 UTC (rev 8751) @@ -2,7 +2,7 @@ <{if $advertisement}> <div class="itemAde"><{$advertisement}></div> <{/if}> - <table id="xo-content-data" class="outer" cellspacing="1" width="100%"> + <table class="outer"> <thead> <th class="txtcenter"><{$smarty.const._NEWS_MD_TOPIC_NAME}></th> <th class="txtcenter"><{$smarty.const._NEWS_MD_TOPIC_IMG}></th> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-01-18 05:24:22
|
Revision: 8750 http://xoops.svn.sourceforge.net/xoops/?rev=8750&view=rev Author: beckmi Date: 2012-01-18 05:24:13 +0000 (Wed, 18 Jan 2012) Log Message: ----------- - converting to ModuleAdmin - removing hard-coded links - fixing translations Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php XoopsModules/smallworld/trunk/smallworld/admin/index.php XoopsModules/smallworld/trunk/smallworld/admin/menu.php XoopsModules/smallworld/trunk/smallworld/admin/statistics.php XoopsModules/smallworld/trunk/smallworld/language/english/admin.php XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php XoopsModules/smallworld/trunk/smallworld/templates/getlastcom.html XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html XoopsModules/smallworld/trunk/smallworld/templates/getmore.html XoopsModules/smallworld/trunk/smallworld/templates/smallworld_friends_template.html XoopsModules/smallworld/trunk/smallworld/templates/smallworld_index.html XoopsModules/smallworld/trunk/smallworld/templates/smallworld_permalink.html XoopsModules/smallworld/trunk/smallworld/templates/smallworld_share.html XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html XoopsModules/smallworld/trunk/smallworld/xoops_version.php Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/admin/about.php XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php XoopsModules/smallworld/trunk/smallworld/admin/index0.php XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt XoopsModules/smallworld/trunk/smallworld/docs/credits.txt XoopsModules/smallworld/trunk/smallworld/docs/install.txt XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt XoopsModules/smallworld/trunk/smallworld/docs/licence.txt XoopsModules/smallworld/trunk/smallworld/docs/readme.txt XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php XoopsModules/smallworld/trunk/smallworld/language/danish/help/ XoopsModules/smallworld/trunk/smallworld/language/danish/help/help.html XoopsModules/smallworld/trunk/smallworld/language/danish/help/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/ XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_attencionneeded.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_complaint.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_newcomment.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_register.html XoopsModules/smallworld/trunk/smallworld/language/danish/main.php XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php XoopsModules/smallworld/trunk/smallworld/language/english/help/ XoopsModules/smallworld/trunk/smallworld/language/english/help/help.html XoopsModules/smallworld/trunk/smallworld/language/english/help/index.html Added: XoopsModules/smallworld/trunk/smallworld/admin/about.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/about.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,29 @@ +<?php +/** + * Birthday module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package birthday + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ + **/ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('WKFZBRBGMYKCA', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,28 @@ +<?php +/** +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license http://www.fsf.org/copyleft/gpl.html GNU public license +* @package modules +* @subpackage Small World +* @since 1.0.0 +* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +**/ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_SMALLWORLD_FOOTER . "\n" + ."</div>"; + +echo "<span style='margin: 27%; height: 50px; position: relative;'>"._AM_SMALLWORLD_SP."</span>"; + + +xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-18 05:17:13 UTC (rev 8749) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -1,53 +1,52 @@ <?php /** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright : The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license : http://www.fsf.org/copyleft/gpl.html GNU public license + * @module : Smallworld + * @Author : Michael Albertsen (http://culex.dk) <cu...@cu...> + * @copyright : 2011 Culex + * @Repository path: $HeadURL$ + * @Last committed: $Revision$ + * @Last changed by: $Author$ + * @Last changed date: $Date$ + * @ID : $Id$ + **/ - include '../../../mainfile.php'; - include_once XOOPS_ROOT_PATH.'/class/xoopsmodule.php'; - include XOOPS_ROOT_PATH.'/include/cp_functions.php'; - require_once XOOPS_ROOT_PATH.'/include/cp_header.php'; - global $xoopsModule; +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +include_once $path . '/class/xoopsmodule.php'; +require_once $path . '/include/cp_header.php'; - $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); - if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); - - }else{ - redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); - - } +global $xoopsModule; - $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); - $pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); - $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); - - if ( $xoopsUser ) { - $xoopsModule = XoopsModule::getByDirname("smallworld"); - if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { - redirect_header(XOOPS_URL."/",2,_NOPERM); - exit(); - } - } - else { - redirect_header(XOOPS_URL."/",2,_NOPERM); - exit(); - } +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); +if (file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))) { + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); -?> \ No newline at end of file +} else { + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); + +} + +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ($xoopsUser) { + $xoopsModule = XoopsModule::getByDirname("smallworld"); + if (!$xoopsUser->isAdmin($xoopsModule->mid())) { + redirect_header(XOOPS_URL . "/", 2, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/", 2, _NOPERM); + exit(); +} \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-18 05:17:13 UTC (rev 8749) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -19,20 +19,16 @@ * @ID: $Id$ **/ -require_once 'admin_header.php'; -require_once '../../../include/cp_header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -require_once XOOPS_ROOT_PATH . '/class/template.php'; +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; -if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} -$xoopsTpl->xoops_setCaching(0); - xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + + $admin = new SmallworldAdmin(); -$index_admin = new ModuleAdmin(); $tpl = new XoopsTpl(); $ai = array(); @@ -45,15 +41,15 @@ $totaldays = $admin->CountDays(); // get average messages per day $avgperday = $admin->AvgMsgDay ($totaldays); -// Smallworld version number +// XIM version number $installversion = $admin->ModuleInstallVersion (); -// Smallworld install date +// XIM install date $installdate = $admin->ModuleInstallDate (); -//check current version of Smallworld, return desc,link,version if new available +//check current version of XIM, return desc,link,version if new available $installCheck = $admin->doCheckUpdate (); -// Count members using Smallworld +// Count members using XIM $sumallusers = $admin->TotalUsers (); // Find list of most active users (total) $admin->mostactiveusers_allround(); @@ -66,118 +62,21 @@ // FInd list of worst rated users overall $admin->topratedusers('down'); -$allusers_inspect = $admin->getAllUsers('yes'); - if (!empty($allusers_inspect)) { - foreach ($allusers_inspect as $data) { - $ai['id'] = $data['id']; - $ai['userid'] = $data['userid']; - $ai['username'] = $data['username']; - $ai['realname'] = $data['realname']; - $ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); - $ai['ip'] = $data['ip']; - $ai['complaint'] = $data['complaint']; - $ai['inspect_start'] = $data['inspect_start']; - $ai['inspect_stop'] = $data['inspect_stop']; - $ai['userinspect_timetotal'] = ($data['inspect_start'] + $data['inspect_stop'])-time(); - $xoopsTpl->append('allusersinspect', $ai); - } - } - $xoopsTpl->assign('allusersinspectcounter',count($ai)); -$allusers_noinspect = $admin->getAllUsers('no'); - if (!empty($allusers_noinspect)) { - foreach ($allusers_noinspect as $data) { - $ani['id'] = $data['id']; - $ani['userid'] = $data['userid']; - $ani['username'] = $data['username']; - $ani['realname'] = $data['realname']; - $ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); - $ani['ip'] = $data['ip']; - $ani['complaint'] = $data['complaint']; - $ani['inspect_start'] = ''; - $ani['inspect_stop'] = ''; - $ani['userinspect_timetotal'] = ''; - $xoopsTpl->append('allusersnoinspect', $ani); - } - } - $xoopsTpl->assign('allusersnoinspectcounter',count($ani)); -// ---------------- end of tabs ---------------- // +$indexAdmin->addInfoBox( _AM_SMALLWORLD_USERSTATS); +//$indexAdmin->addInfoBoxLine( _AM_XTUBE_MINDEX_VIDEOSUMMARY, "<infolabel>" .<{$lang_userstats}>. "</infolabel>", index.php); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_DATEOFFIRSTMESSAGE, $dateoffirstmessage, 'Green'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOTALUSERS, $totalusers, 'Red'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_AVERAGEMSGPERDAY, $avgperday, 'Red'); -// template assignments - // tab titles - $xoopsTpl->assign('lang_statistics', _AM_SMALLWORLD_STATISTICS_TITLE); - $xoopsTpl->assign('lang_moduleinfo', _AM_SMALLWORLD_MODULEINFO); - $xoopsTpl->assign('lang_userstats', _AM_SMALLWORLD_USERSTATS); - $xoopsTpl->assign('lang_installversion', _AM_SMALLWORLD_MODULEINSTALL); - $xoopsTpl->assign('lang_installversion_status', _AM_SMALLWORLD_UPDATE_STATUS); - $xoopsTpl->assign('lang_installdate', _AM_SMALLWORLD_INSTALLDATE); - $xoopsTpl->assign('lang_dateoffirstmessage', _AM_SMALLWORLD_DATEOFFIRSTMESSAGE); - $xoopsTpl->assign('lang_totalusers', _AM_SMALLWORLD_TOTALUSERS); - $xoopsTpl->assign('lang_averagemsgperday', _AM_SMALLWORLD_AVERAGEMSGPERDAY); - $xoopsTpl->assign('lang_topchatters',_AM_SMALLWORLD_TOPCHATTERS); - $xoopsTpl->assign('lang_topchatterstoday',_AM_SMALLWORLD_TOPCHATTERS_TODAY); - $xoopsTpl->assign('lang_toprated',_AM_SMALLWORLD_TOPRATEDUSERS); - $xoopsTpl->assign('lang_bottomrated',_AM_SMALLWORLD_BOTTOMRATEDUSERS); - $xoopsTpl->assign('lang_useradmin',_AM_SMALLWORLD_USERADMIN_TITLE); - $xoopsTpl->assign('lang_help',_AM_SMALLWORLD_HELP); - $xoopsTpl->assign('lang_prefs',_MI_SYSTEM_ADMENU6); - $xoopsTpl->assign('lang_prefslink',"<a href='../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule ->getVar('mid')."'>"._MI_SYSTEM_ADMENU6."</a>"); - - // help file from admin - $xoopsTpl->assign('lang_hlp_about',_AM_SMALLWORLD_HELP_ABOUT); - $xoopsTpl->assign('lang_hlp_preface',_AM_SMALLWORLD_HELP_PREFACE); - $xoopsTpl->assign('lang_hlp_requirements_t',_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS); - $xoopsTpl->assign('lang_hlp_requirements',_AM_SMALLWORLD_HELP_REQUIREMENTS); - $xoopsTpl->assign('lang_hlp_recommended_t',_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED); - $xoopsTpl->assign('lang_hlp_recommended',_AM_SMALLWORLD_HELP_RECOMMENDED); - $xoopsTpl->assign('lang_hlp_installation_t',_AM_SMALLWORLD_HELP_HEADER_INSTALLATION); - $xoopsTpl->assign('lang_hlp_firsttime',_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL); - $xoopsTpl->assign('lang_hlp_hostedplatform_t',_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM); - $xoopsTpl->assign('lang_hlp_hostedplatform',_AM_SMALLWORLD_HELP_HOSTED_PLATFORM); - $xoopsTpl->assign('lang_hlp_upgrading_t',_AM_SMALLWORLD_HELP_HEADER_UPGRADING); - $xoopsTpl->assign('lang_hlp_upgrading',_AM_SMALLWORLD_HELP_UPGRADING); - $xoopsTpl->assign('lang_hlp_faq_t',_AM_SMALLWORLD_HELP_HEADER_FAQ); - $xoopsTpl->assign('lang_hlp_commen1_t',_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1); - $xoopsTpl->assign('lang_hlp_commen1',_AM_SMALLWORLD_HELP_COMMENPROBLEMS1); - $xoopsTpl->assign('lang_hlp_contacts_t',_AM_SMALLWORLD_HELP_HEADER_CONTACTS); - $xoopsTpl->assign('lang_hlp_otherhelp',_AM_SMALLWORLD_HELP_OTHERHELP); - $xoopsTpl->assign('installversion', $installversion); - $xoopsTpl->assign('installdate', $installdate); - $xoopsTpl->assign('installversion_status',$installCheck); - $xoopsTpl->assign('dateoffirstmessage', $dateoffirstmessage); - $xoopsTpl->assign('totalusers', $sumallusers); - $xoopsTpl->assign('averagemsgperday', $avgperday); - $xoopsTpl->display('db:smallworld_admin.html'); - - global $xoTheme; - //Check Language - $lang = $xoopsConfig['language']; - // GET various variables from language folder - if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/variables.js')) { - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/variables.js'); - } else { - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/variables.js'); - } - -$adminscript= <<<SCRIPT - var smallworld_url="XOOPS_URL/modules/smallworld/"; - //var $ = jQuery(); -SCRIPT; - $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); - $xoTheme->addScript(XOOPS_URL.'/browse.php?Frameworks/jquery/jquery.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery-ui-1.8.11.custom.js'); - $xoTheme->addScript('modules/smallworld/js/smallworld_tabs.js'); - $xoTheme->addScript('','',$adminscript); - $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.form.js'); - $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.countdown.js'); - if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/jquery.ui.datepicker-language.js')) { - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.ui.datepicker-language.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.countdown.js'); - } else { - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.ui.datepicker-language.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.countdown.js'); - } - $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); - -xoops_cp_footer(); -?> +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPCHATTERS_TODAY, $avgperday, 'Red'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPCHATTERS, $avgperday, 'Red'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPRATEDUSERS, $avgperday, 'Red'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_BOTTOMRATEDUSERS, $avgperday, 'Red'); + + + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/admin/index0.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index0.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,183 @@ +<?php +/** +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/admin/index.php $ +* @Last committed: $Revision: 8707 $ +* @Last changed by: $Author: djculex $ +* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ +* @ID: $Id: index.php 8707 2012-01-13 08:40:50Z djculex $ +**/ + +require_once 'admin_header.php'; +require_once '../../../include/cp_header.php'; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); +require_once XOOPS_ROOT_PATH . '/class/template.php'; + + +if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} +$xoopsTpl->xoops_setCaching(0); + +xoops_cp_header(); + +$admin = new SmallworldAdmin(); +$index_admin = new ModuleAdmin(); +$tpl = new XoopsTpl(); + +$ai = array(); +$ani = array(); + +// --------------- First tab in admin --------------- +// Find oldest message and apply to template +$dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); +// Get days number +$totaldays = $admin->CountDays(); +// get average messages per day +$avgperday = $admin->AvgMsgDay ($totaldays); +// Smallworld version number +$installversion = $admin->ModuleInstallVersion (); +// Smallworld install date +$installdate = $admin->ModuleInstallDate (); + +//check current version of Smallworld, return desc,link,version if new available +$installCheck = $admin->doCheckUpdate (); + +// Count members using Smallworld +$sumallusers = $admin->TotalUsers (); +// Find list of most active users (total) +$admin->mostactiveusers_allround(); +// Find list of most active users (24 hours) +$admin->mostactiveusers_today(); + +// FInd list of best rated users overall +$admin->topratedusers('up'); + +// FInd list of worst rated users overall +$admin->topratedusers('down'); + +$allusers_inspect = $admin->getAllUsers('yes'); + if (!empty($allusers_inspect)) { + foreach ($allusers_inspect as $data) { + $ai['id'] = $data['id']; + $ai['userid'] = $data['userid']; + $ai['username'] = $data['username']; + $ai['realname'] = $data['realname']; + $ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ai['ip'] = $data['ip']; + $ai['complaint'] = $data['complaint']; + $ai['inspect_start'] = $data['inspect_start']; + $ai['inspect_stop'] = $data['inspect_stop']; + $ai['userinspect_timetotal'] = ($data['inspect_start'] + $data['inspect_stop'])-time(); + $xoopsTpl->append('allusersinspect', $ai); + } + } + $xoopsTpl->assign('allusersinspectcounter',count($ai)); + +$allusers_noinspect = $admin->getAllUsers('no'); + if (!empty($allusers_noinspect)) { + foreach ($allusers_noinspect as $data) { + $ani['id'] = $data['id']; + $ani['userid'] = $data['userid']; + $ani['username'] = $data['username']; + $ani['realname'] = $data['realname']; + $ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ani['ip'] = $data['ip']; + $ani['complaint'] = $data['complaint']; + $ani['inspect_start'] = ''; + $ani['inspect_stop'] = ''; + $ani['userinspect_timetotal'] = ''; + $xoopsTpl->append('allusersnoinspect', $ani); + } + } + $xoopsTpl->assign('allusersnoinspectcounter',count($ani)); +// ---------------- end of tabs ---------------- // + +// template assignments + // tab titles + $xoopsTpl->assign('lang_statistics', _AM_SMALLWORLD_STATISTICS_TITLE); + $xoopsTpl->assign('lang_moduleinfo', _AM_SMALLWORLD_MODULEINFO); + $xoopsTpl->assign('lang_userstats', _AM_SMALLWORLD_USERSTATS); + $xoopsTpl->assign('lang_installversion', _AM_SMALLWORLD_MODULEINSTALL); + $xoopsTpl->assign('lang_installversion_status', _AM_SMALLWORLD_UPDATE_STATUS); + $xoopsTpl->assign('lang_installdate', _AM_SMALLWORLD_INSTALLDATE); + $xoopsTpl->assign('lang_dateoffirstmessage', _AM_SMALLWORLD_DATEOFFIRSTMESSAGE); + $xoopsTpl->assign('lang_totalusers', _AM_SMALLWORLD_TOTALUSERS); + $xoopsTpl->assign('lang_averagemsgperday', _AM_SMALLWORLD_AVERAGEMSGPERDAY); + $xoopsTpl->assign('lang_topchatters',_AM_SMALLWORLD_TOPCHATTERS); + $xoopsTpl->assign('lang_topchatterstoday',_AM_SMALLWORLD_TOPCHATTERS_TODAY); + $xoopsTpl->assign('lang_toprated',_AM_SMALLWORLD_TOPRATEDUSERS); + $xoopsTpl->assign('lang_bottomrated',_AM_SMALLWORLD_BOTTOMRATEDUSERS); + $xoopsTpl->assign('lang_useradmin',_AM_SMALLWORLD_USERADMIN_TITLE); + $xoopsTpl->assign('lang_help',_AM_SMALLWORLD_HELP); + $xoopsTpl->assign('lang_prefs',_MI_SYSTEM_ADMENU6); + $xoopsTpl->assign('lang_prefslink',"<a href='../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule ->getVar('mid')."'>"._MI_SYSTEM_ADMENU6."</a>"); + + // help file from admin + $xoopsTpl->assign('lang_hlp_about',_AM_SMALLWORLD_HELP_ABOUT); + $xoopsTpl->assign('lang_hlp_preface',_AM_SMALLWORLD_HELP_PREFACE); + $xoopsTpl->assign('lang_hlp_requirements_t',_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS); + $xoopsTpl->assign('lang_hlp_requirements',_AM_SMALLWORLD_HELP_REQUIREMENTS); + $xoopsTpl->assign('lang_hlp_recommended_t',_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED); + $xoopsTpl->assign('lang_hlp_recommended',_AM_SMALLWORLD_HELP_RECOMMENDED); + $xoopsTpl->assign('lang_hlp_installation_t',_AM_SMALLWORLD_HELP_HEADER_INSTALLATION); + $xoopsTpl->assign('lang_hlp_firsttime',_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL); + $xoopsTpl->assign('lang_hlp_hostedplatform_t',_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM); + $xoopsTpl->assign('lang_hlp_hostedplatform',_AM_SMALLWORLD_HELP_HOSTED_PLATFORM); + $xoopsTpl->assign('lang_hlp_upgrading_t',_AM_SMALLWORLD_HELP_HEADER_UPGRADING); + $xoopsTpl->assign('lang_hlp_upgrading',_AM_SMALLWORLD_HELP_UPGRADING); + $xoopsTpl->assign('lang_hlp_faq_t',_AM_SMALLWORLD_HELP_HEADER_FAQ); + $xoopsTpl->assign('lang_hlp_commen1_t',_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1); + $xoopsTpl->assign('lang_hlp_commen1',_AM_SMALLWORLD_HELP_COMMENPROBLEMS1); + $xoopsTpl->assign('lang_hlp_contacts_t',_AM_SMALLWORLD_HELP_HEADER_CONTACTS); + $xoopsTpl->assign('lang_hlp_otherhelp',_AM_SMALLWORLD_HELP_OTHERHELP); + $xoopsTpl->assign('installversion', $installversion); + $xoopsTpl->assign('installdate', $installdate); + $xoopsTpl->assign('installversion_status',$installCheck); + $xoopsTpl->assign('dateoffirstmessage', $dateoffirstmessage); + $xoopsTpl->assign('totalusers', $sumallusers); + $xoopsTpl->assign('averagemsgperday', $avgperday); + $xoopsTpl->display('db:smallworld_admin.html'); + + global $xoTheme; + //Check Language + $lang = $xoopsConfig['language']; + // GET various variables from language folder + if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/variables.js')) { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/variables.js'); + } else { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/variables.js'); + } + +$adminscript= <<<SCRIPT + var smallworld_url="XOOPS_URL/modules/smallworld/"; + //var $ = jQuery(); +SCRIPT; + $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); + $xoTheme->addScript(XOOPS_URL.'/browse.php?Frameworks/jquery/jquery.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery-ui-1.8.11.custom.js'); + $xoTheme->addScript('modules/smallworld/js/smallworld_tabs.js'); + $xoTheme->addScript('','',$adminscript); + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.form.js'); + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/jquery.countdown.js'); + if ( file_exists(XOOPS_ROOT_PATH.'/modules/smallworld/language/js/'.$lang.'/jquery.ui.datepicker-language.js')) { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.ui.datepicker-language.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.countdown.js'); + } else { + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.ui.datepicker-language.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.countdown.js'); + } + $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); + +xoops_cp_footer(); +?> Modified: XoopsModules/smallworld/trunk/smallworld/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/menu.php 2012-01-18 05:17:13 UTC (rev 8749) +++ XoopsModules/smallworld/trunk/smallworld/admin/menu.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -24,6 +24,11 @@ $pathIcon32 = $module->getInfo('icons32'); $i = 1; +$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_INDEX; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['icon'] = $pathIcon32."/home.png"; + +$i++; $adminmenu[$i]['title'] = _MI_SMALLWORLD_ADMENU; $adminmenu[$i]['link'] = 'admin/moduleinfo.php'; $adminmenu[$i]['icon'] = $pathIcon32."/home.png"; @@ -38,8 +43,13 @@ $adminmenu[$i]['link'] = "admin/statistics.php"; $adminmenu[$i]['icon'] = $pathIcon32."/stats.png"; +//$i++; +//$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; +//$adminmenu[$i]['link'] = "admin/help.php"; +//$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; + $i++; -$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; -$adminmenu[$i]['link'] = "admin/help.php"; -$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; -?> \ No newline at end of file + +$adminmenu[$i]["title"] =_MI_SMALLWORLDMENU_ABOUT; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/statistics.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/statistics.php 2012-01-18 05:17:13 UTC (rev 8749) +++ XoopsModules/smallworld/trunk/smallworld/admin/statistics.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -74,6 +74,6 @@ global $xoTheme; $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); - + xoops_cp_footer(); -?> +?> \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt =================================================================== --- XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,7 @@ +Changelog + +------------- +v.1.00 +------------- +- Converted to XOOPS 2.5.x GUI (Mamba) +- Original development: (Culex) \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/docs/credits.txt =================================================================== --- XoopsModules/smallworld/trunk/smallworld/docs/credits.txt (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/docs/credits.txt 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,4 @@ +Credits +=============== + +Originally developed by Michael Albertsen (http://culex.dk) <cu...@cu...> Added: XoopsModules/smallworld/trunk/smallworld/docs/install.txt =================================================================== --- XoopsModules/smallworld/trunk/smallworld/docs/install.txt (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/docs/install.txt 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,6 @@ +INSTALL/UNISTALL +================= + +No special measures necessary, follow the standard installation process \x96 extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. + +Detailed instructions on installing modules are available in the XOOPS Operations Manual: http://goo.gl/adT2i \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt =================================================================== --- XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,14 @@ +LANGUAGE DIFFERENCES +===================== + +Below are language differences from a version to next version. + +Legend : ++ Added +- Removed +* Modified + +============= +1.0 +============= +Original Version \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/docs/licence.txt =================================================================== --- XoopsModules/smallworld/trunk/smallworld/docs/licence.txt (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/docs/licence.txt 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/smallworld/trunk/smallworld/docs/readme.txt =================================================================== --- XoopsModules/smallworld/trunk/smallworld/docs/readme.txt (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/docs/readme.txt 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,10 @@ +Smallworld is a Social Network system for XOOPS. + +Inspired by the Srinivas Tamada tutorials on Facebook scripting. +The base system has been re-written, adapted, and heavily expanded for XOOPS by Culex The module is featuring +like/dislike, bookmarking, wall system, image gallery, and is using XIM if installed. The admin side is featuring +deleting users, banning users based on time. A countdown is shown on user side to when it's back. And many more features. +It is fully supported by XOOPS version 2.5.0 and higher. + +Smallworld is released under the terms of the GNU General Public License (GPL) and is free to use and modify. +It is free to redistribute as long as you abide by the distribution terms of the GPL. \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-18 05:24:13 UTC (rev 8750) @@ -0,0 +1,123 @@ +<?php +/** +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/admin.php $ +* @Last committed: $Revision: 8707 $ +* @Last changed by: $Author: djculex $ +* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ +* @ID: $Id: admin.php 8707 2012-01-13 08:40:50Z djculex $ +**/ + + +// English language file for Smallworld Admin.php + +// tab titles + define('_AM_SMALLWORLD_ADMINMESSAGESEND','Post to all'); + define('_AM_SMALLWORLD_LOGSMAINTNANCE','Database maintenance'); + +// tab one in admin section +define('_AM_SMALLWORLD_MODULEINSTALL','Module version installed'); +define('_AM_SMALLWORLD_INSTALLDATE','Module installed on'); +define('_AM_SMALLWORLD_DATEOFFIRSTMESSAGE','Date of the oldest message'); +define('_AM_SMALLWORLD_TOTALUSERS','Total members using Smallworld'); +define('_AM_SMALLWORLD_AVERAGEMSGPERDAY','Average messages per day'); +define('_AM_SMALLWORLD_TOPCHATTERS','Most active users overall'); +define('_AM_SMALLWORLD_TOPCHATTERS_TODAY','Most active users in last 24 hours'); +define('_AM_SMALLWORLD_TOPRATEDUSERS','Higest rated users'); +define('_AM_SMALLWORLD_BOTTOMRATEDUSERS','Worst rated users'); +define('_AM_SMALLWORLD_STATISTICS_TITLE','Smallworld Statistics'); +define('_AM_SMALLWORLD_MODULEINFO','Module info'); +define('_AM_SMALLWORLD_USERSTATS','User stats'); +define('_AM_SMALLWORLD_NONEYET','No messages in database'); +define('_AM_SMALLWORLD_NO','no'); +define('_AM_SMALLWORLD_THEREARE','There are'); +define('_AM_SMALLWORLD_UPDATE_STATUS','Status of your Smallworld version:'); + +// tab two in admin section + +// tab three in admin section +define('_AM_SMALLWORLD_USERADMIN_TITLE','User administration'); +define('_AM_SMALLWORLD_USERADMININSPECT_TITLE','Users under admin inspection'); +define('_AM_SMALLWORLD_USERADMINNOINSPECT_TITLE','Normal users'); +define("_AM_SMALLWORLD_TITLE_IMAGE","User image"); +define("_AM_SMALLWORLD_TITLE_USERNAME","User name"); +define("_AM_SMALLWORLD_TITLE_REALNAME","Real name"); +define("_AM_SMALLWORLD_TITLE_IP","Ip"); +define("_AM_SMALLWORLD_TITLE_COMPLAINTS","Complaints received"); +define("_AM_SMALLWORLD_TITLE_INSPECTTIME","Inspection time"); +define("_AM_SMALLWORLD_TITLE_INSPECTADD","Add inspection time"); +define("_AM_SMALLWORLD_TITLE_DELETEUSER","Delete user account"); +define('_AM_SMALLWORLD_TITLE_INSPECTDELETE','Clear inspection time'); +define('_AM_SMALLWORLD_ADDTIMEDROPDOWN_MINUTES',' Minutes'); +define('_AM_SMALLWORLD_ADDTIMEDROPDOWN_NOCHANGE','No change'); + +// various others +define('_AM_SMALLWORLD_UPDATE_CRITICAL_UPD','There is a critical update ready!!'); +define('_AM_SMALLWORLD_UPDATE_NORMAL_UPD','There is a newer version ready for download'); +define('_AM_SMALLWORLD_UPDATE_SERVER_ERROR','Server seems to be down or update is in progress.<br/>Try again later.'); +define('_AM_SMALLWORLD_UPDATE_FILE_DESC','Description of newest version'); +define('_AM_SMALLWORLD_UPDATE_SERVER_FILE','You can download the new version from here'); +define('_AM_SMALLWORLD_UPDATE_YOUHAVENEWESTVERSION','You have the newest version of Smallworld'); +define('_AM_SMALLWORLD_HELP','Help'); +define('_AM_SMALLWORLD_ADMIN_USERDELETEDALERT',' and associated folders, files and table rows has been deleted'); + +//Help section +define('_AM_SMALLWORLD_HELP_ABOUT','About Smallworld'); +define('_AM_SMALLWORLD_HELP_PREFACE','Smallworld is a Social Network system. Inspired by the Srinivas Tamada tutorials on fecebook scripting. The base system has been re-written, adapted, and heavily expanded for XOOPS by Culex<br/>The module is featuring like/dislike, bookmarking, wall system, image gallery, and is using XIM if installed. The admin side is featuring deleting users, banning users based on time. A countdown is shown on user side to when it\'s back.. And many more features. It is fully supported by XOOPS version 2.5.0 and higher.<br/>Smallworld is released under the terms of the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License (GPL)</a> and is free to use and modify. It is free to redistribute as long as you abide by the distribution terms of the GPL.'); +define('_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS','Requirements'); +define('_AM_SMALLWORLD_HELP_REQUIREMENTS','<ul class="help"> + <li>WWW Server (<a href="http://www.apache.org/" target="_blank">Apache</a>, IIS, Roxen, etc)</li> + <li><a href="http://www.xoops.org/" target="_blank">XOOPS</a> 2.4.0 or higher as Smallworld uses preloads</li> + <li><a href="http://www.php.net/" target="_blank">PHP</a> 5.2.0 or higher.</li> + <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 4 or higher (5 or higher recommended)</li> + </ul>'); +define('_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED','Recommended for testing Smallworld'); +define('_AM_SMALLWORLD_HELP_RECOMMENDED','<ul class="help"> + <li>Browser <a href="http://www.mozilla.com" target"_blank">Firefox</a> and the Firefox plugin <a href="https://addons.mozilla.org/en-US/firefox/downloads/latest/1843/addon-1843-latest.xpi" target="_blank">FireBug plugin (latest version)</a></li> + </ul>'); +define('_AM_SMALLWORLD_HELP_HEADER_INSTALLATION','How to install'); +define('_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL','<ul class="help"> + <li>Check to see if the downloaded Smallworld version is the latest released version.</li> + <li>Turn cookie and JavaScript of your browser on.</li> + </ul>'); + +define('_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM','Installing on a hosted platform'); +define('_AM_SMALLWORLD_HELP_HOSTED_PLATFORM','<ul class="help"> + <li>Upload the unzipped folder Smallworld to your module directory.</li> + <li>Install using XOOPS module install as any other module installation.</li> + <li>Make the block visible for the user groups you want to see the block (admin/moderators etc etc).</li> + </ul>'); +define('_AM_SMALLWORLD_HELP_HEADER_UPGRADING','Upgrading from a previous version'); +define('_AM_SMALLWORLD_HELP_UPGRADING','<ul class="help"> + <li>Make sure you are using newest version</li> + <li>Read the readme.txt in archive</li> + <li>Maybe do a backup of your tables</li> + </ul>'); +define('_AM_SMALLWORLD_HELP_HEADER_FAQ','Problem solving'); +define('_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1','I get blank page, can\'t click username, The block does not show.......'); +define('_AM_SMALLWORLD_HELP_COMMENPROBLEMS1','<ul class="help"> + <li>Make su... [truncated message content] |
From: <be...@us...> - 2012-01-18 05:17:22
|
Revision: 8749 http://xoops.svn.sourceforge.net/xoops/?rev=8749&view=rev Author: beckmi Date: 2012-01-18 05:17:13 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Adjusting folder structure Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/Get_Count.php XoopsModules/smallworld/trunk/smallworld/admin/ XoopsModules/smallworld/trunk/smallworld/avatarupload.php XoopsModules/smallworld/trunk/smallworld/class/ XoopsModules/smallworld/trunk/smallworld/comment_ajax.php XoopsModules/smallworld/trunk/smallworld/complaint.php XoopsModules/smallworld/trunk/smallworld/css/ XoopsModules/smallworld/trunk/smallworld/delete_comment_ajax.php XoopsModules/smallworld/trunk/smallworld/delete_message_ajax.php XoopsModules/smallworld/trunk/smallworld/docs/ XoopsModules/smallworld/trunk/smallworld/down_vote.php XoopsModules/smallworld/trunk/smallworld/editimages.php XoopsModules/smallworld/trunk/smallworld/editprofile.php XoopsModules/smallworld/trunk/smallworld/friendinvite.php XoopsModules/smallworld/trunk/smallworld/friends.php XoopsModules/smallworld/trunk/smallworld/galleryshow.php XoopsModules/smallworld/trunk/smallworld/image_edit_submit.php XoopsModules/smallworld/trunk/smallworld/images/ XoopsModules/smallworld/trunk/smallworld/img_upload.php XoopsModules/smallworld/trunk/smallworld/imgupload.php XoopsModules/smallworld/trunk/smallworld/include/ XoopsModules/smallworld/trunk/smallworld/index.php XoopsModules/smallworld/trunk/smallworld/js/ XoopsModules/smallworld/trunk/smallworld/language/ XoopsModules/smallworld/trunk/smallworld/loadmore.php XoopsModules/smallworld/trunk/smallworld/message_ajax.php XoopsModules/smallworld/trunk/smallworld/partnersearch.php XoopsModules/smallworld/trunk/smallworld/permalink.php XoopsModules/smallworld/trunk/smallworld/preloads/ XoopsModules/smallworld/trunk/smallworld/register.php XoopsModules/smallworld/trunk/smallworld/search.php XoopsModules/smallworld/trunk/smallworld/smallworldshare.php XoopsModules/smallworld/trunk/smallworld/sql/ XoopsModules/smallworld/trunk/smallworld/stats.php XoopsModules/smallworld/trunk/smallworld/submit.php XoopsModules/smallworld/trunk/smallworld/templates/ XoopsModules/smallworld/trunk/smallworld/up_vote.php XoopsModules/smallworld/trunk/smallworld/userprofile.php XoopsModules/smallworld/trunk/smallworld/xoops_version.php Removed Paths: ------------- XoopsModules/smallworld/trunk/Get_Count.php XoopsModules/smallworld/trunk/admin/ XoopsModules/smallworld/trunk/avatarupload.php XoopsModules/smallworld/trunk/class/ XoopsModules/smallworld/trunk/comment_ajax.php XoopsModules/smallworld/trunk/complaint.php XoopsModules/smallworld/trunk/css/ XoopsModules/smallworld/trunk/delete_comment_ajax.php XoopsModules/smallworld/trunk/delete_message_ajax.php XoopsModules/smallworld/trunk/docs/ XoopsModules/smallworld/trunk/down_vote.php XoopsModules/smallworld/trunk/editimages.php XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/friendinvite.php XoopsModules/smallworld/trunk/friends.php XoopsModules/smallworld/trunk/galleryshow.php XoopsModules/smallworld/trunk/image_edit_submit.php XoopsModules/smallworld/trunk/images/ XoopsModules/smallworld/trunk/img_upload.php XoopsModules/smallworld/trunk/imgupload.php XoopsModules/smallworld/trunk/include/ XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/js/ XoopsModules/smallworld/trunk/language/ XoopsModules/smallworld/trunk/loadmore.php XoopsModules/smallworld/trunk/message_ajax.php XoopsModules/smallworld/trunk/partnersearch.php XoopsModules/smallworld/trunk/permalink.php XoopsModules/smallworld/trunk/preloads/ XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/search.php XoopsModules/smallworld/trunk/smallworldshare.php XoopsModules/smallworld/trunk/sql/ XoopsModules/smallworld/trunk/stats.php XoopsModules/smallworld/trunk/submit.php XoopsModules/smallworld/trunk/templates/ XoopsModules/smallworld/trunk/up_vote.php XoopsModules/smallworld/trunk/userprofile.php XoopsModules/smallworld/trunk/xoops_version.php Deleted: XoopsModules/smallworld/trunk/Get_Count.php =================================================================== --- XoopsModules/smallworld/trunk/Get_Count.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/Get_Count.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,35 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include '../../mainfile.php'; -include_once (XOOPS_ROOT_PATH.'/class/template.php'); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); - -global $xoopsUser, $xoopsLogger, $xoopsDB; -$xoopsLogger->activated = false; -if ($xoopsUser) { - if($_GET['SmallworldGetUserMsgCount']) { - $counts = smallworld_getCountFriendMessagesEtc (); - header('Content-type: application/json'); - echo "{\"NewUserMsgCount\":$counts}"; - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/avatarupload.php =================================================================== --- XoopsModules/smallworld/trunk/avatarupload.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/avatarupload.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,51 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -global $xoopsUser, $xoopsLogger; -include_once("../../mainfile.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); - if ($xoopsUser) { - $xoopsLogger->activated = false; - $userID = $xoopsUser->getVar('uid'); - $user = new XoopsUser($userID); - $db = new SmallWorldDB; - - $uploaddir = XOOPS_ROOT_PATH.'/uploads/avatars/'; - $file = $uploaddir . basename($_FILES['smallworld_uploadfile']['name']); - $newname = time().rand(0,99999); - - // Generate new name for file - $f = explode(".",basename(stripslashes($_FILES['smallworld_uploadfile']['name']))); - $newname = time().rand(0000,9999).".".$f[1]; - $newfile = $uploaddir . basename($newname); - // Save new name to users profile in DB - $dbuserimage = "avatars/".basename(stripslashes($newfile )); - $db->updateSingleValue ('smallworld_user', $userID, 'userimage',$dbuserimage ); - $db->updateSingleValue ('smallworld_admin', $userID, 'userimage',$dbuserimage ); - - // Return json array [0] = succes text and [1]= basename of the new file name... - if (move_uploaded_file($_FILES['smallworld_uploadfile']['tmp_name'], $newfile)) { - echo json_encode( array( 'success', basename(stripslashes($newfile ))) ) ; - } else { - echo "error"; - } - } -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/comment_ajax.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/comment_ajax.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,84 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once (XOOPS_ROOT_PATH.'/class/template.php'); -global $xoopsUser, $xoopsModule,$xoopsLogger,$xoopsTpl; -$xoopsLogger->activated = false; -$page = 'index'; -if ($xoopsUser) { - $id = $xoopsUser->getVar('uid'); - $Xuser = new XoopsUser($id); - $username = $Xuser->getVar('uname'); - $Wall = new Wall_Updates(); - $tpl = new XoopsTpl(); - $mail = new smallworld_mail; - - if(isSet($_POST['comment'])) { - if ( $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $tpl->assign('isadminuser', 'YES'); - } - //$followers = $Wall->getFollowers($id); - $followers = array_flatten($Wall->getFollowers($id),0); - - $myavatar = $Wall->Gravatar($id); - $myavatarlink = smallworld_getAvatarLink($id, $myavatar); - - // Get posted items - $comment=$_POST['comment']; - $msg_id=$_POST['msg_id']; - - $data=$Wall->Insert_Comment($id,$msg_id,$comment); - if($data) { - $wc['msg_id_fk'] = $data['msg_id_fk']; - $wc['com_id'] = $data['com_id']; - $wc['comment'] = smallworld_tolink(htmlentities($data['comment'] )); - $wc['time'] = smallworld_time_stamp($data['created']); - $wc['username'] = $data['username']; - $wc['uid'] = $data['uid_fk']; - $wc['myavatar'] = $myavatar; - $wc['myavatar_link']= $myavatarlink; - $wc['cface'] = $Wall->Gravatar($data['uid_fk']); - $wc['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wc['cface']); - $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']); - $wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>"; - $wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $data['msg_id_fk'],$data['com_id']); - $wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $data['msg_id_fk'],$data['com_id']); - $tpl->append('comments', $wc); - - $tpl->assign('myusername',$username); - $tpl->assign('pagename',$page); - $tpl->assign('myavatar',$myavatar); - $tpl->assign('myavatarlink',$myavatarlink); - $tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/getlastcom.html'); - - // send mail to user owning update + participans in the thread that a comment has been posted - $parts = $mail->getPartsFromComment ($data['msg_id_fk']); - $emails = ""; - foreach ($parts as $k=>$v) { - $owner = getOwnerFromComment ($data['msg_id_fk']); - $mail->sendMails ($data['uid_fk'], $v, 'commentToWM', $link=null, $wc); - } - } - } -} -?> Deleted: XoopsModules/smallworld/trunk/complaint.php =================================================================== --- XoopsModules/smallworld/trunk/complaint.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/complaint.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,54 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include '../../mainfile.php'; -include_once (XOOPS_ROOT_PATH.'/class/template.php'); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); - -global $xoopsUser, $xoopsLogger; -$xoopsLogger->activated = false; - -$db = new SmallWorldDB; - -if ($xoopsUser) { - if($_POST['byuser']) { - $by_userid = $xoopsUser->getVar('uid'); - $a_user = addslashes($_POST['a_user']); - $auserid = intval($_POST['auserid']); - $byuser = addslashes($_POST['byuser']); - $id = addslashes($_POST['id']); - $name = addslashes($_POST['name']); - $time = time(); - $data = array('time' => $time, 'a_user'=>$a_user,'byuser'=>$byuser,'link'=>$id, 'a_userid'=>$auserid); - $already = $db->alreadycomplaint ($id, $by_userid, $auserid); - - if ($already != 1) { - $mail = new smallworld_mail; - $mail->sendMails($by_userid, '', 'complaint', $link=null, $data); - $db->updateComplaint ($auserid); - echo _SMALLWORLD_JS_COMPLAINTSENT; - } else { - echo _SMALLWORLD_JS_COMPLAINT_ALREADY_SENT; - } - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/delete_comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/delete_comment_ajax.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/delete_comment_ajax.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,40 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -global $xoopsUser, $xoopsModule,$xoopsLogger; -$xoopsLogger->activated = false; - - $id = $xoopsUser->getVar('uid'); - $msgowner = $_POST['msgowner']; - -if ($xoopsUser) { - - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $id == $msgowner) { - $db = new SmallWorldDB; - if (isset($_POST['smallworld_com_id'])) { - $smallworld_com_id = $_POST['smallworld_com_id']; - $data = $db->deleteWallComment($smallworld_com_id); - } - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/delete_message_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/delete_message_ajax.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/delete_message_ajax.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,38 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -global $xoopsUser, $xoopsModule,$xoopsLogger; -$xoopsLogger->activated = false; - $id = $xoopsUser->getVar('uid'); - $msgowner = $_POST['msgowner']; - -if ($xoopsUser) { - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $id == $msgowner) { - $db = new SmallWorldDB; - if (isset($_POST['smallworld_msg_id'])) { - $smallworld_msg_id = $_POST['smallworld_msg_id']; - $data = $db->deleteWallMsg($id,$smallworld_msg_id); - } - } -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/down_vote.php =================================================================== --- XoopsModules/smallworld/trunk/down_vote.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/down_vote.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,68 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include '../../mainfile.php'; -include_once (XOOPS_ROOT_PATH.'/class/template.php'); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); - -global $xoopsUser, $xoTheme, $xoopsTpl,$xoopsLogger, $xoopsDB; -$xoopsLogger->activated = false; -$Wall = new Wall_Updates(); -if ($xoopsUser) { - - if($_POST['id']) { - $id = intval($_POST['id']); - $type = mysql_escape_String($_POST['type']); - $type2 = mysql_escape_String($_POST['type2']); - $owner = mysql_escape_String($_POST['owner']); - $userid = $xoopsUser->getVar('uid'); - $hasvoted = $Wall->HasVoted ($userid, $type, $type2, $id); - if ($type == 'msg') { - if ( $hasvoted > 0 ) { - echo "<script type='text/javascript'>"; - echo "alert('"._SMALLWORLD_JS_ALREADYVOTED."');"; - echo "</script>"; - } else { - $sql = "INSERT INTO ".$xoopsDB->prefix('smallworld_vote')." (vote_id,msg_id,com_id,user_id,owner,up,down) VALUES ('', '".$id."', '0', '".$userid."', '".$owner."', '0', '1')"; - $result=$xoopsDB->queryF($sql); - - } - $newvote = $Wall->countVotes ($type, 'down', $id); - } - - if ($type == 'com') { - if ( $hasvoted > 0 ) { - echo "<script type='text/javascript'>alert('"._SMALLWORLD_JS_ALREADYVOTED."');</script>"; - } else { - $sql = "INSERT INTO ".$xoopsDB->prefix('smallworld_vote')." (vote_id,msg_id,com_id,user_id,owner,up,down) VALUES ('', '".$id."', '".$type2."', '".$userid."', '".$owner."', '0', '1')"; - $result=$xoopsDB->queryF($sql); - } - $newvote = $Wall->countVotesCom ($type, 'down', $type2, $id); - } - - } - $link = '<span id ="smallworld_votenum">'.$newvote.'</span> <a href="javascript:void(0)" name="down" class="smallworld_stcomment_vote"'; - $link .= ' id="'.$id.'" type="'.$type.'" owner="'.$owner.'" type2="'.$type2.'">'; - $link .= '<img class="smallworld_voteimg" src = "images/dislike.png" /></a>'; - echo $link; -} -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/editimages.php =================================================================== --- XoopsModules/smallworld/trunk/editimages.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/editimages.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,59 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_images_edittemplate.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -global $xoopsUser,$xoopsTpl,$xoopsDB; - - if ($xoopsUser) { - $userID = $xoopsUser->getVar('uid'); - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = isInspected ($userID); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - - $check = new SmallWorldUser; - $profile = $check->CheckIfProfile($userID); - if ($profile > 0) { - $xoopsTpl->assign('check',1); - $item = new SmallWorldForm; - $db = new SmallWorldDB; - - $editimages = ''; - $sql = "SELECT *FROM ".$xoopsDB->prefix('smallworld_images')." WHERE userid = '".$userID."'"; - $result = $xoopsDB->query($sql); - $i = 0; - while ($sqlfetch=$xoopsDB->fetchArray($result)) { - $editimages .= $item->edit_images ($userID,$sqlfetch['imgurl'], $sqlfetch['desc'],$sqlfetch['id']); - $i++; - } - $xoopsTpl->append('editimages',$editimages); - } else { - redirect_header("index.php", 1); - } - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,326 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_userprofile_edittemplate.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -global $xoopsUser,$xoopsTpl,$xoopsDB; - - if ($xoopsUser) { - $id = $xoopsUser->getVar('uid'); - $check = new SmallWorldUser; - $profile = $check->CheckIfProfile($id); - - // Check if inspected userid -> redirect to userprofile and show admin countdown - /* - $inspect = isInspected ($id); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - */ - if ($profile > 0) { - $xoopsTpl->assign('check',1); - $item = new SmallWorldForm; - $db = new SmallWorldDB; - - $cdb = "SELECT * FROM ".$xoopsDB->prefix('smallworld_user')." WHERE userid = '".$id."'"; - $result = $xoopsDB->queryF($cdb); - $cnt = $xoopsDB->getRowsNum($result); - while ($r = $xoopsDB->fetchArray($result)) { - // ------------ PERSONAL INFO ------------ // - - // Real name - if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { - $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$r['realname']); - $xoopsTpl->append('realname',$realname); - } else { - $xoopsTpl->assign('show_realname','no'); - } - - // Dropdown for gender - if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { - $gender = $item->dropdown('gender',$arr0,$r['gender']); - $xoopsTpl->append('gender', $gender); - } else { - $xoopsTpl->assign('show_gender','no'); - } - - // Selectbox for "interested in gender(s)" - if (smallworldGetValfromArray ('interestedin', 'smallworldusethesefields') != 0) { - $nr = unserialize($r['intingender']); - $intInGender = $item->RetrieveRadio('intingender',$arr01,$nr, $selected=null); - $xoopsTpl->append('intingender',$intInGender); - } else { - $xoopsTpl->assign('show_interestedin','no'); - } - - // Dropdown for marital status - if (smallworldGetValfromArray ('relationshipstatus', 'smallworldusethesefields') != 0) { - $relationshipstatus = $item->dropdown('relationship',$arr02,0); - $xoopsTpl->append('relationshipstatus',$relationshipstatus); - - - // Partner. Only shown if marital status is married, it's complicated, engaged) - $partner = $item->input('partner', 'partner', 'partner',$size='30', stripslashes($r['partner'])); - $xoopsTpl->append('partner',$partner); - } else { - $xoopsTpl->assign('show_relationshipstatus','no'); - } - - if (smallworldGetValfromArray ('lookingfor', 'smallworldusethesefields') != 0) { - $nr1 = unserialize($r['searchrelat']); - $searchrelat = $item->RetrieveRadio('searchrelat',$arr03,$nr1, $selected=null); - $xoopsTpl->append('searchrelat',$searchrelat); - } else { - $xoopsTpl->assign('show_lookingfor','no'); - } - - if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) { - // Select Birthday dd-mm-Y - $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=stripslashes(UsToEuroDate($r['birthday']))); - $xoopsTpl->append('birthdaydate',$birthday); - } else { - $xoopsTpl->assign('show_birthday','no'); - } - - // Select Hometown or Enter new - if (smallworldGetValfromArray ('birthplace', 'smallworldusethesefields') != 0) { - $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=stripslashes($r['birthplace'])); - $xoopsTpl->append('birthplace',$birthplace); - } else { - $xoopsTpl->assign('show_birthplace','no'); - } - - // Dropdown politics - if (smallworldGetValfromArray ('politicalview', 'smallworldusethesefields') != 0) { - $politic = $item->dropdown('politic',$arr04,0); - $xoopsTpl->append('politic',$politic); - } else { - $xoopsTpl->assign('show_political','no'); - } - - // Dropdown Religion - if (smallworldGetValfromArray ('religiousview', 'smallworldusethesefields') != 0) { - $religion = $item->dropdown('religion',$arr05,0); - $xoopsTpl->append('religion',$religion); - } else { - $xoopsTpl->assign('show_religion','no'); - } - - // ------------ CONTACT INFO ------------ // - // Add email test - if (smallworldGetValfromArray ('emails', 'smallworldusethesefields') != 0) { - $nr2 = unserialize($r['emailtype']); - $emailtext = ''; - foreach ($nr2 as $k => $v) { - $nr2id = "email-".$k; - $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v),$nr2id); - // $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v)); - $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $emailtext .= "<a class='smallworld_addemail' href='javascript:void();' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('emailtext',$emailtext); - } else { - $xoopsTpl->assign('show_emails','no'); - } - - - //Add screen names (usernames for facebook etc etc) - if (smallworldGetValfromArray ('screennames', 'smallworldusethesefields') != 0) { - $nr3 = unserialize($r['screenname_type']); - $nr4 = unserialize($r['screenname']); - $count1 = count($nr3); - $cnt1 = 0; - - // Drop down for screen names - $screenname =""; - foreach ($nr3 as $k => $v) { - if ($cnt1 < $count1-1) {$addmore1 ="";} else {$addmore1 = _SMALLWORLD_ADDMORE;} - $screenname .= $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,$addmore1,$selected=stripslashes($nr4[$k]),$preset=stripslashes($v)); - $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; - $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - $cnt1++; - } - $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('screenname',$screenname); - } else { - $xoopsTpl->assign('show_screennames','no'); - } - - // Mobilephone - if (smallworldGetValfromArray ('mobile', 'smallworldusethesefields') != 0) { - $mobile = $item->input('mobile','mobile','mobile',12,$preset=stripslashes($r['mobile'])); - $xoopsTpl->append('mobile',$mobile); - } else { - $xoopsTpl->assign('show_mobile','no'); - } - - // Landphone - if (smallworldGetValfromArray ('landphone', 'smallworldusethesefields') != 0) { - $phone = $item->input('phone','phone','phone',12,$preset=stripslashes($r['phone'])); - $xoopsTpl->append('phone',$phone); - } else { - $xoopsTpl->assign('show_landphone','no'); - } - - // Adress - if (smallworldGetValfromArray ('streetadress', 'smallworldusethesefields') != 0) { - $adress = $item->input('adress','adress','adress',$size='50',$preset=stripslashes($r['adress'])); - $xoopsTpl->append('adress',$adress); - } else { - $xoopsTpl->assign('show_adress','no'); - } - - if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') != 0) { - $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=stripslashes($r['present_city'])); - $xoopsTpl->append('present_city',$present_city); - - $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=stripslashes($r['present_country'])); - $xoopsTpl->append('present_country',$present_country); - } else { - $xoopsTpl->assign('show_city','no'); - } - - if (smallworldGetValfromArray ('website', 'smallworldusethesefields') == 0) { - $xoopsTpl->assign('show_website','no'); - } - - // ------------ INTERESTS ------------ // - - // Textarea for interests - //textarea($name, $id, $title, $rows, $cols, $class) - if (smallworldGetValfromArray ('interests', 'smallworldusethesefields') != 0) { - $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites',$preset=stripslashes($r['interests'])); - $xoopsTpl->append('interests',$interests); - } else { - $xoopsTpl->assign('show_interests','no'); - } - - // Textarea for Music - if (smallworldGetValfromArray ('favouritemusic', 'smallworldusethesefields') != 0) { - $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites',$preset=stripslashes($r['music'])); - $xoopsTpl->append('music',$music); - } else { - $xoopsTpl->assign('show_music','no'); - } - - // Textarea for Tvshow - if (smallworldGetValfromArray ('favouritetvshows', 'smallworldusethesefields') != 0) { - $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites',$preset=stripslashes($r['tvshow'])); - $xoopsTpl->append('tvshow',$tvshow); - } else { - $xoopsTpl->assign('show_tv','no'); - } - - // Textarea for Movie - if (smallworldGetValfromArray ('favouritemovies', 'smallworldusethesefields') != 0) { - $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites',$preset=stripslashes($r['movie'])); - $xoopsTpl->append('movie',$movie); - } else { - $xoopsTpl->assign('show_movies','no'); - } - - // Textarea for Books - if (smallworldGetValfromArray ('favouritebooks', 'smallworldusethesefields') != 0) { - $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites',$preset=stripslashes($r['books'])); - $xoopsTpl->append('books',$books); - } else { - $xoopsTpl->assign('show_books','no'); - } - - // Textarea for About me - if (smallworldGetValfromArray ('aboutme', 'smallworldusethesefields') != 0) { - $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites',$preset=stripslashes($r['aboutme'])); - $xoopsTpl->append('aboutme',$aboutme); - } else { - $xoopsTpl->assign('show_aboutme','no'); - } - - - // ------------ SCHOOL ------------ // - - //School name - if (smallworldGetValfromArray ('education', 'smallworldusethesefields') != 0) { - $nr5 = unserialize($r['school_type']); - $nr6 = unserialize($r['school']); - $nr7 = unserialize($r['schoolstart']); - $nr8 = unserialize($r['schoolstop']); - $school = ""; - foreach ($nr5 as $k => $v) { - $school .= $item->school_add ('smallworld_add3', 'school', 'school_type', - '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=stripslashes($nr6[$k]),$preset=$v, $selectedstart=date("Y",$nr7[$k]),$selectedstop=date("Y",$nr8[$k])); - $school .= "<span class='smallworld_remove2' id='schoolremove'>"; - $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('school',$school); - } else { - $xoopsTpl->assign('show_school','no'); - } - - //Jobs - if (smallworldGetValfromArray ('employment', 'smallworldusethesefields') != 0) { - $nr9 = unserialize($r['employer']); - $nr10 = unserialize($r['position']); - $nr11 = unserialize($r['jobstart']); - $nr12 = unserialize($r['jobstop']); - $nr13 = unserialize(stripslashes($r['description'])); - $job=""; - foreach ($nr9 as $k=>$v) { - $job .= $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $employer=stripslashes($v), $position=stripslashes($nr10[$k]), - $selectedstart=date("Y",$nr11[$k]), $selectedstop=date("Y",$nr12[$k]),$description=$nr13[$k]); - $job .= "<span class='smallworld_remove3' id='jobremove'>"; - $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('job',$job); - } else { - $xoopsTpl->assign('show_jobs','no'); - } - - // Create hidden forms for birthcity - $birthplace_lat = $item->hidden('birthplace_lat','birthplace_lat',$preset=stripslashes($r['birthplace_lat'])); - $birthplace_lng = $item->hidden('birthplace_lng','birthplace_lng',$preset=stripslashes($r['birthplace_lng'])); - $birthplace_country = $item->hidden('birthplace_country','birthplace_country',$preset=stripslashes($r['birthplace_country'])); - $xoopsTpl->append('birthplace_lat',$birthplace_lat); - $xoopsTpl->append('birthplace_lng',$birthplace_lng); - $xoopsTpl->append('birthplace_country',$birthplace_country); - - // Create hidden forms for present city - $present_lat = $item->hidden('present_lat','present_lat',$preset=stripslashes($r['present_lat'])); - $present_lng = $item->hidden('present_lng','present_lng',$preset=stripslashes($r['present_lng'])); - $xoopsTpl->append('present_lat',$present_lat); - $xoopsTpl->append('present_lng',$present_lng); - - $xoopsTpl->append('smallworld_register_title',_SMALLWORLD_REGRISTATION_TITLE); - $xoopsTpl->assign('smallworld_beforesubmit',_SMALLWORLD_TEXTBEFORESUBMIT); - $xoopsTpl->assign('smallworld_save',_SMALLWORLD_SUBMIT); - } - } else { - redirect_header("register.php", 1); - } - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/friendinvite.php =================================================================== --- XoopsModules/smallworld/trunk/friendinvite.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/friendinvite.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,103 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -global $xoopsUser; -include_once("../../mainfile.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -global $xoopsUser,$xoopsLogger; -$xoopsLogger->activated = false; - - if ($xoopsUser) { - $check = new SmallWorldUser; - $db = new SmallWorldDB; - $mail = new smallworld_mail; - $friend = $_POST['friend']; - if (isset($_POST['stat'])){ - $stat = $_POST['stat']; - } - $friendProfile = $check->CheckIfProfile($friend); - $invitation = $_POST['invitation']; - $myUid = $_POST['myUid']; - $friendName = $check->getName($friend); - $yourName = $check->getName($myUid); - - if ($invitation == '1') { - if ($friendProfile > 0) { - - $friendshipExists = $check->friendcheck($myUid,$friend); - if ($friendshipExists[0] == 0) { - $resultMsg = _SMALLWORLD_JSON_ADDFRIEND.$friendName._SMALLWORLD_JSON_REQUEST_PENDING; - $mail->sendMails ($friend, $friend, 'friendshipfollow', $link=null, array()); - $db->toogleFriendInvite ($friendshipExists, $friend, $myUid); - echo json_encode(array('error' => 'no', 'msg' => $resultMsg, 'msgChange' => _SMALLWORLD_JSON_CANCELFR_TEXT)); - } - - if ($friendshipExists[0] > 0 AND $friendshipExists[0] < 2) { - $resultMsg = _SMALLWORLD_JSON_CANCEL_ADDFRIEND.$friendName; - $db->toogleFriendInvite ($friendshipExists, $friend, $myUid); - echo json_encode(array('error' => 'no', 'msg' => $resultMsg, 'msgChange' => _SMALLWORLD_JSON_ADDFR_TEXT)); - } - if ($friendshipExists[0] == 2) { - $resultMsg = _SMALLWORLD_JSON_DELETE_FRIEND_START.$friendName._SMALLWORLD_JSON_DELETE_FRIEND_END; - $db->toogleFriendInvite ($friendshipExists, $friend, $myUid); - echo json_encode(array('error' => 'no', 'msg' => $resultMsg, 'msgChange' => _SMALLWORLD_JSON_ADDFR_TEXT)); - } - } else { - echo "friend does not exist"; - } - } - if ($invitation == '2') { - if ($friendProfile > 0) { - // Used for followers - $following = $check->following_or ($myUid, $friend); - - if ($following[0] == 0) { - $resultMsgFollow = _SMALLWORLD_JSON_FOLLOWINGFRIEND.$friendName._SMALLWORLD_JSON_FOLLOWINGFRIEND_DESC; - $db->toogleFollow ($following, $myUid, $friend); - echo json_encode(array('error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLNO_TEXT)); - } - if ($following[0] > 0) { - $resultMsgFollow = _SMALLWORLD_JSON_UNFOLLOWINGFRIEND.$friendName._SMALLWORLD_JSON_UNFOLLOWINGFRIEND_DESC; - $db->toogleFollow ($following, $myUid, $friend); - echo json_encode(array('error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLYES_TEXT)); - } - - } - } - if ($invitation == '3') { - if ($friendProfile > 0) { - // Used for accept/deny friendship requests - if ($stat > 0) { - // Friendship is accepted (update status in mysql) - $db->SetFriendshitStat (1, $myUid, $friend); - $acceptMsg = _SMALLWORLD_JSON_DELETE_FRIEND_START.$friendName._SMALLWORLD_JSON_DELETE_FRIEND_END; - echo json_encode(array('error' => 'no', 'msg' => $acceptMsg, 'msgChange' => _SMALLWORLD_JSON_REMOVEFR_TEXT)); - } - if ($stat < 0){ - // friendship is denied (delete from mysql) - $db->SetFriendshitStat (-1, $myUid, $friend); - $acceptMsg = _SMALLWORLD_JSON_ADDFRIEND.$friendName._SMALLWORLD_JSON_REQUEST_PENDING; - echo json_encode(array('error' => 'no', 'msg' => $acceptMsg, 'msgChange' => _SMALLWORLD_JSON_ADDFR_TEXT)); - } - } - } - } -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/friends.php =================================================================== --- XoopsModules/smallworld/trunk/friends.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/friends.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,215 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_friends_template.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -global $xoopsUser; - - if ($xoopsUser) { - $id = smallworld_isset_or($_GET['username']); // Id of user wich profile you want to see - $yourid = $xoopsUser->getVar('uid'); // your uid - $Xuser = new XoopsUser($id); - $Xusername = $Xuser->getVar('uname'); - $check = new SmallWorldUser; - $profile = $check->CheckIfProfile($id); - $friends = new SmallWorldFriends; - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = isInspected ($yourid); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - - if ($profile > 0) { - $user = new SmallWorldProfile; - $user->ShowUser($id); - $username = $xoopsUser->getVar('uname'); //Myusername - if($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isadminuser', 'YES'); - $xoopsTpl->assign('ownerofpage', $id); - } - - // Check status for relationship - $fr = $check->friendcheck($yourid,$id); - if ($fr[0] == 0) { - $friendship_text = _SMALLWORLD_JSON_ADDFR_TEXT; - if($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isuserafriend','yes'); - } else { - $xoopsTpl->assign('isuserafriend','no'); - } - } - - if ($fr[0] == 1) { - $friendship_text = _SMALLWORLD_JSON_CANCELFR_TEXT; - if($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isuserafriend','yes'); - } else { - $xoopsTpl->assign('isuserafriend','no'); - } - } - - if ($fr[0] == 2) { - $friendship_text = _SMALLWORLD_JSON_REMOVEFR_TEXT; - $xoopsTpl->assign('isuserafriend','yes'); - } - - // Check status for follow - $fl = $check->following_or($yourid, $id); - if ($yourid == $id) { - $following_text = _SMALLWORLD_JSON_FLYES_TEXT; - } - if ($fl[0] == 0) { - $following_text = _SMALLWORLD_JSON_FLYES_TEXT; - } - if ($fl[0] == 1) { - $following_text = _SMALLWORLD_JSON_FLNO_TEXT; - } - - // Get requests - $getInvitations = $check->getRequests ($yourid); - - // Things to do with wall - $Wall = new Wall_Updates(); - $myavatar = $Wall->Gravatar($id); - $myavatarlink = smallworld_getAvatarLink($id, $myavatar); - - // Get your followers array - $followers = $Wall->getFollowers($id); - - // Pendings array here - $pending_array = $friends->getFriends($id, 'pending'); - - // Friends array here - $friends_array = $friends->getFriends($id, 'friends'); - - // Pendings array here - $following_array = $friends->getFriends($id, 'following'); - - // Users Following you - $followingme_array = $friends->getFriends($id, 'followingme'); - - //Srinivas Tamada http://9lessons.info - //Loading Comments link with load_updates.php - if (!empty($pending_array)) { - foreach ($pending_array as $data) { - $fp['friend_id'] = $data['you']; - $fp['friendname'] = getName($data['you']); - $fp['avatar'] = $Wall->Gravatar($data['you']); - $fp['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fp['avatar']); - $xoopsTpl->append('pendingfriends', $fp); - } - } else { - $xoopsTpl->append('nouserspending',_SMALLWORLD_NOUSERS); - } - - if (!empty($friends_array)) { - foreach ($friends_array as $data) { - $ff['friend_id'] = $data['you']; - $ff['friendname'] = getName($data['you']); - $ff['avatar'] = $Wall->Gravatar($data['you']); - $ff['avatar_link'] = smallworld_getAvatarLink ($data['you'], $ff['avatar']); - $xoopsTpl->append('verifiedfriends', $ff); - } - } else { - $xoopsTpl->append('nousersfriends',_SMALLWORLD_NOUSERS); - } - - if (!empty($following_array)) { - foreach ($following_array as $data) { - $fy['friend_id'] = $data['you']; - $fy['friendname'] = getName($data['you']); - $fy['avatar'] = $Wall->Gravatar($data['you']); - $fy['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fy['avatar']); - $xoopsTpl->append('followingyou', $fy); - } - } else { - $xoopsTpl->append('nousersfollowingyou',_SMALLWORLD_NOUSERS); - } - - if (!empty($followingme_array)) { - foreach ($followingme_array as $data) { - $fm['friend_id'] = $data['me']; - $fm['friendname'] = getName($data['me']); - $fm['avatar'] = $Wall->Gravatar($data['me']); - $fm['avatar_link'] = smallworld_getAvatarLink ($data['me'], $fm['avatar']); - $xoopsTpl->append('followingme', $fm); - } - - } else { - $xoopsTpl->append('nousersfollowingme',_SMALLWORLD_NOUSERS); - } - - // Get usermenu to template - $menu_home = "<a href='".XOOPS_URL."/modules/smallworld/'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/house.png'>"._SMALLWORLD_HOME."</a>"; - $menu_profile = "<a href='".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$Xusername."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/user_silhouette.png'>"._SMALLWORLD_PROFILEINDEX."</a>"; - $menu_gallery = "<a href='".XOOPS_URL."/modules/smallworld/galleryshow.php?username=".$Xusername."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/picture.png'>"._SMALLWORLD_GALLERY."</a>"; - $menu_friends = "<a href='".XOOPS_URL."/modules/smallworld/friends.php?username=".$Xusername."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/group.png'>"._SMALLWORLD_FRIENDSPAGE."</a>"; - $menu_xim_js = "javascript:chatWith('".$id."','".$Xusername."')"; - $menu_ximme = "<a href='javascript:void(0);' onClick=".$menu_xim_js."><img height='10px' width='10px' src='".XOOPS_URL."/modules/smallworld/images/messenger.png'>"._SMALLWORLD_XIMUSER.$Xusername."</a>"; - - // Check for folder xim to add messenger user to menu items - $hasxim = smallworld_checkForXim (); - if ($hasxim == true) { - $xoopsTpl->assign('sendxim','YES'); - if ($fr[0] == 2) { - if ($yourid != $id) { - $xoopsTpl->assign('menu_xim',$menu_ximme); - } - } - } - - $xoopsTpl->assign('menu_home',$menu_home); - $xoopsTpl->assign('menu_profile',$menu_profile); - $xoopsTpl->assign('menu_friends',$menu_friends); - $xoopsTpl->assign('menu_gallery',$menu_gallery); - $xoopsTpl->assign('check',1); - $xoopsTpl->assign('friendID',$id); - $xoopsTpl->assign('myUid',$yourid); - $xoopsTpl->assign('friendship_text',$friendship_text); - $xoopsTpl->assign('followfriend_text',$following_text); - $xoopsTpl->assign('friendinvitations',$getInvitations); - $xoopsTpl->assign('myavatar',$myavatar); - $xoopsTpl->assign('myavatarlink',$myavatarlink); - $xoopsTpl->assign('myusername',$username); - $xoopsTpl->assign('username',$Xusername); - } else { - $check->chkUser (); - } - - global $xoTheme; - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/apprise-1.5.full.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/jquery.fileupload-ui.css'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.oembed.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/wall.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/ajaxupload.3.5.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.avatar_helper.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); - - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/galleryshow.php =================================================================== --- XoopsModules/smallworld/trunk/galleryshow.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/galleryshow.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,77 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_galleryshow.html'; -include_once(XOOPS_ROOT_PATH."/header.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -global $xoopsUser, $xoTheme; - - if ($xoopsUser) { - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/galleriffic-5.css'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/basic.css'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/black.css'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.galleriffic.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.history.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.opacityrollover.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/gallery_mod.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); - - $id = $xoopsUser->getVar('uid'); - $check = new SmallWorldUser; - $image = new SmallWorldImages; - - // Check if inspected userid -> redirect to userprofile and show admin countdown - $inspect = isInspected ($id); - if ($inspect['inspect'] == 'yes') { - redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1); - } - - $profile = $check->checkIfProfile($id); - if ($profile > 0) { - $myusername = $xoopsUser->getVar('uname'); - if ( $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $xoopsTpl->assign('isadminuser', 'YES'); - } - $user = new XoopsUser($id); - $userID = smallworld_isset_or($_GET['username']); // Id of user wich profile you want to see - $username = $_GET['username']; - $countimages = $image->count($userID); - $userisfriend = $check->friendcheck($id,$userID); - - //$gallery = $image->viewalbum ($id, $user=$xoopsUser->getVar('uid')); - $gallery = $image->viewalbum ($id, $userID); - $xoopsTpl->assign('countimages',$countimages); - $xoopsTpl->assign('userisfriend',$userisfriend); - $xoopsTpl->assign('gallery',$gallery); - $xoopsTpl->assign('closealbum',_SMALLWORLD_ALBUMTITLETEXT); - $xoopsTpl->assign('username',$username); - $xoopsTpl->assign('myusername',$myusername); - $xoopsTpl->assign('gallerytitleheader',_SMALLWORLD_TITLEHEADER); - $xoopsTpl->assign('check',1); - } elseif ($profile == 0) { - $check->chkUser (); - } - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - } -include(XOOPS_ROOT_PATH."/footer.php"); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/image_edit_submit.php =================================================================== --- XoopsModules/smallworld/trunk/image_edit_submit.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/image_edit_submit.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,35 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); - global $xoopsUser, $xoTheme, $xoopsTpl,$xoopsLogger; - $xoopsLogger->activated = false; - $db = new SmallWorldDB; - $upd = new Wall_Updates; - $userID = $xoopsUser->getVar('uid'); - $user = new XoopsUser($userID); - $username = $user->getVar('uname'); - - $update = "........"._SMALLWORLD_UPLOADEDSOMEIMAGES.XOOPS_URL."/modules/smallworld/galleryshow.php?username=".$username; - $upd->Insert_Update($userID, $update); - $db->handleImageEdit (); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/img_upload.php =================================================================== --- XoopsModules/smallworld/trunk/img_upload.php 2012-01-18 05:13:40 UTC (rev 8748) +++ XoopsModules/smallworld/trunk/img_upload.php 2012-01-18 05:17:13 UTC (rev 8749) @@ -1,56 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ -include_once("../../mainfile.php"); -$xoopsOption['template_main'] = 'smallworld_userprofile_imgupload.html'; -include XOOPS_ROOT_PATH.'/header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/arrays.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_... [truncated message content] |
From: <be...@us...> - 2012-01-18 05:13:46
|
Revision: 8748 http://xoops.svn.sourceforge.net/xoops/?rev=8748&view=rev Author: beckmi Date: 2012-01-18 05:13:40 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Adjusting folder structure Added Paths: ----------- XoopsModules/smallworld/branches/ XoopsModules/smallworld/trunk/smallworld/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-01-18 01:38:26
|
Revision: 8747 http://xoops.svn.sourceforge.net/xoops/?rev=8747&view=rev Author: beckmi Date: 2012-01-18 01:38:16 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Adjusting folder structure Added Paths: ----------- XoopsModules/newbb/branches/alfred/newbb/_htaccess XoopsModules/newbb/branches/alfred/newbb/action.post.php XoopsModules/newbb/branches/alfred/newbb/action.topic.php XoopsModules/newbb/branches/alfred/newbb/admin/ XoopsModules/newbb/branches/alfred/newbb/blocks/ XoopsModules/newbb/branches/alfred/newbb/class/ XoopsModules/newbb/branches/alfred/newbb/delete.php XoopsModules/newbb/branches/alfred/newbb/digest.php XoopsModules/newbb/branches/alfred/newbb/dl_attachment.php XoopsModules/newbb/branches/alfred/newbb/docs/ XoopsModules/newbb/branches/alfred/newbb/edit.php XoopsModules/newbb/branches/alfred/newbb/header.php XoopsModules/newbb/branches/alfred/newbb/images/ XoopsModules/newbb/branches/alfred/newbb/include/ XoopsModules/newbb/branches/alfred/newbb/index.php XoopsModules/newbb/branches/alfred/newbb/language/ XoopsModules/newbb/branches/alfred/newbb/list.tag.php XoopsModules/newbb/branches/alfred/newbb/list.topic.php XoopsModules/newbb/branches/alfred/newbb/makepdf.php XoopsModules/newbb/branches/alfred/newbb/moderate.php XoopsModules/newbb/branches/alfred/newbb/newtopic.php XoopsModules/newbb/branches/alfred/newbb/notification_update.php XoopsModules/newbb/branches/alfred/newbb/polls.php XoopsModules/newbb/branches/alfred/newbb/post.php XoopsModules/newbb/branches/alfred/newbb/print.php XoopsModules/newbb/branches/alfred/newbb/ratethread.php XoopsModules/newbb/branches/alfred/newbb/reply.php XoopsModules/newbb/branches/alfred/newbb/report.php XoopsModules/newbb/branches/alfred/newbb/rss.php XoopsModules/newbb/branches/alfred/newbb/search.php XoopsModules/newbb/branches/alfred/newbb/seo.php XoopsModules/newbb/branches/alfred/newbb/seo_url.php XoopsModules/newbb/branches/alfred/newbb/sql/ XoopsModules/newbb/branches/alfred/newbb/templates/ XoopsModules/newbb/branches/alfred/newbb/topicmanager.php XoopsModules/newbb/branches/alfred/newbb/update_type.php XoopsModules/newbb/branches/alfred/newbb/view.tag.php XoopsModules/newbb/branches/alfred/newbb/viewforum.php XoopsModules/newbb/branches/alfred/newbb/viewpost.php XoopsModules/newbb/branches/alfred/newbb/viewtopic.php XoopsModules/newbb/branches/alfred/newbb/votepolls.php XoopsModules/newbb/branches/alfred/newbb/xoops_version.php Removed Paths: ------------- XoopsModules/newbb/branches/alfred/_htaccess XoopsModules/newbb/branches/alfred/action.post.php XoopsModules/newbb/branches/alfred/action.topic.php XoopsModules/newbb/branches/alfred/admin/ XoopsModules/newbb/branches/alfred/blocks/ XoopsModules/newbb/branches/alfred/class/ XoopsModules/newbb/branches/alfred/delete.php XoopsModules/newbb/branches/alfred/digest.php XoopsModules/newbb/branches/alfred/dl_attachment.php XoopsModules/newbb/branches/alfred/docs/ XoopsModules/newbb/branches/alfred/edit.php XoopsModules/newbb/branches/alfred/header.php XoopsModules/newbb/branches/alfred/images/ XoopsModules/newbb/branches/alfred/include/ XoopsModules/newbb/branches/alfred/index.php XoopsModules/newbb/branches/alfred/language/ XoopsModules/newbb/branches/alfred/list.tag.php XoopsModules/newbb/branches/alfred/list.topic.php XoopsModules/newbb/branches/alfred/makepdf.php XoopsModules/newbb/branches/alfred/moderate.php XoopsModules/newbb/branches/alfred/newtopic.php XoopsModules/newbb/branches/alfred/notification_update.php XoopsModules/newbb/branches/alfred/polls.php XoopsModules/newbb/branches/alfred/post.php XoopsModules/newbb/branches/alfred/print.php XoopsModules/newbb/branches/alfred/ratethread.php XoopsModules/newbb/branches/alfred/reply.php XoopsModules/newbb/branches/alfred/report.php XoopsModules/newbb/branches/alfred/rss.php XoopsModules/newbb/branches/alfred/search.php XoopsModules/newbb/branches/alfred/seo.php XoopsModules/newbb/branches/alfred/seo_url.php XoopsModules/newbb/branches/alfred/sql/ XoopsModules/newbb/branches/alfred/templates/ XoopsModules/newbb/branches/alfred/topicmanager.php XoopsModules/newbb/branches/alfred/update_type.php XoopsModules/newbb/branches/alfred/view.tag.php XoopsModules/newbb/branches/alfred/viewforum.php XoopsModules/newbb/branches/alfred/viewpost.php XoopsModules/newbb/branches/alfred/viewtopic.php XoopsModules/newbb/branches/alfred/votepolls.php XoopsModules/newbb/branches/alfred/xoops_version.php Deleted: XoopsModules/newbb/branches/alfred/_htaccess =================================================================== --- XoopsModules/newbb/branches/alfred/_htaccess 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/_htaccess 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,3 +0,0 @@ -RewriteEngine on -RewriteRule ^([a-z]+)-([0-9]+)(/(.+))? seo.php?seoOp=$1&seoArg=$2&seoOther=$4&%{QUERY_STRING} [L] -RewriteRule ^(.*)$ $1 [L] Deleted: XoopsModules/newbb/branches/alfred/action.post.php =================================================================== --- XoopsModules/newbb/branches/alfred/action.post.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/action.post.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,212 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ -include_once dirname(__FILE__) . "/header.php"; - -$topic_id = isset($_POST['topic_id']) ? intval($_POST['topic_id']) : 0; -$post_id = !empty($_GET['post_id']) ? intval($_GET['post_id']) : 0; -$post_id = !empty($_POST['post_id']) ? $_POST['post_id'] : $post_id; -$uid = !empty($_POST['uid']) ? $_POST['uid'] : 0; -$op = !empty($_GET['op']) ? $_GET['op'] : (!empty($_POST['op']) ? $_POST['op']:""); -$op = in_array($op, array("approve", "delete", "restore", "split"))? $op : ""; -$mode = !empty($_GET['mode']) ? intval($_GET['mode']) : 1; - -if ( empty($post_id) || empty($op)) { - redirect_header("javascript:history.go(-1);", 2, _MD_NORIGHTTOACCESS); - exit(); -} - - -$post_handler =& xoops_getmodulehandler('post', 'newbb'); -$topic_handler =& xoops_getmodulehandler('topic', 'newbb'); -$forum_handler =& xoops_getmodulehandler('forum', 'newbb'); -if (empty($topic_id)) { - $forum_obj = null; -} else { - $topic_obj =& $topic_handler->get($topic_id); - $forum_id = $topic_obj->getVar('forum_id'); - $forum_obj =& $forum_handler->get($forum_id); -} -$isadmin = newbb_isAdmin($forum_obj); - -if (!$isadmin) { - redirect_header("index.php", 2, _MD_NORIGHTTOACCESS); - exit(); -} - -switch($op) { - case "restore": - $post_id = array_values($post_id); - sort($post_id); - $topics = array(); - $forums = array(); - foreach ($post_id as $post) { - $post_obj =& $post_handler->get($post); - if ($post_obj->getVar("topic_id")<1) continue; - $post_handler->approve($post_obj,true); - $topics[$post_obj->getVar("topic_id")] =1; - $forums[$post_obj->getVar("forum_id")] =1; - unset($post_obj); - } - foreach (array_keys($topics) as $topic) { - $topic_handler->synchronization($topic); - } - foreach (array_keys($forums) as $forum) { - $forum_handler->synchronization($forum); - } - break; - case "approve": - $post_id = array_values($post_id); - sort($post_id); - $topics=array(); - $forums=array(); - $criteria = new Criteria("post_id", "(".implode(",", $post_id).")", "IN"); - $posts_obj =& $post_handler->getObjects($criteria, true); - foreach ($post_id as $post) { - $post_obj =& $posts_obj[$post]; - if (!empty($topic_id) && $topic_id!=$post_obj->getVar("topic_id")) continue; - $post_handler->approve($post_obj); - $topics[$post_obj->getVar("topic_id")] = $post; - $forums[$post_obj->getVar("forum_id")] = 1; - } - foreach (array_keys($topics) as $topic) { - $topic_handler->synchronization($topic); - } - foreach (array_keys($forums) as $forum) { - $forum_handler->synchronization($forum); - } - - if (empty($xoopsModuleConfig['notification_enabled'])) break; - - $criteria_topic = new Criteria("topic_id", "(".implode(",", array_keys($topics)).")", "IN"); - $topic_list =& $topic_handler->getList($criteria_topic, true); - - $criteria_forum = new Criteria("forum_id", "(".implode(",", array_keys($forums)).")", "IN"); - $forum_list =& $forum_handler->getList($criteria_forum); - - include_once 'include/notification.inc.php'; - $notification_handler =& xoops_gethandler('notification'); - foreach ($post_id as $post) { - $tags = array(); - $tags['THREAD_NAME'] = $topic_list[$posts_obj[$post]->getVar("topic_id")]; - $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewtopic.php?topic_id=' . $posts_obj[$post]->getVar("topic_id").'&forum=' . $posts_obj[$post]->getVar('forum_id'); - $tags['FORUM_NAME'] = $forum_list[$posts_obj[$post]->getVar('forum_id')]; - $tags['FORUM_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewforum.php?forum=' . $posts_obj[$post]->getVar('forum_id'); - $tags['POST_URL'] = $tags['THREAD_URL'].'#forumpost' . $post; - $notification_handler->triggerEvent('thread', $posts_obj[$post]->getVar("topic_id"), 'new_post', $tags); - $notification_handler->triggerEvent('forum', $posts_obj[$post]->getVar('forum_id'), 'new_post', $tags); - $notification_handler->triggerEvent('global', 0, 'new_post', $tags); - $tags['POST_CONTENT'] = $posts_obj[$post]->getVar("post_text"); - $tags['POST_NAME'] = $posts_obj[$post]->getVar("subject"); - $notification_handler->triggerEvent('global', 0, 'new_fullpost', $tags); - $notification_handler->triggerEvent('forum', $posts_obj[$post]->getVar('forum_id'), 'new_fullpost', $tags); - } - break; - case "delete": - $post_id = array_values($post_id); - rsort($post_id); - $topics=array(); - $forums=array(); - foreach ($post_id as $post) { - $post_obj =& $post_handler->get($post); - if (!empty($topic_id) && $topic_id != $post_obj->getVar("topic_id")) continue; - $topics[$post_obj->getVar("topic_id")] = 1; - $forums[$post_obj->getVar("forum_id")] = 1; - $post_handler->delete($post_obj,true); - unset($post_obj); - } - foreach (array_keys($topics) as $topic) { - $topic_handler->synchronization($topic); - } - foreach (array_keys($forums) as $forum) { - $forum_handler->synchronization($forum); - } - break; - case "split": - $post_obj =& $post_handler->get($post_id); - if (empty($post_id) || $post_obj->isTopic()) { - break; - } - $topic_id = $post_obj->getVar("topic_id"); - - $newtopic =& $topic_handler->create(); - $newtopic->setVar("topic_title", $post_obj->getVar("subject"), true); - $newtopic->setVar("topic_poster", $post_obj->getVar("uid"), true); - $newtopic->setVar("forum_id", $post_obj->getVar("forum_id"), true); - $newtopic->setVar("topic_time", $post_obj->getVar("post_time"), true); - $newtopic->setVar("poster_name", $post_obj->getVar("poster_name"), true); - $newtopic->setVar("approved", 1, true); - $topic_handler->insert($newtopic, true); - $new_topic_id = $newtopic->getVar('topic_id'); - - $pid = $post_obj->getVar("pid"); - - $post_obj->setVar("topic_id", $new_topic_id, true); - $post_obj->setVar("pid", 0, true); - $post_handler->insert($post_obj); - - /* split a single post */ - if ($mode==1) { - $criteria = new CriteriaCompo(new Criteria("topic_id", $topic_id)); - $criteria->add(new Criteria('pid',$post_id)); - $post_handler->updateAll("pid", $pid, $criteria, true); - /* split a post and its children posts */ - } elseif ($mode==2) { - include_once(XOOPS_ROOT_PATH . "/class/xoopstree.php"); - $mytree = new XoopsTree($xoopsDB->prefix("bb_posts"), "post_id", "pid"); - $posts = $mytree->getAllChildId($post_id); - if (count($posts)>0) { - $criteria = new Criteria('post_id', "(".implode(",", $posts).")", "IN"); - $post_handler->updateAll("topic_id", $new_topic_id, $criteria, true); - } - /* split a post and all posts coming after */ - } elseif ($mode==3) { - $criteria = new CriteriaCompo(new Criteria("topic_id", $topic_id)); - $criteria->add(new Criteria('post_id',$post_id, ">")); - $post_handler->updateAll("topic_id", $new_topic_id, $criteria, true); - - unset($criteria); - $criteria = new CriteriaCompo(new Criteria("topic_id", $new_topic_id)); - $criteria->add(new Criteria('post_id',$post_id, ">")); - $post_handler->identifierName = "pid"; - $posts = $post_handler->getList($criteria); - - unset($criteria); - $post_update = array(); - foreach ($posts as $postid=>$pid) { - if (!in_array($pid, array_keys($posts))) { - $post_update[] = $pid; - } - } - if (count($post_update)) { - $criteria = new Criteria('post_id', "(".implode(",", $post_update).")", "IN"); - $post_handler->updateAll("pid", $post_id, $criteria, true); - } - } - - $forum_id = $post_obj->getVar("forum_id"); - $topic_handler->synchronization($topic_id); - $topic_handler->synchronization($new_topic_id); - $sql = sprintf("UPDATE %s SET forum_topics = forum_topics+1 WHERE forum_id = %u", $xoopsDB->prefix("bb_forums"), $forum_id); - $result = $xoopsDB->queryF($sql); - - break; -} -if (!empty($topic_id)) { - redirect_header("viewtopic.php?topic_id=$topic_id", 2, _MD_DBUPDATED); -} elseif (!empty($forum_id)) { - redirect_header("viewforum.php?forum=$forum_id", 2, _MD_DBUPDATED); -} else { - redirect_header("viewpost.php?uid=$uid", 2, _MD_DBUPDATED); -} - -include XOOPS_ROOT_PATH.'/footer.php'; -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/action.topic.php =================================================================== --- XoopsModules/newbb/branches/alfred/action.topic.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/action.topic.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,175 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ -include_once dirname(__FILE__) . "/header.php"; - -$forum_id = isset($_POST['forum_id']) ? intval($_POST['forum_id']) : 0; -$topic_id = !empty($_POST['topic_id']) ? $_POST['topic_id'] : null; -$op = !empty($_POST['op']) ? $_POST['op']:""; -$op = in_array($op, array("approve", "delete", "restore", "move"))? $op : ""; - - -if ( empty($topic_id) || empty($op)) { - redirect_header("javascript:history.go(-1);", 2, _MD_NORIGHTTOACCESS); - exit(); -} - -$topic_id = array_values($topic_id); -$topic_handler =& xoops_getmodulehandler('topic', 'newbb'); -$forum_handler =& xoops_getmodulehandler('forum', 'newbb'); - -$isadmin = newbb_isAdmin($forum_id); - -if (!$isadmin) { - redirect_header("index.php", 2, _MD_NORIGHTTOACCESS); - exit(); -} -switch($op) { - case "restore": - $forums = array(); - $topics_obj =& $topic_handler->getAll(new Criteria("topic_id", "(".implode(",", $topic_id).")", "IN")); - foreach (array_keys($topics_obj) as $id) { - $topic_obj =& $topics_obj[$id]; - $topic_handler->approve($topic_obj); - $topic_handler->synchronization($topic_obj); - $forums[$topic_obj->getVar("forum_id")] = 1; - } - $criteria_forum = new Criteria("forum_id", "(".implode(",", array_keys($forums)).")", "IN"); - $forums_obj =& $forum_handler->getAll($criteria_forum); - foreach (array_keys($forums_obj) as $id) { - $forum_handler->synchronization($forums_obj[$id]); - } - unset($topics_obj, $forums_obj); - break; - case "approve": - $forums = array(); - $topics_obj =& $topic_handler->getAll(new Criteria("topic_id", "(".implode(",", $topic_id).")", "IN")); - foreach (array_keys($topics_obj) as $id) { - $topic_obj =& $topics_obj[$id]; - $topic_handler->approve($topic_obj); - $topic_handler->synchronization($topic_obj); - $forums[$topic_obj->getVar("forum_id")] = 1; - } - - $criteria_forum = new Criteria("forum_id", "(".implode(",", array_keys($forums)).")", "IN"); - $forums_obj =& $forum_handler->getAll($criteria_forum); - foreach (array_keys($forums_obj) as $id) { - $forum_handler->synchronization($forums_obj[$id]); - } - - if (empty($xoopsModuleConfig['notification_enabled'])) break; - - include_once 'include/notification.inc.php'; - $notification_handler =& xoops_gethandler('notification'); - foreach (array_keys($topics_obj) as $id) { - $topic_obj =& $topics_obj[$id]; - $tags = array(); - $tags['THREAD_NAME'] = $topic_obj->getVar("topic_title"); - $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewtopic.php?topic_id=' . $id.'&forum=' . $topic_obj->getVar('forum_id'); - $tags['FORUM_NAME'] = $forums_obj[$topic_obj->getVar("forum_id")]->getVar("forum_name"); - $tags['FORUM_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewforum.php?forum=' . $topic_obj->getVar('forum_id'); - $notification_handler->triggerEvent('global', 0, 'new_thread', $tags); - $notification_handler->triggerEvent('forum', $topic_obj->getVar('forum_id'), 'new_thread', $tags); - $post_obj =& $topic_handler->getTopPost($id); - $tags['POST_URL'] = $tags['THREAD_URL'].'#forumpost' . $post_obj->getVar("post_id"); - $notification_handler->triggerEvent('thread', $id, 'new_post', $tags); - $notification_handler->triggerEvent('forum', $topic_obj->getVar('forum_id'), 'new_post', $tags); - $notification_handler->triggerEvent('global', 0, 'new_post', $tags); - $tags['POST_CONTENT'] = $post_obj->getVar("post_text"); - $tags['POST_NAME'] = $post_obj->getVar("subject"); - $notification_handler->triggerEvent('global', 0, 'new_fullpost', $tags); - $notification_handler->triggerEvent('forum', $topic_obj->getVar('forum_id'), 'new_fullpost', $tags); - unset($post_obj); - } - unset($topics_obj, $forums_obj); - break; - case "delete": - $forums = array(); - $topics_obj =& $topic_handler->getAll(new Criteria("topic_id", "(".implode(",", $topic_id).")", "IN")); - foreach (array_keys($topics_obj) as $id) { - $topic_obj =& $topics_obj[$id]; - $topic_handler->delete($topic_obj,true); - $topic_handler->synchronization($topic_obj); - $forums[$topic_obj->getVar("forum_id")] = 1; - } - - $criteria_forum = new Criteria("forum_id", "(".implode(",", array_keys($forums)).")", "IN"); - $forums_obj =& $forum_handler->getAll($criteria_forum); - foreach (array_keys($forums_obj) as $id) { - $forum_handler->synchronization($forums_obj[$id]); - } - $stats_handler = xoops_getmodulehandler('stats', 'newbb'); - $stats_handler->reset(); - unset($topics_obj, $forums_obj); - break; - case "move": - if (!empty($_POST["newforum"]) && $_POST["newforum"] != $forum_id - && $forum_handler->getPermission($_POST["newforum"], 'post') - ) { - $criteria = new Criteria('topic_id', "(".implode(",", $topic_id).")", "IN"); - $post_handler =& xoops_getmodulehandler('post', 'newbb'); - $post_handler->updateAll("forum_id", intval($_POST["newforum"]), $criteria, true); - $topic_handler->updateAll("forum_id", intval($_POST["newforum"]), $criteria, true); - $forum_handler->synchronization($_POST["newforum"]); - $forum_handler->synchronization($forum_id); - } else { - include XOOPS_ROOT_PATH."/header.php"; - $category_handler =& xoops_getmodulehandler('category', 'newbb'); - $categories = $category_handler->getByPermission('access'); - $forums = $forum_handler->getForumsByCategory(array_keys($categories), 'post', false); - - $box = '<select name="newforum" size="1">'; - if (count($categories)>0 && count($forums)>0) { - foreach (array_keys($forums) as $key) { - $box .= "<option value='-1'>[".$categories[$key]->getVar('cat_title')."]</option>"; - foreach ($forums[$key] as $forumid=>$_forum) { - $box .= "<option value='".$forumid."'>-- ".$_forum['title']."</option>"; - if ( !isset($_forum["sub"])) continue; - foreach (array_keys($_forum["sub"]) as $fid) { - $box .= "<option value='".$fid."'>---- ".$_forum["sub"][$fid]['title']."</option>"; - } - } - } - } else { - $box .= "<option value='-1'>"._MD_NOFORUMINDB."</option>"; - } - $box .="</select>"; - unset($forums, $categories); - - echo "<form action='".$_SERVER['PHP_SELF']."' method='post'>"; - echo "<table border='0' cellpadding='1' cellspacing='0' align='center' width='95%'>"; - echo "<tr><td class='bg2'>"; - echo "<table border='0' cellpadding='1' cellspacing='1' width='100%'>"; - echo '<tr><td class="bg3">'._MD_MOVETOPICTO.'</td><td class="bg1">'; - echo $box; - echo '</td></tr>'; - echo '<tr class="bg3"><td colspan="2" align="center">'; - echo "<input type='hidden' name='op' value='move' />"; - echo "<input type='hidden' name='forum_id' value='{$forum_id}' />"; - foreach ($topic_id as $id) { - echo "<input type='hidden' name='topic_id[]' value='".$id."' />"; - } - echo "<input type='submit' name='submit' value='". _SUBMIT."' />"; - echo "</td></tr></table></td></tr></table>"; - echo "</form>"; - include XOOPS_ROOT_PATH.'/footer.php'; - exit(); - } - break; -} -if (empty($forum_id)) { - redirect_header("list.topic.php", 2, _MD_DBUPDATED); -} else { - redirect_header("viewforum.php?forum=$forum_id", 2, _MD_DBUPDATED); -} - -include XOOPS_ROOT_PATH.'/footer.php'; -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/delete.php =================================================================== --- XoopsModules/newbb/branches/alfred/delete.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/delete.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,140 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ - -include_once dirname(__FILE__) . "/header.php"; - -$ok = isset($_POST['ok']) ? intval($_POST['ok']) : 0; -foreach (array('forum', 'topic_id', 'post_id', 'order', 'pid', 'act') as $getint) { - ${$getint} = isset($_POST[$getint]) ? intval($_POST[$getint]) : 0; -} -foreach (array('forum', 'topic_id', 'post_id', 'order', 'pid', 'act') as $getint) { - ${$getint} = (${$getint})?${$getint}:(isset($_GET[$getint]) ? intval($_GET[$getint]) : 0); -} -$viewmode = (isset($_GET['viewmode']) && $_GET['viewmode'] != 'flat') ? 'thread' : 'flat'; -$viewmode = ($viewmode)?$viewmode: (isset($_POST['viewmode'])?$_POST['viewmode'] : 'flat'); - -$forum_handler =& xoops_getmodulehandler('forum', 'newbb'); -$topic_handler =& xoops_getmodulehandler('topic', 'newbb'); -$post_handler =& xoops_getmodulehandler('post', 'newbb'); - -if ( !empty($post_id) ) { - $topic =& $topic_handler->getByPost($post_id); -} else { - $topic =& $topic_handler->get($topic_id); -} -$topic_id = $topic->getVar('topic_id'); -if ( !$topic_id ) { - $redirect = empty($forum)?"index.php":'viewforum.php?forum='.$forum; - redirect_header($redirect, 2, _MD_ERRORTOPIC); - exit(); -} - -$forum = $topic->getVar('forum_id'); -$forum_obj =& $forum_handler->get($forum); -if (!$forum_handler->getPermission($forum_obj)) { - redirect_header("index.php", 2, _MD_NORIGHTTOACCESS); - exit(); -} - -$isadmin = newbb_isAdmin($forum_obj); -$uid = is_object($xoopsUser)? $xoopsUser->getVar('uid'):0; - -$post_obj =& $post_handler->get($post_id); -$topic_status = $topic->getVar('topic_status'); -if ( $topic_handler->getPermission($topic->getVar("forum_id"), $topic_status, 'delete') - && ( $isadmin || $post_obj->checkIdentity() )) {} -else { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); - exit(); -} - -if (!$isadmin && !$post_obj->checkTimelimit('delete_timelimit')) { - redirect_header("viewtopic.php?forum=$forum&topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid",2,_MD_TIMEISUPDEL); - exit(); -} - -if ($xoopsModuleConfig['wol_enabled']) { - $online_handler =& xoops_getmodulehandler('online', 'newbb'); - $online_handler->init($forum_obj); -} - -if ( $ok ) { - $isDeleteOne = (1 == $ok)? true : false; - if ($post_obj->isTopic() && $topic->getVar("topic_replies")==0) $isDeleteOne=false; - if ($isDeleteOne && $post_obj->isTopic() && $topic->getVar("topic_replies")>0) { - //$post_handler->emptyTopic($post_obj); - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTFIRSTWITHREPLYNODELETED); - exit(); - } else { - if (!empty($_POST['post_text'])) - { - //send a message - $member_handler =& xoops_gethandler('member'); - $senduser =& $member_handler->getUser($post_obj->getVar('uid')); - if ($senduser->getVar('notify_method') > 0) - { - $xoopsMailer =& xoops_getMailer(); - $xoopsMailer->reset(); - if ($senduser->getVar('notify_method')==1) - $xoopsMailer->usePM(); - else - $xoopsMailer->useMail(); - $xoopsMailer->setHTML(true); - $xoopsMailer->setToUsers($senduser); - $xoopsMailer->setFromName($xoopsUser->getVar('uname')); - $xoopsMailer->setSubject(_MD_DELEDEDMSG_SUBJECT); - $forenurl = "<a href=\"".XOOPS_URL."/modules/".$xoopsModule->getVar('dirname')."/viewtopic.php?topic_id=".$post_obj->getVar('topic_id')."\">".$post_obj->getVar('subject')."</a>"; - if (!empty($xoopsModuleConfig['do_rewrite'])) $forenurl = seo_urls($forenurl); - $body = sprintf(_MD_DELEDEDMSG_BODY, $senduser->getVar('uname'),$forenurl, $_POST['post_text'],$xoopsUser->getVar('uname'),$xoopsConfig['sitename'] ,XOOPS_URL . "/" ); - $body = $myts->nl2Br($body); - $xoopsMailer->setBody($body); - $xoopsMailer->send(); - } - } - $post_handler->delete($post_obj, $isDeleteOne); - $forum_handler->synchronization($forum); - $topic_handler->synchronization($topic_id); - $stats_handler = xoops_getmodulehandler('stats', 'newbb'); - $stats_handler->reset(); - } - - $post_obj->loadFilters("delete"); - if ( $isDeleteOne ) { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTDELETED); - } else { - redirect_header("viewforum.php?forum=$forum", 2, _MD_POSTSDELETED); - } - exit(); - -} else { - include XOOPS_ROOT_PATH."/header.php"; - //xoops_confirm(array('post_id' => $post_id, 'viewmode' => $viewmode, 'order' => $order, 'forum' => $forum, 'topic_id' => $topic_id, 'ok' => 1), 'delete.php', _MD_DEL_ONE); - echo '<div class="confirmMsg">' . _MD_DEL_ONE . '<br /> - <form method="post" action="delete.php">'; - echo _MD_DELEDEDMSG . '<br />'; - echo '<textarea name="post_text" cols="50" rows="5"></textarea><br />'; - echo '<input type="hidden" name="post_id" value="' . htmlspecialchars($post_id) . '" />'; - echo '<input type="hidden" name="order" value="' . htmlspecialchars($order) . '" />'; - echo '<input type="hidden" name="forum" value="' . htmlspecialchars($forum) . '" />'; - echo '<input type="hidden" name="topic_id" value="' . htmlspecialchars($topic_id) . '" />'; - echo '<input type="hidden" name="ok" value="1" />'; - echo $GLOBALS['xoopsSecurity']->getTokenHTML(); - echo '<input type="submit" name="confirm_submit" value="' . _SUBMIT .'" title="' . _SUBMIT .'"/> - <input type="button" name="confirm_back" value="' . _CANCEL . '" onclick="javascript:history.go(-1);" title="' . _CANCEL . '" /> - </form> - </div>'; - if ($isadmin) { - xoops_confirm(array('post_id' => $post_id, 'viewmode' => $viewmode, 'order' => $order, 'forum' => $forum, 'topic_id' => $topic_id, 'ok' => 99), 'delete.php', _MD_DEL_RELATED); - } - include XOOPS_ROOT_PATH.'/footer.php'; -} -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/digest.php =================================================================== --- XoopsModules/newbb/branches/alfred/digest.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/digest.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,26 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ - -// Why the skip-DB-security check defined only for XMLRPC? We also need it!!! ~_* -if (!defined('XOOPS_XMLRPC')) define('XOOPS_XMLRPC', 1); -ob_start(); -include_once("header.php"); -if ($xoopsModuleConfig['email_digest'] ==0) { - echo "<br />Not set"; - return false; -} -$digest_handler =& xoops_getmodulehandler('digest', 'newbb'); -$msg = $digest_handler->process(); -$msg .= ob_get_contents(); -ob_end_clean(); -echo "<br />".$msg; -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/dl_attachment.php =================================================================== --- XoopsModules/newbb/branches/alfred/dl_attachment.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/dl_attachment.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,89 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ - -ob_start(); -include_once dirname(__FILE__) . "/header.php"; -include XOOPS_ROOT_PATH.'/header.php'; - -$attach_id = isset($_GET['attachid']) ? strval($_GET['attachid']) : ''; -$post_id = isset($_GET['post_id']) ? intval($_GET['post_id']) : 0; - -if (!$post_id||!$attach_id) die(_MD_NO_SUCH_FILE.': post_id:'.$post_id.'; attachid'.$attachid); - -$post_handler =& xoops_getmodulehandler('post', 'newbb'); -$forumpost =& $post_handler->get($post_id); -if (!$approved = $forumpost->getVar('approved')) die(_MD_NORIGHTTOVIEW); -$topic_handler =& xoops_getmodulehandler('topic', 'newbb'); -$topic_obj =& $topic_handler->getByPost($post_id); -$topic_id = $topic_obj->getVar('topic_id'); -if (!$approved = $topic_obj->getVar('approved')) die(_MD_NORIGHTTOVIEW); -$forum_handler =& xoops_getmodulehandler('forum', 'newbb'); -$forum_obj =& $forum_handler->get($topic_obj->getVar('forum_id')); -if (!$forum_handler->getPermission($forum_obj)) die(_MD_NORIGHTTOACCESS); -if (!$topic_handler->getPermission($forum_obj, $topic_obj->getVar('topic_status'), "view")) die(_MD_NORIGHTTOVIEW); - -$attachments = $forumpost->getAttachment(); -$attach = $attachments[$attach_id]; -if (!$attach) die(_MD_NO_SUCH_FILE); -$file_saved = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig['dir_attachments'].'/'.$attach['name_saved']; -if (!file_exists($file_saved)) die(_MD_NO_SUCH_FILE); -if ($down = $forumpost->incrementDownload($attach_id)) { - $forumpost->saveAttachment(); -} -unset($forumpost); -$msg = ob_get_contents(); -ob_end_clean(); - -$xoopsLogger->activated = false; -if (!empty($GLOBALS["xoopsModuleConfig"]["download_direct"])): - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); -header("location: ".XOOPS_URL.'/'.$xoopsModuleConfig['dir_attachments'].'/'.$attach['name_saved']); - -else: -$file_display = $attach['name_display']; -//$mimetype = $attach['mimetype']; - -if (ini_get('zlib.output_compression')) { - @ini_set('zlib.output_compression', 'Off'); -} - -if (function_exists('mb_http_output')) { - mb_http_output('pass'); -} -header('Expires: 0'); -//header('Content-Type: '.$mimetype); -header('Content-Type: application/octet-stream'); -if (preg_match("/MSIE ([0-9]\.[0-9]{1,2})/", $_SERVER["HTTP_USER_AGENT"])) { - header('Content-Disposition: attachment; filename="'.$file_display.'"'); - header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - header('Pragma: public'); -} else { - header('Content-Disposition: attachment; filename="'.$file_display.'"'); - header('Pragma: no-cache'); -} -header("Content-Type: application/force-download"); -header("Content-Transfer-Encoding: binary"); - -$handle = fopen($file_saved, "rb"); -while (!feof($handle)) { - $buffer = fread($handle, 4096); - echo $buffer; -} -fclose($handle); - -endif; -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/edit.php =================================================================== --- XoopsModules/newbb/branches/alfred/edit.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/edit.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,148 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ - -include_once dirname(__FILE__) . "/header.php"; - -foreach (array('forum', 'topic_id', 'post_id', 'order') as $getint) { - ${$getint} = isset($_GET[$getint]) ? intval($_GET[$getint]) : 0; -} - -if ( !$topic_id && !$post_id ) { - $redirect = empty($forum)? "index.php" : "viewforum.php?forum={$forum}"; - redirect_header($redirect, 2, _MD_ERRORTOPIC); -} - -$forum_handler =& xoops_getmodulehandler('forum', 'newbb'); -$topic_handler =& xoops_getmodulehandler('topic', 'newbb'); -$post_handler =& xoops_getmodulehandler('post', 'newbb'); - - -$post_obj =& $post_handler->get($post_id); -$topic_obj =& $topic_handler->get($post_obj->getVar("topic_id")); -$forum_obj =& $forum_handler->get($post_obj->getVar("forum_id")); -if (!$forum_handler->getPermission($forum_obj)) { - redirect_header("index.php", 2, _MD_NORIGHTTOACCESS); - exit(); -} - -if ($xoopsModuleConfig['wol_enabled']) { - $online_handler =& xoops_getmodulehandler('online', 'newbb'); - $online_handler->init($forum_obj); -} -$isadmin = newbb_isAdmin($forum_obj); -$uid = is_object($xoopsUser)? $xoopsUser->getVar('uid'):0; - -$topic_id = $post_obj->getVar("topic_id"); -$topic_status = $topic_obj->getVar('topic_status'); -$error_msg = null; - -if (! $topic_handler->getPermission($forum_obj, $topic_status, 'edit') - || ( !$isadmin && !$post_obj->checkIdentity()) -) { - $error_msg = _MD_NORIGHTTOEDIT; -} elseif (!$isadmin && !$post_obj->checkTimelimit('edit_timelimit')) { - $error_msg = _MD_TIMEISUP; -} - -if (!empty($error_msg)) { - /* - * Build the page query - */ - $query_vars = array("topic_id", "post_id", "forum", "status", "order", "mode", "viewmode"); - $query_array = array(); - foreach ($query_vars as $var) { - if (!empty($_GET[$var])) $query_array[$var] = "{$var}={$_GET[$var]}"; - } - $page_query = htmlspecialchars(implode("&", array_values($query_array))); - unset($query_array); - redirect_header("viewtopic.php?{$page_query}", 2, $error_msg); -} - - -if ($xoopsModuleConfig['wol_enabled']) { - $online_handler =& xoops_getmodulehandler('online', 'newbb'); - $online_handler->init($forum_obj); -} - -$xoopsOption['template_main'] = 'newbb_edit_post.html'; -$xoopsConfig["module_cache"][$xoopsModule->getVar("mid")] = 0; -include XOOPS_ROOT_PATH.'/header.php'; - -/* -$xoopsTpl->assign('lang_forum_index', sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); - -$category_handler =& xoops_getmodulehandler("category"); -$category_obj =& $category_handler->get($forum_obj->getVar("cat_id"), array("cat_title")); -$xoopsTpl->assign('category', array("id" => $forum_obj->getVar("cat_id"), "title" => $category_obj->getVar('cat_title'))); - -$form_title = _EDIT.": <a href=\"viewtopic.php?post_id={$post_id}\">".$post_obj->getVar("subject"); -$xoopsTpl->assign("form_title", $form_title); - -$xoopsTpl->assign("parentforum", $forum_handler->getParents($forum_obj)); - -$xoopsTpl->assign(array( - 'forum_id' => $forum_obj->getVar('forum_id'), - 'forum_name' => $forum_obj->getVar('forum_name'), - )); -*/ - -$dohtml = $post_obj->getVar('dohtml'); -$dosmiley = $post_obj->getVar('dosmiley'); -$doxcode = $post_obj->getVar('doxcode'); -$dobr = $post_obj->getVar('dobr'); -$icon = $post_obj->getVar('icon'); -$attachsig = $post_obj->getVar('attachsig'); -$istopic = ( $post_obj->istopic() )?1:0; -$isedit = 1; -$subject = $post_obj->getVar('subject', "E"); -$message = $post_obj->getVar('post_text', "E"); -$poster_name = $post_obj->getVar('poster_name', "E"); -$attachments = $post_obj->getAttachment(); -$post_karma = $post_obj->getVar('post_karma'); -$require_reply = $post_obj->getVar('require_reply'); - -$xoopsTpl->assign("error_message", _MD_EDITEDBY . " " . $xoopsUser->uname() ); -include 'include/form.post.php'; - -$karma_handler =& xoops_getmodulehandler('karma', 'newbb'); -$user_karma = $karma_handler->getUserKarma(); - -$posts_context = array(); -$posts_context_obj = ($istopic)? array() : array($post_handler->get($post_obj->getVar('pid'))); -foreach ($posts_context_obj as $post_context_obj) { - if ( $xoopsModuleConfig['enable_karma'] && $post_context_obj->getVar('post_karma') > 0 ) { - $p_message = sprintf(_MD_KARMA_REQUIREMENT, "***", $post_context_obj->getVar('post_karma'))."</div>"; - } elseif ( $xoopsModuleConfig['allow_require_reply'] && $post_context_obj->getVar('require_reply') ) { - $p_message = _MD_REPLY_REQUIREMENT; - } else { - $p_message = $post_context_obj->getVar('post_text'); - } - - if ($post_context_obj->getVar('uid')) { - $p_name =newbb_getUnameFromId( $post_context_obj->getVar('uid'), $xoopsModuleConfig['show_realname'] ); - } else { - $poster_name = $post_context_obj->getVar('poster_name'); - $p_name = (empty($poster_name))? htmlspecialchars($xoopsConfig['anonymous']) : $poster_name; - } - $p_date = formatTimestamp($post_context_obj->getVar('post_time')); - $p_subject = $post_context_obj->getVar('subject'); - - $posts_context[] = array( - "subject" => $p_subject, - "meta" => _MD_BY." ".$p_name." "._MD_ON." ".$p_date, - "content" => $p_message, - ); -} -$xoopsTpl->assign_by_ref("posts_context", $posts_context); - -include XOOPS_ROOT_PATH.'/footer.php'; -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/header.php =================================================================== --- XoopsModules/newbb/branches/alfred/header.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/header.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,92 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ -include_once '../../mainfile.php'; -defined('XOOPS_ROOT_PATH') or die('Restricted access'); -if (!empty($xoopsModuleConfig['do_rewrite'])) include_once "seo_url.php"; -/* for seo */ -$noseo_url = array("newtopic.php","list.topic.php","viewpost.php","reply.php","report.php","search.php","edit.php","moderate.php","polls.php","delete.php","index.php","makepdf.php"); - -if(((strpos(getenv('REQUEST_URI'), '.html') === false) && !empty($xoopsModuleConfig['do_rewrite']) && (!isset($_POST) || count($_POST) <=0))) -{ - if ( !in_array(basename(getenv('SCRIPT_NAME')),$noseo_url) && (trim(getenv("REQUEST_URI")) != '') && trim(getenv("REQUEST_URI")) != "/".REAL_MODULE_NAME."/") { - $s = XOOPS_URL . getenv("REQUEST_URI"); - $newurl = seo_urls('<a href="'.$s.'"></a>'); - $newurl = str_replace('<a href="','',$newurl); - $newurl = str_replace('"></a>','',$newurl); - if (!headers_sent()) { - header("HTTP/1.1 301 Moved Permanently"); - header("Location: $newurl"); - exit(); - } - } -} -include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/include/vars.php"; - -mod_loadFunctions("user", "newbb"); -mod_loadFunctions("topic", "newbb"); - -require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; -require_once XOOPS_ROOT_PATH."/class/module.textsanitizer.php"; -$myts = MyTextSanitizer::getInstance(); - -$menumode = 0; -$menumode_other = array(); -$menu_url = htmlSpecialChars(preg_replace("/&menumode=[^&]/", "", $_SERVER[ 'REQUEST_URI' ])); -$menu_url .= ( false === strpos($menu_url, "?") ) ? "?menumode=" : "&menumode="; -foreach ($xoopsModuleConfig["valid_menumodes"] as $key => $val) { - if ($key != $menumode) $menumode_other[] = array("title"=>$val, "link"=>$menu_url.$key); -} - -$newbb_module_header = ''; -$newbb_module_header .= '<link rel="alternate" type="application/rss+xml" title="'.$xoopsModule->getVar("name").'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', "n").'/rss.php" />'; -if (!empty($xoopsModuleConfig['pngforie_enabled'])) { - $newbb_module_header .= '<style type="text/css">img {behavior:url("include/pngbehavior.htc");}</style>'; -} -$newbb_module_header .= ' - <link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar("dirname").'/templates/style.css" /> - <script type="text/javascript">var toggle_cookie="'.$forumCookie['prefix'].'G'.'";</script> - <script src="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar("dirname").'/include/js/newbb_toggle.js" type="text/javascript"></script> - '; - -if ($menumode == 2) { - $newbb_module_header .= ' - <link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar("dirname").'templates/newbb_menu_hover.css" /> - <style type="text/css">body {behavior:url("include/newbb.htc");}</style> - '; -} - -if ($menumode == 1) { - $newbb_module_header .= ' - <link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar("dirname").'templates/newbb_menu_click.css" /> - <script src="include/js/newbb_menu_click.js" type="text/javascript"></script> - '; -} - -$xoops_module_header = $newbb_module_header; // for cache hack - -if (!empty($xoopsModuleConfig["welcome_forum"]) && is_object($xoopsUser) && !$xoopsUser->getVar('posts')) { - mod_loadFunctions("welcome", "newbb"); -} - -$pollmodules = NULL; -$module_handler = &xoops_gethandler('module'); -$xoopspoll = &$module_handler->getByDirname('xoopspoll'); -if (is_object($xoopspoll) && $xoopspoll->getVar('isactive')) - $pollmodules = 'xoopspoll'; -else -{ - //Umfrage - $xoopspoll = &$module_handler->getByDirname('umfrage'); - if (is_object($xoopspoll) && $xoopspoll->getVar('isactive')) - $pollmodules = 'umfrage'; -} -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/index.php =================================================================== --- XoopsModules/newbb/branches/alfred/index.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/index.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,254 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id$ - * @package module::newbb - */ - -include_once dirname(__FILE__) . "/header.php"; - - -/* deal with marks */ -if (isset($_GET['mark_read'])) { - if (1 == intval($_GET['mark_read'])) { // marked as read - $markvalue = 1; - $markresult = _MD_MARK_READ; - } else { // marked as unread - $markvalue = 0; - $markresult = _MD_MARK_UNREAD; - } - mod_loadFunctions("read", "newbb"); - newbb_setRead_forum($markvalue); - $url = 'index.php'; - redirect_header($url, 2, _MD_ALL_FORUM_MARKED.' '.$markresult); -} - -$viewcat = @intval($_GET['cat']); -$category_handler = xoops_getmodulehandler('category', 'newbb'); - -$categories = array(); -if (!$viewcat) { - $categories = $category_handler->getByPermission('access', null, false); - $forum_index_title = ""; - $xoops_pagetitle = $xoopsModule->getVar('name'); -} else { - $category_obj = $category_handler->get($viewcat); - if ($category_handler->getPermission($category_obj)) { - $categories[$viewcat] = $category_obj->getValues(); - } - $forum_index_title = sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)); - $xoops_pagetitle = $category_obj->getVar('cat_title') . " [" .$xoopsModule->getVar('name')."]"; -} - -if (count($categories) == 0) { - redirect_header(XOOPS_URL, 2, _MD_NORIGHTTOACCESS); - exit(); -} - -/* rss feed */ -if (!empty($xoopsModuleConfig['rss_enable'])) { - $xoops_module_header .= ' - <link rel="alternate" type="application/rss+xml" title="'.$xoopsModule->getVar('name').'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/rss.php" /> - '; -} - -$xoopsOption['template_main'] = 'newbb_index.html'; -$xoopsOption['xoops_pagetitle'] = $xoops_pagetitle; -$xoopsOption['xoops_module_header'] = $xoops_module_header; -include $GLOBALS['xoops']->path('header.php'); -mod_loadFunctions("render", "newbb"); - -$xoopsTpl->assign('xoops_pagetitle', $xoops_pagetitle); -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); -$xoopsTpl->assign('forum_index_title', $forum_index_title); - -//if ($xoopsModuleConfig['wol_enabled']) { -if (!empty($xoopsModuleConfig['wol_enabled'])) { - $online_handler = xoops_getmodulehandler('online', 'newbb'); - $online_handler->init(); - $xoopsTpl->assign('online', $online_handler->show_online()); -} -$forum_handler = xoops_getmodulehandler('forum', 'newbb'); -$post_handler = xoops_getmodulehandler('post', 'newbb'); - -/* Allowed forums */ -$forums_allowed = $forum_handler->getIdsByPermission(); - -/* fetch top forums */ -$forums_top = array(); - -if (!empty($forums_allowed)) { - $crit_top = new CriteriaCompo(new Criteria("parent_forum", 0)); - $crit_top->add(new Criteria("cat_id", "(".implode(", ", array_keys($categories)).")", "IN")); - $crit_top->add(new Criteria("forum_id", "(".implode(", ", $forums_allowed).")", "IN")); - $forums_top = $forum_handler->getIds($crit_top); -} - -/* fetch subforums if required to display */ -if (empty($forums_top) || $xoopsModuleConfig['subforum_display'] == "hidden") { - $forums_sub = array(); -} else { - $crit_sub = new CriteriaCompo(new Criteria("parent_forum", "(".implode(", ", $forums_top).")", "IN")); - $crit_sub->add(new Criteria("forum_id", "(".implode(", ", $forums_allowed).")", "IN")); - $forums_sub = $forum_handler->getIds($crit_sub); -} - -/* Fetch forum data */ -$forums_available = array_merge($forums_top, $forums_sub); -$forums_array = array(); -$newtopics = 0; -$deletetopics = 0; -$newposts = 0; -$deleteposts = 0; -if (!empty($forums_available)) { - $crit_forum = new Criteria("forum_id", "(".implode(", ", $forums_available).")", "IN"); - $crit_forum->setSort("cat_id ASC, parent_forum ASC, forum_order"); - $crit_forum->setOrder("ASC"); - $forums = $forum_handler->getAll($crit_forum, null, false); - $newtopics = $forum_handler->getTopicCount($forums, 0, "pending"); - $deletetopics = $forum_handler->getTopicCount($forums, 0, "deleted"); - $forums_array = $forum_handler->display($forums, $xoopsModuleConfig["length_title_index"], $xoopsModuleConfig["count_subforum"]); - $crit = new CriteriaCompo(new Criteria("forum_id", "(".implode(", ", $forums_available).")", "IN")); - $crit->add(new Criteria('approved','-1')); - $deleteposts = $post_handler->getCount($crit); - $crit = new CriteriaCompo(new Criteria("forum_id", "(".implode(", ", $forums_available).")", "IN")); - $crit->add(new Criteria('approved','0')); - $newposts = $post_handler->getCount($crit); -} - -if ($newtopics > 0) $xoopsTpl->assign('wait_new_topic',$newtopics); -if ($deletetopics > 0) $xoopsTpl->assign('delete_topic',$deletetopics); -if ($newposts > 0) $xoopsTpl->assign('wait_new_post',$newposts); -if ($deleteposts > 0) $xoopsTpl->assign('delete_post',$deleteposts); - -$report_handler = xoops_getmodulehandler('report', 'newbb'); -$reported = $report_handler->getCount(new Criteria("report_result", 0)); -if ($reported > 0) $xoopsTpl->assign('report_post',sprintf(_MD_NEWBB_SEEWAITREPORT,$reported)); - - -if (count($forums_array)>0) { - foreach ($forums_array[0] as $parent => $forum) { - if (isset($forums_array[$forum['forum_id']])) { - $forum['subforum'] = $forums_array[$forum['forum_id']]; - } - $forumsByCat[$forum['forum_cid']][] = $forum; - } -} - -$category_array = array(); -$toggles = newbb_getcookie('G', true); -$icon_handler = newbb_getIconHandler(); -$category_icon = array( - "expand" => $icon_handler->getImageSource("minus"), - "collapse" => $icon_handler->getImageSource("plus")) - ; - -foreach (array_keys($categories) as $id) { - $forums = array(); - $onecat = $categories[$id]; - - $cat_element_id = "cat_".$onecat['cat_id']; - $expand = (count($toggles) > 0) ? ( (in_array($cat_element_id, $toggles)) ? false : true ) : true; - $cat_display = ($expand) ? 'block;' : 'none;'; - $cat_icon_display = ($expand) ? $category_icon["expand"] : $category_icon["collapse"]; - - if (isset($forumsByCat[$onecat['cat_id']])) { - $forums = $forumsByCat[$onecat['cat_id']]; - } - - $cat_sponsor = array(); - @list($url, $title) = array_map("trim", preg_split("/ /", $onecat['cat_url'], 2)); - if (empty($title)) $title = $url; - $title = $myts->htmlSpecialChars($title); - if (!empty($url)) $cat_sponsor = array("title" => $title, "link" => formatURL($url)); - $cat_image = $onecat['cat_image']; - if ( !empty($cat_image) && $cat_image != "blank.gif") { - $cat_image = XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") . "/images/category/" . $cat_image; - } else { - $cat_image = ""; - } - $category_array[] = array( - 'cat_id' => $onecat['cat_id'], - 'cat_title' => $myts->displayTarea($onecat['cat_title'],1), - 'cat_image' => $cat_image, - 'cat_sponsor' => $cat_sponsor, - 'cat_description' => $myts->displayTarea($onecat['cat_description'],1), - 'cat_element_id' => $cat_element_id, - 'cat_display' => $cat_display, - 'cat_icon_display' => $cat_icon_display, - 'forums' => $forums - ); -} -unset($categories, $forums_array, $forumsByCat); -$xoopsTpl->assign_by_ref("category_icon", $category_icon); -$xoopsTpl->assign_by_ref("categories", $category_array); - -$xoopsTpl->assign(array( - "index_title" => sprintf(_MD_WELCOME, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)), - "index_desc" => _MD_TOSTART, - )); - -/* display user stats */ -if (!empty($xoopsModuleConfig['statistik_enabled'])) { - $userstats = array(); - if (is_object($xoopsUser)) { - $userstats_handler =& xoops_getmodulehandler('userstats'); - $userstats_row = $userstats_handler->getStats($xoopsUser->getVar("uid")); - $userstats["topics"] = sprintf(_MD_USER_TOPICS, intval( @$userstats_row["user_topics"] )); - $userstats["posts"] = sprintf(_MD_USER_POSTS, intval( @$userstats_row["user_posts"] )); - $userstats["digests"] = sprintf(_MD_USER_DIGESTS, intval( @$userstats_row["user_digests"] )); - $userstats["currenttime"] = sprintf(_MD_TIMENOW, formatTimestamp(time(), "s")); - $userstats["lastvisit"] = sprintf(_MD_USER_LASTVISIT, formatTimestamp($last_visit, "s")); - $userstats["lastpost"] = empty($userstats_row["user_lastpost"]) ? _MD_USER_NOLASTPOST : sprintf(_MD_USER_LASTPOST, formatTimestamp($userstats_row["user_lastpost"], "s")); - } - $xoopsTpl->assign_by_ref("userstats", $userstats); - $xoopsTpl->assign('currenttime', sprintf(_MD_TIMENOW, formatTimestamp(time(), "m"))); -} - - -/* display forum stats */ -$stats_handler = xoops_getmodulehandler('stats'); -$stats = $stats_handler->getStats(array_merge(array(0), $forums_available)); -$xoopsTpl->assign_by_ref("stats", $stats); -$xoopsTpl->assign("subforum_display", $xoopsModuleConfig['subforum_display']); -$xoopsTpl->assign('mark_read', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") . "/index.php?mark_read=1"); -$xoopsTpl->assign('mark_unread', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") . "/index.php?mark_read=2"); - -$xoopsTpl->assign('all_link', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") ."/list.topic.php?status=all"); -$xoopsTpl->assign('post_link', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") ."/viewpost.php?status=all"); -$xoopsTpl->assign('newpost_link', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") ."/viewpost.php?status=new"); -$xoopsTpl->assign('digest_link', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") ."/list.topic.php?status=digest"); -$xoopsTpl->assign('unreplied_link', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") ."/list.topic.php?status=unreplied"); -$xoopsTpl->assign('unread_link', XOOPS_URL."/modules/" . $xoopsModule->getVar("dirname", "n") ."/list.topic.php?status=unread"); -$xoopsTpl->assign('menumode', $menumode); -$xoopsTpl->assign('menumode_other', $menumode_other); - -$isadmin = $GLOBALS["xoopsUserIsAdmin"]; -$xoopsTpl->assign('viewer_level', ($isadmin) ? 2 : is_object($xoopsUser)); -$mode = (!empty($_GET['mode'])) ? intval($_GET['mode']) : 0; -$xoopsTpl->assign('mode', $mode ); - -$xoopsTpl->assign('viewcat', $viewcat); -$xoopsTpl->assign('version', $xoopsModule->getVar("version")); - -/* To be removed */ -if ( $isadmin ) { - $xoopsTpl->assign('forum_index_cpanel',array("link" => "admin/index.php", "name" => _MD_ADMINCP)); -} - -if ($xoopsModuleConfig['rss_enable'] == 1) { - $xoopsTpl->assign("rss_enable", 1); - $xoopsTpl->assign("rss_button", newbb_displayImage('rss', 'RSS feed')); -} -$xoopsTpl->assign(array( - "img_forum_new" => newbb_displayImage('forum_new', _MD_NEWPOSTS), - "img_forum" => newbb_displayImage('forum', _MD_NONEWPOSTS), - 'img_subforum' => newbb_displayImage('subforum'))); - -include $GLOBALS['xoops']->path('footer.php'); -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/list.tag.php =================================================================== --- XoopsModules/newbb/branches/alfred/list.tag.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/list.tag.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,14 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ -include "header.php"; -include XOOPS_ROOT_PATH."/modules/tag/list.tag.php"; -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/list.topic.php =================================================================== --- XoopsModules/newbb/branches/alfred/list.topic.php 2012-01-18 01:33:54 UTC (rev 8746) +++ XoopsModules/newbb/branches/alfred/list.topic.php 2012-01-18 01:38:16 UTC (rev 8747) @@ -1,91 +0,0 @@ -<?php -/** - * CBB 4.0, or newbb, the forum module for XOOPS project - * - * @copyright The XOOPS Project http://xoops.sf.net - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Taiwen Jiang (phppp or D.J.) <ph...@us...> - * @since 4.00 - * @version $Id $ - * @package module::newbb - */ - -include_once dirname(__FILE__) . "/header.php"; - -if (!empty($xoopsModuleConfig['rss_enable'])) { - $xoops_module_header .= '<link rel="alternate" type="application/xml+rss" title="'.$xoopsModule->getVar('name').'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/rss.php" />'; -} -$xoopsOption['xoops_module_header']= $xoops_module_header; -$xoopsOption['template_main'] = 'newbb_viewall.html'; -include XOOPS_ROOT_PATH."/header.php"; - -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); - -mod_loadFunctions("time", "newbb"); -mod_loadFunctions("render", "newbb"); - -require "./class/topic.renderer.php"; -$topic_renderer = NewbbTopicRenderer::instance(); -$topic_renderer->userlevel = $GLOBALS["xoopsUserIsAdmin"] ? 2 : is_object($xoopsUser); -$topic_renderer->is_multiple = true; -$topic_renderer->config =& $xoopsModuleConfig; -$topic_renderer->setVars( @$_GET ); - -$type = intval( @$_GET['type'] ); -$status = (!empty($_GET['status']) && in_array($_GET['status'], array("active", "pending", "deleted", "digest", "unreplied", "unread")))? $_GET['status'] : "all"; -$mode = (!empty($status) && in_array($status, array("active", "pending", "deleted"))) ? 2 : (!empty($_GET['mode']) ? intval($_GET['mode']) : 0); - -$isadmin = $GLOBALS["xoopsUserIsAdmin"]; -/* Only admin has access to admin mode */ -if (!$isadmin) { - $mode = 0; -} - -if ($xoopsModuleConfig['wol_enabled']) { - $online_handler =& xoops_getmodulehandler('online', 'newbb'); - $online_handler->init(); - $online_handler->render($xoopsTpl); -} - -$topic_renderer->buildHeaders($xoopsTpl); -$topic_renderer->buildFilters($xoopsTpl); -$topic_renderer->buildTypes($xoopsTpl); -$topic_renderer->buildCurrent($xoopsTpl); -$topic_renderer->renderTopics($xoopsTpl); -$topic_renderer->buildSearch($xoopsTpl); -$topic_renderer->buildPagenav($xoopsTpl); -$topic_renderer->buildSelection($xoopsTpl); - -$xoopsTpl->assign('rating_enable', $xoopsModuleConfig['rating_enabled']); - -$xoopsTpl->assign('img_newposts', newbb_displayImage('topic_new')); -$xoopsTpl->assign('img_hotnewposts', newbb_displayImage('topic_hot_new')); -$xoopsTpl->assign('img_folder', newbb_displayImage('topic')); -$xoopsTpl->assign('img_hotfolder', newbb_displayImage('topic_hot')); -$xoopsTpl->assign('img_locked', newbb_displayImage('topic_locked')); - -$xoopsTpl->assign('img_sticky', newbb_displayImage('topic_sticky', _MD_TOPICSTICKY)); -$xoopsTpl->assign('img_digest', newbb_displayImage('topic_digest', _MD_TOPICDIGEST)); -$xoopsTpl->assign('img_poll', newbb_displayImage('poll', _MD_TOPICHASPOLL)); - -$xoopsTpl->assign('post_link', "viewpost.php"); -$xoopsTpl->assign('newpost_link', "viewpost.php?status=new"); - - -if (!empty($xoopsModuleConfig['show_jump'])) { - mod_loadFunctions("forum", "newbb"); - $xoopsTpl->assign('forum_jumpbox', newbb_make_jumpbox()); -} -$xoopsTpl->assign('menumode', $menumode); -$xoopsTpl->assign('menumode_other', $menumode_other); - -$xoopsTpl->assign('mode', $mode); -$xoopsTpl->assign('status', $status); -$xoopsTpl->assign('viewer_level', ($isadmin) ? 2 : is_object($xoopsUser) ); - -$pagetitle = sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['site... [truncated message content] |
From: <be...@us...> - 2012-01-18 01:34:01
|
Revision: 8746 http://xoops.svn.sourceforge.net/xoops/?rev=8746&view=rev Author: beckmi Date: 2012-01-18 01:33:54 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Adjusting folder structure Added Paths: ----------- XoopsModules/newbb/branches/alfred/newbb/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-16 17:22:14
|
Revision: 8745 http://xoops.svn.sourceforge.net/xoops/?rev=8745&view=rev Author: djculex Date: 2012-01-16 17:22:07 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Updated register and templates to use admin selected forms Modified Paths: -------------- XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html Modified: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 16:22:06 UTC (rev 8744) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 17:22:07 UTC (rev 8745) @@ -201,7 +201,7 @@ $xoopsTpl->assign('show_city','no'); } - if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') == 0) { + if (smallworldGetValfromArray ('website', 'smallworldusethesefields') == 0) { $xoopsTpl->assign('show_website','no'); } Modified: XoopsModules/smallworld/trunk/register.php =================================================================== --- XoopsModules/smallworld/trunk/register.php 2012-01-16 16:22:06 UTC (rev 8744) +++ XoopsModules/smallworld/trunk/register.php 2012-01-16 17:22:07 UTC (rev 8745) @@ -53,126 +53,216 @@ if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$xoopsUser->getVar('name')); $xoopsTpl->append('realname',$realname); + } else { + $xoopsTpl->assign('show_realname','no'); } if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { // Dropdown for gender $gender = $item->dropdown('gender',$arr0,0); $xoopsTpl->append('gender', $gender); + } else { + $xoopsTpl->assign('show_gender','no'); } // Selectbox for "interested in gender(s)" - $intInGender = $item->radio('intingender',$arr01,0); + if (smallworldGetValfromArray ('interestedin', 'smallworldusethesefields') != 0) { + $intInGender = $item->radio('intingender',$arr01,0); $xoopsTpl->append('intingender',$intInGender); + } else { + $xoopsTpl->assign('show_interestedin','no'); + } // Dropdown for marital status - $relationshipstatus = $item->dropdown('relationship',$arr02,0); + if (smallworldGetValfromArray ('relationshipstatus', 'smallworldusethesefields') != 0) { + $relationshipstatus = $item->dropdown('relationship',$arr02,0); $xoopsTpl->append('relationshipstatus',$relationshipstatus); - // Partner. Only shown if marital status is married, it's complicated, engaged) - $partner = $item->input('partner', 'partner', 'partner',$size='30', $preset=null); - $xoopsTpl->append('partner',$partner); + // Partner. Only shown if marital status is married, it's complicated, engaged) + $partner = $item->input('partner', 'partner', 'partner',$size='30', $preset=null); + $xoopsTpl->append('partner',$partner); + } else { + $xoopsTpl->assign('show_relationshipstatus','no'); + } // Checkbox for searchin for - $searchrelat = $item->radio('searchrelat',$arr03,0); + if (smallworldGetValfromArray ('lookingfor', 'smallworldusethesefields') != 0) { + $searchrelat = $item->radio('searchrelat',$arr03,0); $xoopsTpl->append('searchrelat',$searchrelat); + } else { + $xoopsTpl->assign('show_lookingfor','no'); + } // Select Birthday dd-mm-Y - $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=null); + if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) { + $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=null); $xoopsTpl->append('birthdaydate',$birthday); + } else { + $xoopsTpl->assign('show_birthday','no'); + } // Select Hometown or Enter new - $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=null); + if (smallworldGetValfromArray ('birthplace', 'smallworldusethesefields') != 0) { + $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=null); $xoopsTpl->append('birthplace',$birthplace); + } else { + $xoopsTpl->assign('show_birthplace','no'); + } // Dropdown politics - $politic = $item->dropdown('politic',$arr04,0); + if (smallworldGetValfromArray ('politicalview', 'smallworldusethesefields') != 0) { + $politic = $item->dropdown('politic',$arr04,0); $xoopsTpl->append('politic',$politic); + } else { + $xoopsTpl->assign('show_political','no'); + } // Dropdown Religion - $religion = $item->dropdown('religion',$arr05,0); + if (smallworldGetValfromArray ('religiousview', 'smallworldusethesefields') != 0) { + $religion = $item->dropdown('religion',$arr05,0); $xoopsTpl->append('religion',$religion); + } else { + $xoopsTpl->assign('show_religion','no'); + } // ------------ CONTACT INFO ------------ // // Add email test //function input_add($class, $name, $name2, $rel, $size, $textmore, $preset=null) { //$emailtext = $item->input('email','email','email',$size='12',$preset=null); - $emailtext = $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,_SMALLWORLD_ADDMORE,$preset=$xoopsUser->getVar('email'),"email-0"); + if (smallworldGetValfromArray ('emails', 'smallworldusethesefields') != 0) { + $emailtext = $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,_SMALLWORLD_ADDMORE,$preset=$xoopsUser->getVar('email'),"email-0"); $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; $emailtext .= "<a class='smallworld_addemail' href='javascript:void(0);' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('emailtext',$emailtext); + $xoopsTpl->append('emailtext',$emailtext); + } else { + $xoopsTpl->assign('show_emails','no'); + } // Drop down for screen names /*dropdown_add ($name, $name2, $rel, array $options, $textmore, $selected=null) {*/ - $screenname = $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,_SMALLWORLD_ADDMORE,$selected=null, $preset=null); - $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; + if (smallworldGetValfromArray ('screennames', 'smallworldusethesefields') != 0) { + $screenname = $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,_SMALLWORLD_ADDMORE,$selected=null, $preset=null); + $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('screenname',$screenname); - + $xoopsTpl->append('screenname',$screenname); + } else { + $xoopsTpl->assign('show_screennames','no'); + } + // Mobilephone - $mobile = $item->input('mobile','mobile','mobile',12,$preset=null); - $xoopsTpl->append('mobile',$mobile); + if (smallworldGetValfromArray ('mobile', 'smallworldusethesefields') != 0) { + $mobile = $item->input('mobile','mobile','mobile',12,$preset=null); + $xoopsTpl->append('mobile',$mobile); + } else { + $xoopsTpl->assign('show_mobile','no'); + } // Landphone - $phone = $item->input('phone','phone','phone',12,$preset=null); - $xoopsTpl->append('phone',$phone); + if (smallworldGetValfromArray ('landphone', 'smallworldusethesefields') != 0) { + $phone = $item->input('phone','phone','phone',12,$preset=null); + $xoopsTpl->append('phone',$phone); + } else { + $xoopsTpl->assign('show_landphone','no'); + } // Adress - $adress = $item->input('adress','adress','adress',$size='50',$preset=null); - $xoopsTpl->append('adress',$adress); - - $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=null); - $xoopsTpl->append('present_city',$present_city); - - $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=null); - $xoopsTpl->append('present_country',$present_country); + if (smallworldGetValfromArray ('streetadress', 'smallworldusethesefields') != 0) { + $adress = $item->input('adress','adress','adress',$size='50',$preset=null); + $xoopsTpl->append('adress',$adress); + } else { + $xoopsTpl->assign('show_adress','no'); + } + if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') != 0) { + $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=null); + $xoopsTpl->append('present_city',$present_city); + $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=null); + $xoopsTpl->append('present_country',$present_country); + } else { + $xoopsTpl->assign('show_city','no'); + } + + if (smallworldGetValfromArray ('website', 'smallworldusethesefields') == 0) { + $xoopsTpl->assign('show_website','no'); + } + // ------------ INTERESTS ------------ // // Textarea for interests //textarea($name, $id, $title, $rows, $cols, $class) - $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites'); - $xoopsTpl->append('interests',$interests); + if (smallworldGetValfromArray ('interests', 'smallworldusethesefields') != 0) { + $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites'); + $xoopsTpl->append('interests',$interests); + } else { + $xoopsTpl->assign('show_interests','no'); + } // Textarea for Music - $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites'); - $xoopsTpl->append('music',$music); + if (smallworldGetValfromArray ('favouritemusic', 'smallworldusethesefields') != 0) { + $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites'); + $xoopsTpl->append('music',$music); + } else { + $xoopsTpl->assign('show_music','no'); + } // Textarea for Tvshow - $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites'); - $xoopsTpl->append('tvshow',$tvshow); + if (smallworldGetValfromArray ('favouritetvshows', 'smallworldusethesefields') != 0) { + $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites'); + $xoopsTpl->append('tvshow',$tvshow); + } else { + $xoopsTpl->assign('show_tv','no'); + } // Textarea for Movie - $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites'); - $xoopsTpl->append('movie',$movie); + if (smallworldGetValfromArray ('favouritemovies', 'smallworldusethesefields') != 0) { + $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites'); + $xoopsTpl->append('movie',$movie); + } else { + $xoopsTpl->assign('show_movies','no'); + } // Textarea for Books - $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites'); - $xoopsTpl->append('books',$books); + if (smallworldGetValfromArray ('favouritebooks', 'smallworldusethesefields') != 0) { + $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites'); + $xoopsTpl->append('books',$books); + } else { + $xoopsTpl->assign('show_books','no'); + } // Textarea for About me - $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites'); - $xoopsTpl->append('aboutme',$aboutme); + if (smallworldGetValfromArray ('aboutme', 'smallworldusethesefields') != 0) { + $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites'); + $xoopsTpl->append('aboutme',$aboutme); + } else { + $xoopsTpl->assign('show_aboutme','no'); + } // ------------ SCHOOL ------------ // - //School name - $school = $item->school_add ('smallworld_add3', 'school', 'school_type', '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=null,$preset=null,$selectedstart=null,$selectedstop=null); - $school .= "<span class='smallworld_remove2' id='schoolremove'>"; - $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + if (smallworldGetValfromArray ('education', 'smallworldusethesefields') != 0) { + $school = $item->school_add ('smallworld_add3', 'school', 'school_type', '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=null,$preset=null,$selectedstart=null,$selectedstop=null); + $school .= "<span class='smallworld_remove2' id='schoolremove'>"; + $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('school',$school); + $xoopsTpl->append('school',$school); + } else { + $xoopsTpl->assign('show_school','no'); + } //Jobs //function job ($class, $name,$name2, $rel, array$options, $textmore, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null) { - $job = $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null); - $job .= "<span class='smallworld_remove3' id='jobremove'>"; + if (smallworldGetValfromArray ('employment', 'smallworldusethesefields') != 0) { + $job = $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null); + $job .= "<span class='smallworld_remove3' id='jobremove'>"; $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('job',$job); + $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('job',$job); + } else { + $xoopsTpl->assign('show_jobs','no'); + } // Create hidden forms for birthcity $birthplace_lat = $item->hidden('birthplace_lat','birthplace_lat',$preset=null); Modified: XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html 2012-01-16 16:22:06 UTC (rev 8744) +++ XoopsModules/smallworld/trunk/templates/smallworld_userprofile_regtemplate.html 2012-01-16 17:22:07 UTC (rev 8745) @@ -8,6 +8,7 @@ <label for="smallworld_realname"><{$smarty.const._SMALLWORLD_PERSONALINFO}></label> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_realname != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_REALNAME}></p></td> <td><label for="Realname"></label> @@ -16,7 +17,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_gender != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_GENDER}></p></td> <td><label for="select"></label> @@ -25,7 +28,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_interestedin != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTEDIN}></p></td> <td><label for="select"></label> @@ -36,7 +41,9 @@ </span> </td> </tr> + <{/if}> + <{if $show_relationshipstatus != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELATIONSHIPSTATUS}></p></td> <td><label for="select"></label> @@ -56,7 +63,9 @@ </td> </tr> </div> + <{/if}> + <{if $show_lookingfor != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LOOKINGFOR}></p></td> <td><label for="select"></label> @@ -68,7 +77,9 @@ <br/> </td> </tr> + <{/if}> + <{if $show_birthday != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHDAY}></p></td> <td> @@ -77,7 +88,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_birthplace != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHPLACE}></p></td> <div class="ui-widget"> @@ -98,11 +111,11 @@ <{$birthplace_country_img[i]}> <{/section}> </td> - </div> - + </div> </tr> + <{/if}> - + <{if $show_political != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_POLITICALVIEW}></p></td> <td><label for="select"></label> @@ -111,7 +124,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_religion != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELIGIOUSVIEW}></p></td> <td><lable for="select"></lable> @@ -120,12 +135,14 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP2}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_emails != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_EMAILS}></p></td> <td><label for="email"></label> @@ -134,6 +151,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_screennames != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_SCREENNAMES}></p></td> <td><label for="Screenname"></label> @@ -143,6 +163,9 @@ </td> </tr> + <{/if}> + + <{if $show_mobile != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_MOBILEPHONE}></p></td> @@ -153,6 +176,9 @@ </td> </tr> + <{/if}> + + <{if $show_landphone != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LANDPHONE}></p></td> <td> @@ -161,7 +187,9 @@ <{/section}> </td> </tr> - + <{/if}> + + <{if $show_adress != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ADRESS}></p></td> <td> @@ -170,6 +198,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_city != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_CITY}></p></td> <div class="ui-widget"> @@ -199,12 +230,16 @@ </td> </tr> + <{/if}> + + <{if $show_website != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_WEBSITE}></p></td> <td><textarea name="website" id="website">http://</textarea> </td> </tr> + <{/if}> </table><br/> </fieldset> @@ -212,6 +247,7 @@ <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP3}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_interests != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTS}></p></td> <td> @@ -220,8 +256,10 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_music != 'no'}> <tr> - <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMUSIC}></p></td> <td> <{section name=i loop=$music}> @@ -229,6 +267,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_tv != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITETVSHOW}></p></td> <td> @@ -237,6 +278,9 @@ <{/section}> </textarea></td> </tr> + <{/if}> + + <{if $show_movies != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMOVIES}></p></td> @@ -246,6 +290,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_books != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEBOOKS}></p></td> <td> @@ -254,7 +301,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_aboutme != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ABOUTME}></p></td> <td> @@ -263,6 +312,7 @@ <{/section}> </td> </tr> + <{/if}> <tr> <td ></td> </tr><br/> @@ -273,7 +323,7 @@ <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP4}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> - + <{if $show_school != 'no'}> <tr> <label for="School"></label> <td> @@ -283,6 +333,7 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> @@ -290,6 +341,7 @@ <legend><{$smarty.const._SMALLWORLD_STEP5}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr> + <{if $show_jobs != 'no'}> <label for="Job"></label> <td> <p class="smallworld_clone4"> @@ -298,6 +350,7 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tst...@us...> - 2012-01-16 16:22:15
|
Revision: 8744 http://xoops.svn.sourceforge.net/xoops/?rev=8744&view=rev Author: tstempko Date: 2012-01-16 16:22:06 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Modified Paths: -------------- XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/errors.php Modified: XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/errors.php =================================================================== --- XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/errors.php 2012-01-16 14:29:22 UTC (rev 8743) +++ XoopsLanguages/polish/core/2.5.0/htdocs/language/polish/errors.php 2012-01-16 16:22:06 UTC (rev 8744) @@ -25,7 +25,7 @@ // _LANGCODE: pl // _CHARSET : UTF-8 // Translator: tstempko -define('_XO_ER_FILENOTFOUND', 'Plik: <b>%s</b> nie zosta\xB3 znaleziony '); -define('_XO_ER_CLASSNOTFOUND', 'Klasa %s nie zosta\xB3a znaleziona'); +define('_XO_ER_FILENOTFOUND', 'Plik: <b>%s</b> nie został znaleziony '); +define('_XO_ER_CLASSNOTFOUND', 'Klasa %s nie została znaleziona'); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-16 14:29:29
|
Revision: 8743 http://xoops.svn.sourceforge.net/xoops/?rev=8743&view=rev Author: djculex Date: 2012-01-16 14:29:22 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Admin descide fields to use assigned on edit_profile Modified Paths: -------------- XoopsModules/smallworld/trunk/editprofile.php XoopsModules/smallworld/trunk/include/functions.php XoopsModules/smallworld/trunk/index.php XoopsModules/smallworld/trunk/language/english/modinfo.php XoopsModules/smallworld/trunk/preloads/core.php XoopsModules/smallworld/trunk/register.php XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/editprofile.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -50,156 +50,253 @@ // ------------ PERSONAL INFO ------------ // // Real name - $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$r['realname']); + if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { + $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$r['realname']); $xoopsTpl->append('realname',$realname); + } else { + $xoopsTpl->assign('show_realname','no'); + } // Dropdown for gender - $gender = $item->dropdown('gender',$arr0,$r['gender']); + if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { + $gender = $item->dropdown('gender',$arr0,$r['gender']); $xoopsTpl->append('gender', $gender); + } else { + $xoopsTpl->assign('show_gender','no'); + } // Selectbox for "interested in gender(s)" - $nr = unserialize($r['intingender']); - $intInGender = $item->RetrieveRadio('intingender',$arr01,$nr, $selected=null); - $xoopsTpl->append('intingender',$intInGender); + if (smallworldGetValfromArray ('interestedin', 'smallworldusethesefields') != 0) { + $nr = unserialize($r['intingender']); + $intInGender = $item->RetrieveRadio('intingender',$arr01,$nr, $selected=null); + $xoopsTpl->append('intingender',$intInGender); + } else { + $xoopsTpl->assign('show_interestedin','no'); + } // Dropdown for marital status - $relationshipstatus = $item->dropdown('relationship',$arr02,0); - $xoopsTpl->append('relationshipstatus',$relationshipstatus); + if (smallworldGetValfromArray ('relationshipstatus', 'smallworldusethesefields') != 0) { + $relationshipstatus = $item->dropdown('relationship',$arr02,0); + $xoopsTpl->append('relationshipstatus',$relationshipstatus); + // Partner. Only shown if marital status is married, it's complicated, engaged) $partner = $item->input('partner', 'partner', 'partner',$size='30', stripslashes($r['partner'])); $xoopsTpl->append('partner',$partner); - + } else { + $xoopsTpl->assign('show_relationshipstatus','no'); + } + + if (smallworldGetValfromArray ('lookingfor', 'smallworldusethesefields') != 0) { $nr1 = unserialize($r['searchrelat']); $searchrelat = $item->RetrieveRadio('searchrelat',$arr03,$nr1, $selected=null); $xoopsTpl->append('searchrelat',$searchrelat); + } else { + $xoopsTpl->assign('show_lookingfor','no'); + } + if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) { // Select Birthday dd-mm-Y $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=stripslashes(UsToEuroDate($r['birthday']))); $xoopsTpl->append('birthdaydate',$birthday); + } else { + $xoopsTpl->assign('show_birthday','no'); + } // Select Hometown or Enter new + if (smallworldGetValfromArray ('birthplace', 'smallworldusethesefields') != 0) { $birthplace = $item->input('birthplace', 'birthplace', 'birthplace',$size='50', $preset=stripslashes($r['birthplace'])); $xoopsTpl->append('birthplace',$birthplace); + } else { + $xoopsTpl->assign('show_birthplace','no'); + } // Dropdown politics + if (smallworldGetValfromArray ('politicalview', 'smallworldusethesefields') != 0) { $politic = $item->dropdown('politic',$arr04,0); $xoopsTpl->append('politic',$politic); + } else { + $xoopsTpl->assign('show_political','no'); + } // Dropdown Religion + if (smallworldGetValfromArray ('religiousview', 'smallworldusethesefields') != 0) { $religion = $item->dropdown('religion',$arr05,0); $xoopsTpl->append('religion',$religion); + } else { + $xoopsTpl->assign('show_religion','no'); + } - // ------------ CONTACT INFO ------------ // - + // ------------ CONTACT INFO ------------ // // Add email test - $nr2 = unserialize($r['emailtype']); - $emailtext = ''; - foreach ($nr2 as $k => $v) { - $nr2id = "email-".$k; - $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v),$nr2id); - // $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v)); - $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + if (smallworldGetValfromArray ('emails', 'smallworldusethesefields') != 0) { + $nr2 = unserialize($r['emailtype']); + $emailtext = ''; + foreach ($nr2 as $k => $v) { + $nr2id = "email-".$k; + $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v),$nr2id); + // $emailtext .= $item->input_add('smallworld_add2','email','emailtype','.smallworld_clone2',20,$addmore=null,$preset=stripslashes($v)); + $emailtext .= "<span class='smallworld_remove' id='emailremove'><a href='javascript:removelnk (\"#emailremovelnk\",\"input#email\",\"email\");' id='emailremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + } + $emailtext .= "<a class='smallworld_addemail' href='javascript:void();' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('emailtext',$emailtext); + } else { + $xoopsTpl->assign('show_emails','no'); } - $emailtext .= "<a class='smallworld_addemail' href='javascript:void();' id='emailAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('emailtext',$emailtext); - + + //Add screen names (usernames for facebook etc etc) - $nr3 = unserialize($r['screenname_type']); - $nr4 = unserialize($r['screenname']); - $count1 = count($nr3); - $cnt1 = 0; - - // Drop down for screen names - $screenname =""; - foreach ($nr3 as $k => $v) { - if ($cnt1 < $count1-1) {$addmore1 ="";} else {$addmore1 = _SMALLWORLD_ADDMORE;} - $screenname .= $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,$addmore1,$selected=stripslashes($nr4[$k]),$preset=stripslashes($v)); - $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; - $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - $cnt1++; + if (smallworldGetValfromArray ('screennames', 'smallworldusethesefields') != 0) { + $nr3 = unserialize($r['screenname_type']); + $nr4 = unserialize($r['screenname']); + $count1 = count($nr3); + $cnt1 = 0; + + // Drop down for screen names + $screenname =""; + foreach ($nr3 as $k => $v) { + if ($cnt1 < $count1-1) {$addmore1 ="";} else {$addmore1 = _SMALLWORLD_ADDMORE;} + $screenname .= $item->dropdown_add('smallworld_add','screenname', 'screenname_type', '.smallworld_clone',$arr06,$addmore1,$selected=stripslashes($nr4[$k]),$preset=stripslashes($v)); + $screenname .= "<span class='smallworld_remove' id='screennameremove'>"; + $screenname .= "<a href='javascript:removelnk (\"#screennameremovelnk\",\"span#screenname\",\"screenname\");' id='screennameremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + $cnt1++; + } + $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('screenname',$screenname); + } else { + $xoopsTpl->assign('show_screennames','no'); } - $screenname .= "<a class='smallworld_addscreenname' href='javascript:void(0);' id='screennameAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('screenname',$screenname); // Mobilephone + if (smallworldGetValfromArray ('mobile', 'smallworldusethesefields') != 0) { $mobile = $item->input('mobile','mobile','mobile',12,$preset=stripslashes($r['mobile'])); $xoopsTpl->append('mobile',$mobile); + } else { + $xoopsTpl->assign('show_mobile','no'); + } // Landphone + if (smallworldGetValfromArray ('landphone', 'smallworldusethesefields') != 0) { $phone = $item->input('phone','phone','phone',12,$preset=stripslashes($r['phone'])); $xoopsTpl->append('phone',$phone); + } else { + $xoopsTpl->assign('show_landphone','no'); + } // Adress - $adress = $item->input('adress','adress','adress',$size='50',$preset=stripslashes($r['adress'])); + if (smallworldGetValfromArray ('streetadress', 'smallworldusethesefields') != 0) { + $adress = $item->input('adress','adress','adress',$size='50',$preset=stripslashes($r['adress'])); $xoopsTpl->append('adress',$adress); - - $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=stripslashes($r['present_city'])); + } else { + $xoopsTpl->assign('show_adress','no'); + } + + if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') != 0) { + $present_city = $item->input('present_city', 'present_city', 'present_city',50, $preset=stripslashes($r['present_city'])); $xoopsTpl->append('present_city',$present_city); - $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=stripslashes($r['present_country'])); + $present_country = $item->input('present_country', 'present_country', 'present_country',$size='50', $preset=stripslashes($r['present_country'])); $xoopsTpl->append('present_country',$present_country); + } else { + $xoopsTpl->assign('show_city','no'); + } + if (smallworldGetValfromArray ('presentcity', 'smallworldusethesefields') == 0) { + $xoopsTpl->assign('show_website','no'); + } + // ------------ INTERESTS ------------ // // Textarea for interests //textarea($name, $id, $title, $rows, $cols, $class) - $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites',$preset=stripslashes($r['interests'])); + if (smallworldGetValfromArray ('interests', 'smallworldusethesefields') != 0) { + $interests = $item->textarea('interests','interests',_SMALLWORLD_INTERESTS,1,20,'favourites',$preset=stripslashes($r['interests'])); $xoopsTpl->append('interests',$interests); + } else { + $xoopsTpl->assign('show_interests','no'); + } // Textarea for Music - $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites',$preset=stripslashes($r['music'])); + if (smallworldGetValfromArray ('favouritemusic', 'smallworldusethesefields') != 0) { + $music = $item->textarea('music','music',_SMALLWORLD_MUSIC,1,20,'favourites',$preset=stripslashes($r['music'])); $xoopsTpl->append('music',$music); + } else { + $xoopsTpl->assign('show_music','no'); + } // Textarea for Tvshow - $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites',$preset=stripslashes($r['tvshow'])); - $xoopsTpl->append('tvshow',$tvshow); + if (smallworldGetValfromArray ('favouritetvshows', 'smallworldusethesefields') != 0) { + $tvshow = $item->textarea('tvshow','tvshow',_SMALLWORLD_TVSHOW,1,20,'favourites',$preset=stripslashes($r['tvshow'])); + $xoopsTpl->append('tvshow',$tvshow); + } else { + $xoopsTpl->assign('show_tv','no'); + } // Textarea for Movie - $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites',$preset=stripslashes($r['movie'])); - $xoopsTpl->append('movie',$movie); + if (smallworldGetValfromArray ('favouritemovies', 'smallworldusethesefields') != 0) { + $movie = $item->textarea('movie','movie',_SMALLWORLD_MOVIE,1,20,'favourites',$preset=stripslashes($r['movie'])); + $xoopsTpl->append('movie',$movie); + } else { + $xoopsTpl->assign('show_movies','no'); + } // Textarea for Books - $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites',$preset=stripslashes($r['books'])); - $xoopsTpl->append('books',$books); + if (smallworldGetValfromArray ('favouritebooks', 'smallworldusethesefields') != 0) { + $books = $item->textarea('books','books',_SMALLWORLD_BOOKS,1,20,'favourites',$preset=stripslashes($r['books'])); + $xoopsTpl->append('books',$books); + } else { + $xoopsTpl->assign('show_books','no'); + } // Textarea for About me - $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites',$preset=stripslashes($r['aboutme'])); - $xoopsTpl->append('aboutme',$aboutme); + if (smallworldGetValfromArray ('aboutme', 'smallworldusethesefields') != 0) { + $aboutme = $item->textarea('aboutme','aboutme',_SMALLWORLD_ABOUTME,2,20,'favourites',$preset=stripslashes($r['aboutme'])); + $xoopsTpl->append('aboutme',$aboutme); + } else { + $xoopsTpl->assign('show_aboutme','no'); + } // ------------ SCHOOL ------------ // //School name - $nr5 = unserialize($r['school_type']); - $nr6 = unserialize($r['school']); - $nr7 = unserialize($r['schoolstart']); - $nr8 = unserialize($r['schoolstop']); - $school = ""; - foreach ($nr5 as $k => $v) { - $school .= $item->school_add ('smallworld_add3', 'school', 'school_type', - '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=stripslashes($nr6[$k]),$preset=$v, $selectedstart=date("Y",$nr7[$k]),$selectedstop=date("Y",$nr8[$k])); - $school .= "<span class='smallworld_remove2' id='schoolremove'>"; - $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('school',$school); + if (smallworldGetValfromArray ('education', 'smallworldusethesefields') != 0) { + $nr5 = unserialize($r['school_type']); + $nr6 = unserialize($r['school']); + $nr7 = unserialize($r['schoolstart']); + $nr8 = unserialize($r['schoolstop']); + $school = ""; + foreach ($nr5 as $k => $v) { + $school .= $item->school_add ('smallworld_add3', 'school', 'school_type', + '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected=stripslashes($nr6[$k]),$preset=$v, $selectedstart=date("Y",$nr7[$k]),$selectedstop=date("Y",$nr8[$k])); + $school .= "<span class='smallworld_remove2' id='schoolremove'>"; + $school .= "<a href='javascript:removelnk (\"#schoolremovelnk\",\"div#school\",\"school\");' id='schoolremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + } + $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('school',$school); + } else { + $xoopsTpl->assign('show_school','no'); + } //Jobs - $nr9 = unserialize($r['employer']); - $nr10 = unserialize($r['position']); - $nr11 = unserialize($r['jobstart']); - $nr12 = unserialize($r['jobstop']); - $nr13 = unserialize(stripslashes($r['description'])); - $job=""; - foreach ($nr9 as $k=>$v) { - $job .= $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $employer=stripslashes($v), $position=stripslashes($nr10[$k]), - $selectedstart=date("Y",$nr11[$k]), $selectedstop=date("Y",$nr12[$k]),$description=$nr13[$k]); - $job .= "<span class='smallworld_remove3' id='jobremove'>"; - $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; - } - $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; - $xoopsTpl->append('job',$job); + if (smallworldGetValfromArray ('employment', 'smallworldusethesefields') != 0) { + $nr9 = unserialize($r['employer']); + $nr10 = unserialize($r['position']); + $nr11 = unserialize($r['jobstart']); + $nr12 = unserialize($r['jobstop']); + $nr13 = unserialize(stripslashes($r['description'])); + $job=""; + foreach ($nr9 as $k=>$v) { + $job .= $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $employer=stripslashes($v), $position=stripslashes($nr10[$k]), + $selectedstart=date("Y",$nr11[$k]), $selectedstop=date("Y",$nr12[$k]),$description=$nr13[$k]); + $job .= "<span class='smallworld_remove3' id='jobremove'>"; + $job .= "<a href='javascript:removelnk (\"#jobremovelnk\",\"div#job\",\"job\");' id='jobremovelnk'>"._SMALLWORLD_REMOVE."</a><br></span>"; + } + $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>"._SMALLWORLD_ADDMORE."</a><br><br>"; + $xoopsTpl->append('job',$job); + } else { + $xoopsTpl->assign('show_jobs','no'); + } // Create hidden forms for birthcity $birthplace_lat = $item->hidden('birthplace_lat','birthplace_lat',$preset=stripslashes($r['birthplace_lat'])); Modified: XoopsModules/smallworld/trunk/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/include/functions.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/include/functions.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -634,4 +634,17 @@ return 0; } } + +//Function to get value from xoopsConfig array +function smallworldGetValfromArray ($key, $array) { + $ar = smallworld_GetModuleOption($array, $repmodule='smallworld'); + $ret = 0; + if (in_array($key, $ar,true)) { + $ret = 1; + return $ret; + } else { + return 0; + } + +} ?> Modified: XoopsModules/smallworld/trunk/index.php =================================================================== --- XoopsModules/smallworld/trunk/index.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/index.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -26,7 +26,6 @@ include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); global $xoopsUser, $xoTheme,$xoopsConfig; - if ($xoopsUser) { $id = $xoopsUser->getVar('uid'); $user = new XoopsUser($id); @@ -54,6 +53,7 @@ $menu_gallery = "<a href='".XOOPS_URL."/modules/smallworld/galleryshow.php?username=".$username."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/picture.png'>"._SMALLWORLD_GALLERY."</a>"; $menu_friends = "<a href='".XOOPS_URL."/modules/smallworld/friends.php?username=".$username."'><img id='menuimg' src='".XOOPS_URL."/modules/smallworld/images/group.png'>"._SMALLWORLD_FRIENDSPAGE."</a>"; + // Things to do with wall $Wall = new Wall_Updates(); $myavatar = $Wall->Gravatar($id); Modified: XoopsModules/smallworld/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -60,6 +60,7 @@ define ('_MI_SMALLWORLD_REALNAME','Real name'); define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); +define ('_MI_SMALLWORLD_RELATIONSHIPSTATUS','relationship status'); define ('_MI_SMALLWORLD_PARTNER','Partner'); define ('_MI_SMALLWORLD_LOOKINGFOR','Looking for'); define ('_MI_SMALLWORLD_BIRTHDAY','Birthday'); Modified: XoopsModules/smallworld/trunk/preloads/core.php =================================================================== --- XoopsModules/smallworld/trunk/preloads/core.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/preloads/core.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -67,7 +67,7 @@ $fieldstoshow = array_flip(smallworld_GetModuleOption('smallworldusethesefields', $repmodule='smallworld')); $useverification = array_flip(smallworld_GetModuleOption('smallworldmandatoryfields', $repmodule='smallworld')); $smallworldUV = implode(',', $useverification); - + // Get users messages count based on users followerArray $getUserMsgNum = smallworld_getCountFriendMessagesEtc (); Modified: XoopsModules/smallworld/trunk/register.php =================================================================== --- XoopsModules/smallworld/trunk/register.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/register.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -50,12 +50,16 @@ // ------------ PERSONAL INFO ------------ // // Real name + if (smallworldGetValfromArray ('realname', 'smallworldusethesefields') != 0) { $realname = $item->input('realname', 'realname', 'realname',$size=30, $preset=$xoopsUser->getVar('name')); $xoopsTpl->append('realname',$realname); - + } + + if (smallworldGetValfromArray ('gender', 'smallworldusethesefields') != 0) { // Dropdown for gender $gender = $item->dropdown('gender',$arr0,0); $xoopsTpl->append('gender', $gender); + } // Selectbox for "interested in gender(s)" $intInGender = $item->radio('intingender',$arr01,0); Modified: XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/templates/smallworld_userprofile_edittemplate.html 2012-01-16 14:29:22 UTC (rev 8743) @@ -8,6 +8,7 @@ <label for="smallworld_realname"></label> <table class="smallworld_table" border="0" cellspacing="0" cellpadding="0"> + <{if $show_realname != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_REALNAME}></p></td> <td><label for="Realname"></label> @@ -16,7 +17,9 @@ <{/section}> </td> </tr> - + <{/if}> + + <{if $show_gender != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_GENDER}></p></td> <td><label for="select"></label> @@ -25,7 +28,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_interestedin != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTEDIN}></p></td> <td><label for="select"></label> @@ -36,7 +41,9 @@ </span> </td> </tr> + <{/if}> + <{if $show_relationshipstatus != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELATIONSHIPSTATUS}></p></td> <td><label for="select"></label> @@ -45,6 +52,7 @@ <{/section}> </td> </tr> + <div class="partner"> <tr> <td><p class="partner"><{$smarty.const._SMALLWORLD_PARTNER}></p></td> @@ -55,7 +63,9 @@ </td> </tr> </div> + <{/if}> + <{if $show_lookingfor != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LOOKINGFOR}></p></td> <td><label for="select"></label> @@ -67,7 +77,9 @@ <br/> </td> </tr> - + <{/if}> + + <{if $show_birthday != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHDAY}></p></td> <td> @@ -76,7 +88,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_birthplace != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_BIRTHPLACE}></p></td> <div class="ui-widget"> @@ -97,11 +111,11 @@ <{$birthplace_country_img[i]}> <{/section}> </td> - </div> - + </div> </tr> + <{/if}> - + <{if $show_political != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_POLITICALVIEW}></p></td> <td><label for="select"></label> @@ -110,7 +124,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_religion != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_RELIGIOUSVIEW}></p></td> <td><lable for="select"></lable> @@ -119,12 +135,14 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP2}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_emails != 'no'}> <tr> <p class="emails"> <td valign="top"><p><{$smarty.const._SMALLWORLD_EMAILS}></p></td> @@ -135,6 +153,9 @@ </td> </p> </tr> + <{/if}> + + <{if $show_screennames != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_SCREENNAMES}></p></td> <td><label for="Screenname"></label> @@ -144,6 +165,9 @@ </td> </tr> + <{/if}> + + <{if $show_mobile != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_MOBILEPHONE}></p></td> <td> @@ -152,8 +176,9 @@ <{/section}> </td> </tr> + <{/if}> - + <{if $show_landphone != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_LANDPHONE}></p></td> <td> @@ -162,7 +187,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_adress != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ADRESS}></p></td> <td> @@ -171,6 +198,9 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_city != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_CITY}></p></td> <div class="ui-widget"> @@ -190,7 +220,6 @@ </td><td style="right:2px" id="cityflag"></td> </div> </tr> - <tr> <td><p><{$smarty.const._SMALLWORLD_COUNTRY}></p></td> <td> @@ -199,17 +228,22 @@ <{/section}> </td> </tr> + <{/if}> + + <{if $show_website != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_WEBSITE}></p></td> <td><textarea name="website" id="website">http://</textarea> </td> </tr> + <{/if}> </table><br/> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP3}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_interests != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_INTERESTS}></p></td> <td> @@ -217,9 +251,11 @@ <{$interests[i]}> <{/section}> </td> - </tr> + </tr> + <{/if}> + + <{if $show_music != 'no'}> <tr> - <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMUSIC}></p></td> <td> <{section name=i loop=$music}> @@ -227,7 +263,9 @@ <{/section}> </td> </tr> + <{/if}> + <{if $show_tv != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITETVSHOW}></p></td> <td> @@ -236,7 +274,9 @@ <{/section}> </textarea></td> </tr> + <{/if}> + <{if $show_movies != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEMOVIES}></p></td> <td> @@ -244,8 +284,10 @@ <{$movie[i]}> <{/section}> </td> - </tr> + </tr> + <{/if}> + <{if $show_books != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_FAVOURITEBOOKS}></p></td> <td> @@ -254,7 +296,9 @@ <{/section}> </td> </tr> - + <{/if}> + + <{if $show_aboutme != 'no'}> <tr> <td><p><{$smarty.const._SMALLWORLD_ABOUTME}></p></td> <td> @@ -263,6 +307,7 @@ <{/section}> </td> </tr> + <{/if}> <tr> <td ></td> </tr><br/> @@ -273,20 +318,23 @@ <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP4}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_school != 'no'}> <tr> - <label for="School"></label> - <td> - <{section name=i loop=$school}> - <{$school[i]}> - <{/section}> - </td> - </tr> + <label for="School"></label> + <td> + <{section name=i loop=$school}> + <{$school[i]}> + <{/section}> + </td> + </tr> + <{/if}> </table> </fieldset> <fieldset> <legend><{$smarty.const._SMALLWORLD_STEP5}></legend> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <{if $show_jobs != 'no'}> <tr> <label for="Job"></label> <td> @@ -295,6 +343,7 @@ <{/section}> </td> </tr> + <{/if}> </table> </fieldset> Modified: XoopsModules/smallworld/trunk/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 13:36:04 UTC (rev 8742) +++ XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 14:29:22 UTC (rev 8743) @@ -171,6 +171,7 @@ $modversion['config'][$i]['valuetype'] = 'array'; $modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_RELATIONSHIPSTATUS' => 'relationshipstatus', '_MI_SMALLWORLD_PARTNER' => 'partner', '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', @@ -195,6 +196,7 @@ '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); $modversion['config'][$i]['default'] = array( 'realname', 'interestedin', + 'relationshipstatus', 'partner', 'lookingfor', 'birthday', @@ -227,6 +229,7 @@ $modversion['config'][$i]['valuetype'] = 'array'; $modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_RELATIONSHIPSTATUS' => 'relationshipstatus', '_MI_SMALLWORLD_PARTNER' => 'partner', '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', @@ -251,6 +254,7 @@ '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); $modversion['config'][$i]['default'] = array( 'realname', 'interestedin', + 'relationshipstatus', 'partner', 'lookingfor', 'birthday', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-01-16 13:36:19
|
Revision: 8742 http://xoops.svn.sourceforge.net/xoops/?rev=8742&view=rev Author: beckmi Date: 2012-01-16 13:36:04 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Adding MRBS 1.4.8 Added Paths: ----------- XoopsModules/mrbs/ XoopsModules/mrbs/branches/ XoopsModules/mrbs/releases/ XoopsModules/mrbs/trunk/ XoopsModules/mrbs/trunk/mrbs/ XoopsModules/mrbs/trunk/mrbs/.htaccess XoopsModules/mrbs/trunk/mrbs/Blowfish/ XoopsModules/mrbs/trunk/mrbs/Blowfish/DefaultKey.php XoopsModules/mrbs/trunk/mrbs/Blowfish/index.html XoopsModules/mrbs/trunk/mrbs/Blowfish.php XoopsModules/mrbs/trunk/mrbs/Mail/ XoopsModules/mrbs/trunk/mrbs/Mail/RFC822.php XoopsModules/mrbs/trunk/mrbs/Mail/index.html XoopsModules/mrbs/trunk/mrbs/Mail/mail.php XoopsModules/mrbs/trunk/mrbs/Mail/null.php XoopsModules/mrbs/trunk/mrbs/Mail/sendmail.php XoopsModules/mrbs/trunk/mrbs/Mail/smtp.php XoopsModules/mrbs/trunk/mrbs/Mail.php XoopsModules/mrbs/trunk/mrbs/Net/ XoopsModules/mrbs/trunk/mrbs/Net/SMTP.php XoopsModules/mrbs/trunk/mrbs/Net/Socket.php XoopsModules/mrbs/trunk/mrbs/Net/index.html XoopsModules/mrbs/trunk/mrbs/PEAR.php XoopsModules/mrbs/trunk/mrbs/Themes/ XoopsModules/mrbs/trunk/mrbs/Themes/classic126.inc XoopsModules/mrbs/trunk/mrbs/Themes/default.inc XoopsModules/mrbs/trunk/mrbs/Themes/index.html XoopsModules/mrbs/trunk/mrbs/add.php XoopsModules/mrbs/trunk/mrbs/admin/ XoopsModules/mrbs/trunk/mrbs/admin/about.php XoopsModules/mrbs/trunk/mrbs/admin/about_en.html XoopsModules/mrbs/trunk/mrbs/admin/about_fr.html XoopsModules/mrbs/trunk/mrbs/admin/about_nl.html XoopsModules/mrbs/trunk/mrbs/admin/admin_footer.php XoopsModules/mrbs/trunk/mrbs/admin/admin_header.php XoopsModules/mrbs/trunk/mrbs/admin/groupperm.php XoopsModules/mrbs/trunk/mrbs/admin/how_to.php XoopsModules/mrbs/trunk/mrbs/admin/how_to_en.html XoopsModules/mrbs/trunk/mrbs/admin/how_to_fr.html XoopsModules/mrbs/trunk/mrbs/admin/how_to_nl.html XoopsModules/mrbs/trunk/mrbs/admin/index.html XoopsModules/mrbs/trunk/mrbs/admin/index.php XoopsModules/mrbs/trunk/mrbs/admin/menu.php XoopsModules/mrbs/trunk/mrbs/admin/updates.php XoopsModules/mrbs/trunk/mrbs/admin.php XoopsModules/mrbs/trunk/mrbs/auth_config.inc XoopsModules/mrbs/trunk/mrbs/auth_db.inc XoopsModules/mrbs/trunk/mrbs/auth_db_ext.inc XoopsModules/mrbs/trunk/mrbs/auth_ext.inc XoopsModules/mrbs/trunk/mrbs/auth_imap.inc XoopsModules/mrbs/trunk/mrbs/auth_imap_php.inc XoopsModules/mrbs/trunk/mrbs/auth_ldap.inc XoopsModules/mrbs/trunk/mrbs/auth_nis.inc XoopsModules/mrbs/trunk/mrbs/auth_none.inc XoopsModules/mrbs/trunk/mrbs/auth_nw.inc XoopsModules/mrbs/trunk/mrbs/auth_pop3.inc XoopsModules/mrbs/trunk/mrbs/auth_xoops.inc XoopsModules/mrbs/trunk/mrbs/config.inc.php XoopsModules/mrbs/trunk/mrbs/day.php XoopsModules/mrbs/trunk/mrbs/dbsys.inc XoopsModules/mrbs/trunk/mrbs/del.php XoopsModules/mrbs/trunk/mrbs/del_entry.php XoopsModules/mrbs/trunk/mrbs/docs/ XoopsModules/mrbs/trunk/mrbs/docs/changelog.txt XoopsModules/mrbs/trunk/mrbs/docs/credits.txt XoopsModules/mrbs/trunk/mrbs/docs/index.html XoopsModules/mrbs/trunk/mrbs/docs/install.txt XoopsModules/mrbs/trunk/mrbs/docs/lang_diff.txt XoopsModules/mrbs/trunk/mrbs/docs/licence.txt XoopsModules/mrbs/trunk/mrbs/docs/readme.txt XoopsModules/mrbs/trunk/mrbs/edit_area_room.php XoopsModules/mrbs/trunk/mrbs/edit_entry.php XoopsModules/mrbs/trunk/mrbs/edit_entry_handler.php XoopsModules/mrbs/trunk/mrbs/edit_users.php XoopsModules/mrbs/trunk/mrbs/escapeshellarg.inc XoopsModules/mrbs/trunk/mrbs/functions.inc XoopsModules/mrbs/trunk/mrbs/functions_mail.inc XoopsModules/mrbs/trunk/mrbs/grab_globals.inc.php XoopsModules/mrbs/trunk/mrbs/help.php XoopsModules/mrbs/trunk/mrbs/images/ XoopsModules/mrbs/trunk/mrbs/images/Thumbs.db XoopsModules/mrbs/trunk/mrbs/images/index.html XoopsModules/mrbs/trunk/mrbs/images/left_both.gif XoopsModules/mrbs/trunk/mrbs/images/modadminbg.gif XoopsModules/mrbs/trunk/mrbs/images/mrbs.png XoopsModules/mrbs/trunk/mrbs/images/right_both.gif XoopsModules/mrbs/trunk/mrbs/index.php XoopsModules/mrbs/trunk/mrbs/lang.ca XoopsModules/mrbs/trunk/mrbs/lang.cs XoopsModules/mrbs/trunk/mrbs/lang.da XoopsModules/mrbs/trunk/mrbs/lang.de XoopsModules/mrbs/trunk/mrbs/lang.el XoopsModules/mrbs/trunk/mrbs/lang.en XoopsModules/mrbs/trunk/mrbs/lang.es XoopsModules/mrbs/trunk/mrbs/lang.eu XoopsModules/mrbs/trunk/mrbs/lang.fi XoopsModules/mrbs/trunk/mrbs/lang.fr XoopsModules/mrbs/trunk/mrbs/lang.it XoopsModules/mrbs/trunk/mrbs/lang.ja XoopsModules/mrbs/trunk/mrbs/lang.ko XoopsModules/mrbs/trunk/mrbs/lang.nl XoopsModules/mrbs/trunk/mrbs/lang.no XoopsModules/mrbs/trunk/mrbs/lang.pt XoopsModules/mrbs/trunk/mrbs/lang.sl XoopsModules/mrbs/trunk/mrbs/lang.sv XoopsModules/mrbs/trunk/mrbs/lang.tr XoopsModules/mrbs/trunk/mrbs/lang.zh-cn XoopsModules/mrbs/trunk/mrbs/lang.zh-tw XoopsModules/mrbs/trunk/mrbs/language/ XoopsModules/mrbs/trunk/mrbs/language/english/ XoopsModules/mrbs/trunk/mrbs/language/english/admin.php XoopsModules/mrbs/trunk/mrbs/language/english/help/ XoopsModules/mrbs/trunk/mrbs/language/english/help/help.html XoopsModules/mrbs/trunk/mrbs/language/english/help/index.html XoopsModules/mrbs/trunk/mrbs/language/english/index.html XoopsModules/mrbs/trunk/mrbs/language/english/main.php XoopsModules/mrbs/trunk/mrbs/language/english/modinfo.php XoopsModules/mrbs/trunk/mrbs/language/french/ XoopsModules/mrbs/trunk/mrbs/language/french/admin.php XoopsModules/mrbs/trunk/mrbs/language/french/help/ XoopsModules/mrbs/trunk/mrbs/language/french/help/help.html XoopsModules/mrbs/trunk/mrbs/language/french/help/index.html XoopsModules/mrbs/trunk/mrbs/language/french/index.html XoopsModules/mrbs/trunk/mrbs/language/french/main.php XoopsModules/mrbs/trunk/mrbs/language/french/modinfo.php XoopsModules/mrbs/trunk/mrbs/language/index.html XoopsModules/mrbs/trunk/mrbs/language/nederlands/ XoopsModules/mrbs/trunk/mrbs/language/nederlands/admin.php XoopsModules/mrbs/trunk/mrbs/language/nederlands/help/ XoopsModules/mrbs/trunk/mrbs/language/nederlands/help/help.html XoopsModules/mrbs/trunk/mrbs/language/nederlands/help/index.html XoopsModules/mrbs/trunk/mrbs/language/nederlands/index.html XoopsModules/mrbs/trunk/mrbs/language/nederlands/main.php XoopsModules/mrbs/trunk/mrbs/language/nederlands/modinfo.php XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/ XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/admin.php XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/help/ XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/help/help.html XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/help/index.html XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/index.html XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/main.php XoopsModules/mrbs/trunk/mrbs/language/turkish_utf8/modinfo.php XoopsModules/mrbs/trunk/mrbs/language.inc XoopsModules/mrbs/trunk/mrbs/language.php XoopsModules/mrbs/trunk/mrbs/mincals.inc XoopsModules/mrbs/trunk/mrbs/month.php XoopsModules/mrbs/trunk/mrbs/mrbs-ie.css XoopsModules/mrbs/trunk/mrbs/mrbs-ie8.css XoopsModules/mrbs/trunk/mrbs/mrbs-ielte6.css XoopsModules/mrbs/trunk/mrbs/mrbs-ielte7.css XoopsModules/mrbs/trunk/mrbs/mrbs-print.css XoopsModules/mrbs/trunk/mrbs/mrbs.css.php XoopsModules/mrbs/trunk/mrbs/mrbs_auth.inc XoopsModules/mrbs/trunk/mrbs/mrbs_sql.inc XoopsModules/mrbs/trunk/mrbs/mysql.inc XoopsModules/mrbs/trunk/mrbs/mysqli.inc XoopsModules/mrbs/trunk/mrbs/new.gif XoopsModules/mrbs/trunk/mrbs/pgsql.inc XoopsModules/mrbs/trunk/mrbs/report.php XoopsModules/mrbs/trunk/mrbs/robots.txt XoopsModules/mrbs/trunk/mrbs/search.php XoopsModules/mrbs/trunk/mrbs/session_cookie.inc XoopsModules/mrbs/trunk/mrbs/session_host.inc XoopsModules/mrbs/trunk/mrbs/session_http.inc XoopsModules/mrbs/trunk/mrbs/session_ip.inc XoopsModules/mrbs/trunk/mrbs/session_nt.inc XoopsModules/mrbs/trunk/mrbs/session_omni.inc XoopsModules/mrbs/trunk/mrbs/session_php.inc XoopsModules/mrbs/trunk/mrbs/session_remote_user.inc XoopsModules/mrbs/trunk/mrbs/site_faq.html XoopsModules/mrbs/trunk/mrbs/site_faq_de.html XoopsModules/mrbs/trunk/mrbs/site_faq_en.html XoopsModules/mrbs/trunk/mrbs/site_faq_es.html XoopsModules/mrbs/trunk/mrbs/site_faq_fr.html XoopsModules/mrbs/trunk/mrbs/site_faq_it.html XoopsModules/mrbs/trunk/mrbs/site_faq_nl.html XoopsModules/mrbs/trunk/mrbs/sql/ XoopsModules/mrbs/trunk/mrbs/sql/index.html XoopsModules/mrbs/trunk/mrbs/sql/mrbs.sql XoopsModules/mrbs/trunk/mrbs/sql/mysql.php XoopsModules/mrbs/trunk/mrbs/style.inc XoopsModules/mrbs/trunk/mrbs/trailer.inc XoopsModules/mrbs/trunk/mrbs/version.inc XoopsModules/mrbs/trunk/mrbs/view_entry.php XoopsModules/mrbs/trunk/mrbs/week.php XoopsModules/mrbs/trunk/mrbs/xbLib.js XoopsModules/mrbs/trunk/mrbs/xoops_version.php XoopsModules/mrbs/trunk/mrbs/your_logo.gif Added: XoopsModules/mrbs/trunk/mrbs/.htaccess =================================================================== --- XoopsModules/mrbs/trunk/mrbs/.htaccess (rev 0) +++ XoopsModules/mrbs/trunk/mrbs/.htaccess 2012-01-16 13:36:04 UTC (rev 8742) @@ -0,0 +1,4 @@ +<Files ~ "\.inc$"> + Order allow,deny + Deny from all +</Files> Added: XoopsModules/mrbs/trunk/mrbs/Blowfish/DefaultKey.php =================================================================== --- XoopsModules/mrbs/trunk/mrbs/Blowfish/DefaultKey.php (rev 0) +++ XoopsModules/mrbs/trunk/mrbs/Blowfish/DefaultKey.php 2012-01-16 13:36:04 UTC (rev 8742) @@ -0,0 +1,327 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Crypt_Blowfish allows for encryption and decryption on the fly using + * the Blowfish algorithm. Crypt_Blowfish does not require the mcrypt + * PHP extension, it uses only PHP. + * Crypt_Blowfish support encryption/decryption with or without a secret key. + * + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to li...@ph... so we can mail you a copy immediately. + * + * @category Encryption + * @package Crypt_Blowfish + * @author Matthew Fonda <mf...@ph...> + * @copyright 2005 Matthew Fonda + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: DefaultKey.php,v 1.81 2005/05/30 18:40:37 mfonda Exp $ + * @link http://pear.php.net/package/Crypt_Blowfish + */ + + +/** + * Class containing default key + * + * @category Encryption + * @package Crypt_Blowfish + * @author Matthew Fonda <mf...@ph...> + * @copyright 2005 Matthew Fonda + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @link http://pear.php.net/package/Crypt_Blowfish + * @version @package_version@ + * @access public + */ +class Crypt_Blowfish_DefaultKey +{ + var $P = array(); + + var $S = array(); + + function Crypt_Blowfish_DefaultKey() + { + $this->P = array( + 0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344, + 0xA4093822, 0x299F31D0, 0x082EFA98, 0xEC4E6C89, + 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6C, + 0xC0AC29B7, 0xC97C50DD, 0x3F84D5B5, 0xB5470917, + 0x9216D5D9, 0x8979FB1B + ); + + $this->S = array( + array( + 0xD1310BA6, 0x98DFB5AC, 0x2FFD72DB, 0xD01ADFB7, + 0xB8E1AFED, 0x6A267E96, 0xBA7C9045, 0xF12C7F99, + 0x24A19947, 0xB3916CF7, 0x0801F2E2, 0x858EFC16, + 0x636920D8, 0x71574E69, 0xA458FEA3, 0xF4933D7E, + 0x0D95748F, 0x728EB658, 0x718BCD58, 0x82154AEE, + 0x7B54A41D, 0xC25A59B5, 0x9C30D539, 0x2AF26013, + 0xC5D1B023, 0x286085F0, 0xCA417918, 0xB8DB38EF, + 0x8E79DCB0, 0x603A180E, 0x6C9E0E8B, 0xB01E8A3E, + 0xD71577C1, 0xBD314B27, 0x78AF2FDA, 0x55605C60, + 0xE65525F3, 0xAA55AB94, 0x57489862, 0x63E81440, + 0x55CA396A, 0x2AAB10B6, 0xB4CC5C34, 0x1141E8CE, + 0xA15486AF, 0x7C72E993, 0xB3EE1411, 0x636FBC2A, + 0x2BA9C55D, 0x741831F6, 0xCE5C3E16, 0x9B87931E, + 0xAFD6BA33, 0x6C24CF5C, 0x7A325381, 0x28958677, + 0x3B8F4898, 0x6B4BB9AF, 0xC4BFE81B, 0x66282193, + 0x61D809CC, 0xFB21A991, 0x487CAC60, 0x5DEC8032, + 0xEF845D5D, 0xE98575B1, 0xDC262302, 0xEB651B88, + 0x23893E81, 0xD396ACC5, 0x0F6D6FF3, 0x83F44239, + 0x2E0B4482, 0xA4842004, 0x69C8F04A, 0x9E1F9B5E, + 0x21C66842, 0xF6E96C9A, 0x670C9C61, 0xABD388F0, + 0x6A51A0D2, 0xD8542F68, 0x960FA728, 0xAB5133A3, + 0x6EEF0B6C, 0x137A3BE4, 0xBA3BF050, 0x7EFB2A98, + 0xA1F1651D, 0x39AF0176, 0x66CA593E, 0x82430E88, + 0x8CEE8619, 0x456F9FB4, 0x7D84A5C3, 0x3B8B5EBE, + 0xE06F75D8, 0x85C12073, 0x401A449F, 0x56C16AA6, + 0x4ED3AA62, 0x363F7706, 0x1BFEDF72, 0x429B023D, + 0x37D0D724, 0xD00A1248, 0xDB0FEAD3, 0x49F1C09B, + 0x075372C9, 0x80991B7B, 0x25D479D8, 0xF6E8DEF7, + 0xE3FE501A, 0xB6794C3B, 0x976CE0BD, 0x04C006BA, + 0xC1A94FB6, 0x409F60C4, 0x5E5C9EC2, 0x196A2463, + 0x68FB6FAF, 0x3E6C53B5, 0x1339B2EB, 0x3B52EC6F, + 0x6DFC511F, 0x9B30952C, 0xCC814544, 0xAF5EBD09, + 0xBEE3D004, 0xDE334AFD, 0x660F2807, 0x192E4BB3, + 0xC0CBA857, 0x45C8740F, 0xD20B5F39, 0xB9D3FBDB, + 0x5579C0BD, 0x1A60320A, 0xD6A100C6, 0x402C7279, + 0x679F25FE, 0xFB1FA3CC, 0x8EA5E9F8, 0xDB3222F8, + 0x3C7516DF, 0xFD616B15, 0x2F501EC8, 0xAD0552AB, + 0x323DB5FA, 0xFD238760, 0x53317B48, 0x3E00DF82, + 0x9E5C57BB, 0xCA6F8CA0, 0x1A87562E, 0xDF1769DB, + 0xD542A8F6, 0x287EFFC3, 0xAC6732C6, 0x8C4F5573, + 0x695B27B0, 0xBBCA58C8, 0xE1FFA35D, 0xB8F011A0, + 0x10FA3D98, 0xFD2183B8, 0x4AFCB56C, 0x2DD1D35B, + 0x9A53E479, 0xB6F84565, 0xD28E49BC, 0x4BFB9790, + 0xE1DDF2DA, 0xA4CB7E33, 0x62FB1341, 0xCEE4C6E8, + 0xEF20CADA, 0x36774C01, 0xD07E9EFE, 0x2BF11FB4, + 0x95DBDA4D, 0xAE909198, 0xEAAD8E71, 0x6B93D5A0, + 0xD08ED1D0, 0xAFC725E0, 0x8E3C5B2F, 0x8E7594B7, + 0x8FF6E2FB, 0xF2122B64, 0x8888B812, 0x900DF01C, + 0x4FAD5EA0, 0x688FC31C, 0xD1CFF191, 0xB3A8C1AD, + 0x2F2F2218, 0xBE0E1777, 0xEA752DFE, 0x8B021FA1, + 0xE5A0CC0F, 0xB56F74E8, 0x18ACF3D6, 0xCE89E299, + 0xB4A84FE0, 0xFD13E0B7, 0x7CC43B81, 0xD2ADA8D9, + 0x165FA266, 0x80957705, 0x93CC7314, 0x211A1477, + 0xE6AD2065, 0x77B5FA86, 0xC75442F5, 0xFB9D35CF, + 0xEBCDAF0C, 0x7B3E89A0, 0xD6411BD3, 0xAE1E7E49, + 0x00250E2D, 0x2071B35E, 0x226800BB, 0x57B8E0AF, + 0x2464369B, 0xF009B91E, 0x5563911D, 0x59DFA6AA, + 0x78C14389, 0xD95A537F, 0x207D5BA2, 0x02E5B9C5, + 0x83260376, 0x6295CFA9, 0x11C81968, 0x4E734A41, + 0xB3472DCA, 0x7B14A94A, 0x1B510052, 0x9A532915, + 0xD60F573F, 0xBC9BC6E4, 0x2B60A476, 0x81E67400, + 0x08BA6FB5, 0x571BE91F, 0xF296EC6B, 0x2A0DD915, + 0xB6636521, 0xE7B9F9B6, 0xFF34052E, 0xC5855664, + 0x53B02D5D, 0xA99F8FA1, 0x08BA4799, 0x6E85076A + ), + array( + 0x4B7A70E9, 0xB5B32944, 0xDB75092E, 0xC4192623, + 0xAD6EA6B0, 0x49A7DF7D, 0x9CEE60B8, 0x8FEDB266, + 0xECAA8C71, 0x699A17FF, 0x5664526C, 0xC2B19EE1, + 0x193602A5, 0x75094C29, 0xA0591340, 0xE4183A3E, + 0x3F54989A, 0x5B429D65, 0x6B8FE4D6, 0x99F73FD6, + 0xA1D29C07, 0xEFE830F5, 0x4D2D38E6, 0xF0255DC1, + 0x4CDD2086, 0x8470EB26, 0x6382E9C6, 0x021ECC5E, + 0x09686B3F, 0x3EBAEFC9, 0x3C971814, 0x6B6A70A1, + 0x687F3584, 0x52A0E286, 0xB79C5305, 0xAA500737, + 0x3E07841C, 0x7FDEAE5C, 0x8E7D44EC, 0x5716F2B8, + 0xB03ADA37, 0xF0500C0D, 0xF01C1F04, 0x0200B3FF, + 0xAE0CF51A, 0x3CB574B2, 0x25837A58, 0xDC0921BD, + 0xD19113F9, 0x7CA92FF6, 0x94324773, 0x22F54701, + 0x3AE5E581, 0x37C2DADC, 0xC8B57634, 0x9AF3DDA7, + 0xA9446146, 0x0FD0030E, 0xECC8C73E, 0xA4751E41, + 0xE238CD99, 0x3BEA0E2F, 0x3280BBA1, 0x183EB331, + 0x4E548B38, 0x4F6DB908, 0x6F420D03, 0xF60A04BF, + 0x2CB81290, 0x24977C79, 0x5679B072, 0xBCAF89AF, + 0xDE9A771F, 0xD9930810, 0xB38BAE12, 0xDCCF3F2E, + 0x5512721F, 0x2E6B7124, 0x501ADDE6, 0x9F84CD87, + 0x7A584718, 0x7408DA17, 0xBC9F9ABC, 0xE94B7D8C, + 0xEC7AEC3A, 0xDB851DFA, 0x63094366, 0xC464C3D2, + 0xEF1C1847, 0x3215D908, 0xDD433B37, 0x24C2BA16, + 0x12A14D43, 0x2A65C451, 0x50940002, 0x133AE4DD, + 0x71DFF89E, 0x10314E55, 0x81AC77D6, 0x5F11199B, + 0x043556F1, 0xD7A3C76B, 0x3C11183B, 0x5924A509, + 0xF28FE6ED, 0x97F1FBFA, 0x9EBABF2C, 0x1E153C6E, + 0x86E34570, 0xEAE96FB1, 0x860E5E0A, 0x5A3E2AB3, + 0x771FE71C, 0x4E3D06FA, 0x2965DCB9, 0x99E71D0F, + 0x803E89D6, 0x5266C825, 0x2E4CC978, 0x9C10B36A, + 0xC6150EBA, 0x94E2EA78, 0xA5FC3C53, 0x1E0A2DF4, + 0xF2F74EA7, 0x361D2B3D, 0x1939260F, 0x19C27960, + 0x5223A708, 0xF71312B6, 0xEBADFE6E, 0xEAC31F66, + 0xE3BC4595, 0xA67BC883, 0xB17F37D1, 0x018CFF28, + 0xC332DDEF, 0xBE6C5AA5, 0x65582185, 0x68AB9802, + 0xEECEA50F, 0xDB2F953B, 0x2AEF7DAD, 0x5B6E2F84, + 0x1521B628, 0x29076170, 0xECDD4775, 0x619F1510, + 0x13CCA830, 0xEB61BD96, 0x0334FE1E, 0xAA0363CF, + 0xB5735C90, 0x4C70A239, 0xD59E9E0B, 0xCBAADE14, + 0xEECC86BC, 0x60622CA7, 0x9CAB5CAB, 0xB2F3846E, + 0x648B1EAF, 0x19BDF0CA, 0xA02369B9, 0x655ABB50, + 0x40685A32, 0x3C2AB4B3, 0x319EE9D5, 0xC021B8F7, + 0x9B540B19, 0x875FA099, 0x95F7997E, 0x623D7DA8, + 0xF837889A, 0x97E32D77, 0x11ED935F, 0x16681281, + 0x0E358829, 0xC7E61FD6, 0x96DEDFA1, 0x7858BA99, + 0x57F584A5, 0x1B227263, 0x9B83C3FF, 0x1AC24696, + 0xCDB30AEB, 0x532E3054, 0x8FD948E4, 0x6DBC3128, + 0x58EBF2EF, 0x34C6FFEA, 0xFE28ED61, 0xEE7C3C73, + 0x5D4A14D9, 0xE864B7E3, 0x42105D14, 0x203E13E0, + 0x45EEE2B6, 0xA3AAABEA, 0xDB6C4F15, 0xFACB4FD0, + 0xC742F442, 0xEF6ABBB5, 0x654F3B1D, 0x41CD2105, + 0xD81E799E, 0x86854DC7, 0xE44B476A, 0x3D816250, + 0xCF62A1F2, 0x5B8D2646, 0xFC8883A0, 0xC1C7B6A3, + 0x7F1524C3, 0x69CB7492, 0x47848A0B, 0x5692B285, + 0x095BBF00, 0xAD19489D, 0x1462B174, 0x23820E00, + 0x58428D2A, 0x0C55F5EA, 0x1DADF43E, 0x233F7061, + 0x3372F092, 0x8D937E41, 0xD65FECF1, 0x6C223BDB, + 0x7CDE3759, 0xCBEE7460, 0x4085F2A7, 0xCE77326E, + 0xA6078084, 0x19F8509E, 0xE8EFD855, 0x61D99735, + 0xA969A7AA, 0xC50C06C2, 0x5A04ABFC, 0x800BCADC, + 0x9E447A2E, 0xC3453484, 0xFDD56705, 0x0E1E9EC9, + 0xDB73DBD3, 0x105588CD, 0x675FDA79, 0xE3674340, + 0xC5C43465, 0x713E38D8, 0x3D28F89E, 0xF16DFF20, + 0x153E21E7, 0x8FB03D4A, 0xE6E39F2B, 0xDB83ADF7 + ), + array( + 0xE93D5A68, 0x948140F7, 0xF64C261C, 0x94692934, + 0x411520F7, 0x7602D4F7, 0xBCF46B2E, 0xD4A20068, + 0xD4082471, 0x3320F46A, 0x43B7D4B7, 0x500061AF, + 0x1E39F62E, 0x97244546, 0x14214F74, 0xBF8B8840, + 0x4D95FC1D, 0x96B591AF, 0x70F4DDD3, 0x66A02F45, + 0xBFBC09EC, 0x03BD9785, 0x7FAC6DD0, 0x31CB8504, + 0x96EB27B3, 0x55FD3941, 0xDA2547E6, 0xABCA0A9A, + 0x28507825, 0x530429F4, 0x0A2C86DA, 0xE9B66DFB, + 0x68DC1462, 0xD7486900, 0x680EC0A4, 0x27A18DEE, + 0x4F3FFEA2, 0xE887AD8C, 0xB58CE006, 0x7AF4D6B6, + 0xAACE1E7C, 0xD3375FEC, 0xCE78A399, 0x406B2A42, + 0x20FE9E35, 0xD9F385B9, 0xEE39D7AB, 0x3B124E8B, + 0x1DC9FAF7, 0x4B6D1856, 0x26A36631, 0xEAE397B2, + 0x3A6EFA74, 0xDD5B4332, 0x6841E7F7, 0xCA7820FB, + 0xFB0AF54E, 0xD8FEB397, 0x454056AC, 0xBA489527, + 0x55533A3A, 0x20838D87, 0xFE6BA9B7, 0xD096954B, + 0x55A867BC, 0xA1159A58, 0xCCA92963, 0x99E1DB33, + 0xA62A4A56, 0x3F3125F9, 0x5EF47E1C, 0x9029317C, + 0xFDF8E802, 0x04272F70, 0x80BB155C, 0x05282CE3, + 0x95C11548, 0xE4C66D22, 0x48C1133F, 0xC70F86DC, + 0x07F9C9EE, 0x41041F0F, 0x404779A4, 0x5D886E17, + 0x325F51EB, 0xD59BC0D1, 0xF2BCC18F, 0x41113564, + 0x257B7834, 0x602A9C60, 0xDFF8E8A3, 0x1F636C1B, + 0x0E12B4C2, 0x02E1329E, 0xAF664FD1, 0xCAD18115, + 0x6B2395E0, 0x333E92E1, 0x3B240B62, 0xEEBEB922, + 0x85B2A20E, 0xE6BA0D99, 0xDE720C8C, 0x2DA2F728, + 0xD0127845, 0x95B794FD, 0x647D0862, 0xE7CCF5F0, + 0x5449A36F, 0x877D48FA, 0xC39DFD27, 0xF33E8D1E, + 0x0A476341, 0x992EFF74, 0x3A6F6EAB, 0xF4F8FD37, + 0xA812DC60, 0xA1EBDDF8, 0x991BE14C, 0xDB6E6B0D, + 0xC67B5510, 0x6D672C37, 0x2765D43B, 0xDCD0E804, + 0xF1290DC7, 0xCC00FFA3, 0xB5390F92, 0x690FED0B, + 0x667B9FFB, 0xCEDB7D9C, 0xA091CF0B, 0xD9155EA3, + 0xBB132F88, 0x515BAD24, 0x7B9479BF, 0x763BD6EB, + 0x37392EB3, 0xCC115979, 0x8026E297, 0xF42E312D, + 0x6842ADA7, 0xC66A2B3B, 0x12754CCC, 0x782EF11C, + 0x6A124237, 0xB79251E7, 0x06A1BBE6, 0x4BFB6350, + 0x1A6B1018, 0x11CAEDFA, 0x3D25BDD8, 0xE2E1C3C9, + 0x44421659, 0x0A121386, 0xD90CEC6E, 0xD5ABEA2A, + 0x64AF674E, 0xDA86A85F, 0xBEBFE988, 0x64E4C3FE, + 0x9DBC8057, 0xF0F7C086, 0x60787BF8, 0x6003604D, + 0xD1FD8346, 0xF6381FB0, 0x7745AE04, 0xD736FCCC, + 0x83426B33, 0xF01EAB71, 0xB0804187, 0x3C005E5F, + 0x77A057BE, 0xBDE8AE24, 0x55464299, 0xBF582E61, + 0x4E58F48F, 0xF2DDFDA2, 0xF474EF38, 0x8789BDC2, + 0x5366F9C3, 0xC8B38E74, 0xB475F255, 0x46FCD9B9, + 0x7AEB2661, 0x8B1DDF84, 0x846A0E79, 0x915F95E2, + 0x466E598E, 0x20B45770, 0x8CD55591, 0xC902DE4C, + 0xB90BACE1, 0xBB8205D0, 0x11A86248, 0x7574A99E, + 0xB77F19B6, 0xE0A9DC09, 0x662D09A1, 0xC4324633, + 0xE85A1F02, 0x09F0BE8C, 0x4A99A025, 0x1D6EFE10, + 0x1AB93D1D, 0x0BA5A4DF, 0xA186F20F, 0x2868F169, + 0xDCB7DA83, 0x573906FE, 0xA1E2CE9B, 0x4FCD7F52, + 0x50115E01, 0xA70683FA, 0xA002B5C4, 0x0DE6D027, + 0x9AF88C27, 0x773F8641, 0xC3604C06, 0x61A806B5, + 0xF0177A28, 0xC0F586E0, 0x006058AA, 0x30DC7D62, + 0x11E69ED7, 0x2338EA63, 0x53C2DD94, 0xC2C21634, + 0xBBCBEE56, 0x90BCB6DE, 0xEBFC7DA1, 0xCE591D76, + 0x6F05E409, 0x4B7C0188, 0x39720A3D, 0x7C927C24, + 0x86E3725F, 0x724D9DB9, 0x1AC15BB4, 0xD39EB8FC, + 0xED545578, 0x08FCA5B5, 0xD83D7CD3, 0x4DAD0FC4, + 0x1E50EF5E, 0xB161E6F8, 0xA28514D9, 0x6C51133C, + 0x6FD5C7E7, 0x56E14EC4, 0x362ABFCE, 0xDDC6C837, + 0xD79A3234, 0x92638212, 0x670EFA8E, 0x406000E0 + ), + array( + 0x3A39CE37, 0xD3FAF5CF, 0xABC27737, 0x5AC52D1B, + 0x5CB0679E, 0x4FA33742, 0xD3822740, 0x99BC9BBE, + 0xD5118E9D, 0xBF0F7315, 0xD62D1C7E, 0xC700C47B, + 0xB78C1B6B, 0x21A19045, 0xB26EB1BE, 0x6A366EB4, + 0x5748AB2F, 0xBC946E79, 0xC6A376D2, 0x6549C2C8, + 0x530FF8EE, 0x468DDE7D, 0xD5730A1D, 0x4CD04DC6, + 0x2939BBDB, 0xA9BA4650, 0xAC9526E8, 0xBE5EE304, + 0xA1FAD5F0, 0x6A2D519A, 0x63EF8CE2, 0x9A86EE22, + 0xC089C2B8, 0x43242EF6, 0xA51E03AA, 0x9CF2D0A4, + 0x83C061BA, 0x9BE96A4D, 0x8FE51550, 0xBA645BD6, + 0x2826A2F9, 0xA73A3AE1, 0x4BA99586, 0xEF5562E9, + 0xC72FEFD3, 0xF752F7DA, 0x3F046F69, 0x77FA0A59, + 0x80E4A915, 0x87B08601, 0x9B09E6AD, 0x3B3EE593, + 0xE990FD5A, 0x9E34D797, 0x2CF0B7D9, 0x022B8B51, + 0x96D5AC3A, 0x017DA67D, 0xD1CF3ED6, 0x7C7D2D28, + 0x1F9F25CF, 0xADF2B89B, 0x5AD6B472, 0x5A88F54C, + 0xE029AC71, 0xE019A5E6, 0x47B0ACFD, 0xED93FA9B, + 0xE8D3C48D, 0x283B57CC, 0xF8D56629, 0x79132E28, + 0x785F0191, 0xED756055, 0xF7960E44, 0xE3D35E8C, + 0x15056DD4, 0x88F46DBA, 0x03A16125, 0x0564F0BD, + 0xC3EB9E15, 0x3C9057A2, 0x97271AEC, 0xA93A072A, + 0x1B3F6D9B, 0x1E6321F5, 0xF59C66FB, 0x26DCF319, + 0x7533D928, 0xB155FDF5, 0x03563482, 0x8ABA3CBB, + 0x28517711, 0xC20AD9F8, 0xABCC5167, 0xCCAD925F, + 0x4DE81751, 0x3830DC8E, 0x379D5862, 0x9320F991, + 0xEA7A90C2, 0xFB3E7BCE, 0x5121CE64, 0x774FBE32, + 0xA8B6E37E, 0xC3293D46, 0x48DE5369, 0x6413E680, + 0xA2AE0810, 0xDD6DB224, 0x69852DFD, 0x09072166, + 0xB39A460A, 0x6445C0DD, 0x586CDECF, 0x1C20C8AE, + 0x5BBEF7DD, 0x1B588D40, 0xCCD2017F, 0x6BB4E3BB, + 0xDDA26A7E, 0x3A59FF45, 0x3E350A44, 0xBCB4CDD5, + 0x72EACEA8, 0xFA6484BB, 0x8D6612AE, 0xBF3C6F47, + 0xD29BE463, 0x542F5D9E, 0xAEC2771B, 0xF64E6370, + 0x740E0D8D, 0xE75B1357, 0xF8721671, 0xAF537D5D, + 0x4040CB08, 0x4EB4E2CC, 0x34D2466A, 0x0115AF84, + 0xE1B00428, 0x95983A1D, 0x06B89FB4, 0xCE6EA048, + 0x6F3F3B82, 0x3520AB82, 0x011A1D4B, 0x277227F8, + 0x611560B1, 0xE7933FDC, 0xBB3A792B, 0x344525BD, + 0xA08839E1, 0x51CE794B, 0x2F32C9B7, 0xA01FBAC9, + 0xE01CC87E, 0xBCC7D1F6, 0xCF0111C3, 0xA1E8AAC7, + 0x1A908749, 0xD44FBD9A, 0xD0DADECB, 0xD50ADA38, + 0x0339C32A, 0xC6913667, 0x8DF9317C, 0xE0B12B4F, + 0xF79E59B7, 0x43F5BB3A, 0xF2D519FF, 0x27D9459C, + 0xBF97222C, 0x15E6FC2A, 0x0F91FC71, 0x9B941525, + 0xFAE59361, 0xCEB69CEB, 0xC2A86459, 0x12BAA8D1, + 0xB6C1075E, 0xE3056A0C, 0x10D25065, 0xCB03A442, + 0xE0EC6E0E, 0x1698DB3B, 0x4C98A0BE, 0x3278E964, + 0x9F1F9532, 0xE0D392DF, 0xD3A0342B, 0x8971F21E, + 0x1B0A7441, 0x4BA3348C, 0xC5BE7120, 0xC37632D8, + 0xDF359F8D, 0x9B992F2E, 0xE60B6F47, 0x0FE3F11D, + 0xE54CDA54, 0x1EDAD891, 0xCE6279CF, 0xCD3E7E6F, + 0x1618B166, 0xFD2C1D05, 0x848FD2C5, 0xF6FB2299, + 0xF523F357, 0xA6327623, 0x93A83531, 0x56CCCD02, + 0xACF08162, 0x5A75EBB5, 0x6E163697, 0x88D273CC, + 0xDE966292, 0x81B949D0, 0x4C50901B, 0x71C65614, + 0xE6C6C7BD, 0x327A140A, 0x45E1D006, 0xC3F27B9A, + 0xC9AA53FD, 0x62A80F00, 0xBB25BFE2, 0x35BDD2F6, + 0x71126905, 0xB2040222, 0xB6CBCF7C, 0xCD769C2B, + 0x53113EC0, 0x1640E3D3, 0x38ABBD60, 0x2547ADF0, + 0xBA38209C, 0xF746CE76, 0x77AFA1C5, 0x20756060, + 0x85CBFE4E, 0x8AE88DD8, 0x7AAAF9B0, 0x4CF9AA7E, + 0x1948C25C, 0x02FB8A8C, 0x01C36AE4, 0xD6EBE1F9, + 0x90D4F869, 0xA65CDEA0, 0x3F09252D, 0xC208E69F, + 0xB74E6132, 0xCE77E25B, 0x578FDFE3, 0x3AC372E6 + ) + ); + } + +} + +?> Added: XoopsModules/mrbs/trunk/mrbs/Blowfish/index.html =================================================================== --- XoopsModules/mrbs/trunk/mrbs/Blowfish/index.html (rev 0) +++ XoopsModules/mrbs/trunk/mrbs/Blowfish/index.html 2012-01-16 13:36:04 UTC (rev 8742) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/mrbs/trunk/mrbs/Blowfish.php =================================================================== --- XoopsModules/mrbs/trunk/mrbs/Blowfish.php (rev 0) +++ XoopsModules/mrbs/trunk/mrbs/Blowfish.php 2012-01-16 13:36:04 UTC (rev 8742) @@ -0,0 +1,317 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Crypt_Blowfish allows for encryption and decryption on the fly using + * the Blowfish algorithm. Crypt_Blowfish does not require the mcrypt + * PHP extension, it uses only PHP. + * Crypt_Blowfish support encryption/decryption with or without a secret key. + * + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to li...@ph... so we can mail you a copy immediately. + * + * @category Encryption + * @package Crypt_Blowfish + * @author Matthew Fonda <mf...@ph...> + * @copyright 2005 Matthew Fonda + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Blowfish.php,v 1.81 2005/05/30 18:40:36 mfonda Exp $ + * @link http://pear.php.net/package/Crypt_Blowfish + */ + + +require_once 'PEAR.php'; + + +/** + * + * Example usage: + * $bf = new Crypt_Blowfish('some secret key!'); + * $encrypted = $bf->encrypt('this is some example plain text'); + * $plaintext = $bf->decrypt($encrypted); + * echo "plain text: $plaintext"; + * + * + * @category Encryption + * @package Crypt_Blowfish + * @author Matthew Fonda <mf...@ph...> + * @copyright 2005 Matthew Fonda + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @link http://pear.php.net/package/Crypt_Blowfish + * @version @package_version@ + * @access public + */ +class Crypt_Blowfish +{ + /** + * P-Array contains 18 32-bit subkeys + * + * @var array + * @access private + */ + var $_P = array(); + + + /** + * Array of four S-Blocks each containing 256 32-bit entries + * + * @var array + * @access private + */ + var $_S = array(); + + /** + * Mcrypt td resource + * + * @var resource + * @access private + */ + var $_td = null; + + /** + * Initialization vector + * + * @var string + * @access private + */ + var $_iv = null; + + + /** + * Crypt_Blowfish Constructor + * Initializes the Crypt_Blowfish object, and gives a sets + * the secret key + * + * @param string $key + * @access public + */ + function Crypt_Blowfish($key) + { + if (extension_loaded('mcrypt')) { + $this->_td = mcrypt_module_open(MCRYPT_BLOWFISH, '', 'ecb', ''); + $this->_iv = mcrypt_create_iv(8, MCRYPT_RAND); + } + $this->setKey($key); + } + + /** + * Deprecated isReady method + * + * @return bool + * @access public + * @deprecated + */ + function isReady() + { + return true; + } + + /** + * Deprecated init method - init is now a private + * method and has been replaced with _init + * + * @return bool + * @access public + * @deprecated + * @see Crypt_Blowfish::_init() + */ + function init() + { + $this->_init(); + } + + /** + * Initializes the Crypt_Blowfish object + * + * @access private + */ + function _init() + { + $defaults = new Crypt_Blowfish_DefaultKey(); + $this->_P = $defaults->P; + $this->_S = $defaults->S; + } + + /** + * Enciphers a single 64 bit block + * + * @param int &$Xl + * @param int &$Xr + * @access private + */ + function _encipher(&$Xl, &$Xr) + { + for ($i = 0; $i < 16; $i++) { + $temp = $Xl ^ $this->_P[$i]; + $Xl = ((($this->_S[0][($temp>>24) & 255] + + $this->_S[1][($temp>>16) & 255]) ^ + $this->_S[2][($temp>>8) & 255]) + + $this->_S[3][$temp & 255]) ^ $Xr; + $Xr = $temp; + } + $Xr = $Xl ^ $this->_P[16]; + $Xl = $temp ^ $this->_P[17]; + } + + + /** + * Deciphers a single 64 bit block + * + * @param int &$Xl + * @param int &$Xr + * @access private + */ + function _decipher(&$Xl, &$Xr) + { + for ($i = 17; $i > 1; $i--) { + $temp = $Xl ^ $this->_P[$i]; + $Xl = ((($this->_S[0][($temp>>24) & 255] + + $this->_S[1][($temp>>16) & 255]) ^ + $this->_S[2][($temp>>8) & 255]) + + $this->_S[3][$temp & 255]) ^ $Xr; + $Xr = $temp; + } + $Xr = $Xl ^ $this->_P[1]; + $Xl = $temp ^ $this->_P[0]; + } + + + /** + * Encrypts a string + * + * @param string $plainText + * @return string Returns cipher text on success, PEAR_Error on failure + * @access public + */ + function encrypt($plainText) + { + if (!is_string($plainText)) { + PEAR::raiseError('Plain text must be a string', 0, PEAR_ERROR_DIE); + } + + if (extension_loaded('mcrypt')) { + return mcrypt_generic($this->_td, $plainText); + } + + $cipherText = ''; + $len = strlen($plainText); + $plainText .= str_repeat(chr(0),(8 - ($len%8))%8); + for ($i = 0; $i < $len; $i += 8) { + list(,$Xl,$Xr) = unpack("N2",substr($plainText,$i,8)); + $this->_encipher($Xl, $Xr); + $cipherText .= pack("N2", $Xl, $Xr); + } + return $cipherText; + } + + + /** + * Decrypts an encrypted string + * + * @param string $cipherText + * @return string Returns plain text on success, PEAR_Error on failure + * @access public + */ + function decrypt($cipherText) + { + if (!is_string($cipherText)) { + PEAR::raiseError('Chiper text must be a string', 1, PEAR_ERROR_DIE); + } + + if (extension_loaded('mcrypt')) { + return mdecrypt_generic($this->_td, $cipherText); + } + + $plainText = ''; + $len = strlen($cipherText); + $cipherText .= str_repeat(chr(0),(8 - ($len%8))%8); + for ($i = 0; $i < $len; $i += 8) { + list(,$Xl,$Xr) = unpack("N2",substr($cipherText,$i,8)); + $this->_decipher($Xl, $Xr); + $plainText .= pack("N2", $Xl, $Xr); + } + return $plainText; + } + + + /** + * Sets the secret key + * The key must be non-zero, and less than or equal to + * 56 characters in length. + * + * @param string $key + * @return bool Returns true on success, PEAR_Error on failure + * @access public + */ + function setKey($key) + { + if (!is_string($key)) { + PEAR::raiseError('Key must be a string', 2, PEAR_ERROR_DIE); + } + + $len = strlen($key); + + if ($len > 56 || $len == 0) { + PEAR::raiseError('Key must be less than 56 characters and non-zero. Supplied key length: ' . $len, 3, PEAR_ERROR_DIE); + } + + if (extension_loaded('mcrypt')) { + mcrypt_generic_init($this->_td, $key, $this->_iv); + return true; + } + + require_once 'Blowfish/DefaultKey.php'; + $this->_init(); + + $k = 0; + $data = 0; + $datal = 0; + $datar = 0; + + for ($i = 0; $i < 18; $i++) { + $data = 0; + for ($j = 4; $j > 0; $j--) { + $data = $data << 8 | ord($key{$k}); + $k = ($k+1) % $len; + } + $this->_P[$i] ^= $data; + } + + for ($i = 0; $i <= 16; $i += 2) { + $this->_encipher($datal, $datar); + $this->_P[$i] = $datal; + $this->_P[$i+1] = $datar; + } + for ($i = 0; $i < 256; $i += 2) { + $this->_encipher($datal, $datar); + $this->_S[0][$i] = $datal; + $this->_S[0][$i+1] = $datar; + } + for ($i = 0; $i < 256; $i += 2) { + $this->_encipher($datal, $datar); + $this->_S[1][$i] = $datal; + $this->_S[1][$i+1] = $datar; + } + for ($i = 0; $i < 256; $i += 2) { + $this->_encipher($datal, $datar); + $this->_S[2][$i] = $datal; + $this->_S[2][$i+1] = $datar; + } + for ($i = 0; $i < 256; $i += 2) { + $this->_encipher($datal, $datar); + $this->_S[3][$i] = $datal; + $this->_S[3][$i+1] = $datar; + } + + return true; + } + +} + +?> Added: XoopsModules/mrbs/trunk/mrbs/Mail/RFC822.php =================================================================== --- XoopsModules/mrbs/trunk/mrbs/Mail/RFC822.php (rev 0) +++ XoopsModules/mrbs/trunk/mrbs/Mail/RFC822.php 2012-01-16 13:36:04 UTC (rev 8742) @@ -0,0 +1,916 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Copyright (c) 2001-2002, Richard Heyes | +// | All rights reserved. | +// | | +// | Redistribution and use in source and binary forms, with or without | +// | modification, are permitted provided that the following conditions | +// | are met: | +// | | +// | o Redistributions of source code must retain the above copyright | +// | notice, this list of conditions and the following disclaimer. | +// | o Redistributions in binary form must reproduce the above copyright | +// | notice, this list of conditions and the following disclaimer in the | +// | documentation and/or other materials provided with the distribution.| +// | o The names of the authors may not be used to endorse or promote | +// | products derived from this software without specific prior written | +// | permission. | +// | | +// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | +// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | +// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | +// | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | +// | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | +// | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | +// | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | +// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | +// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | +// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | +// | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | +// | | +// +-----------------------------------------------------------------------+ +// | Authors: Richard Heyes <ri...@ph...> | +// | Chuck Hagenbuch <ch...@ho...> | +// +-----------------------------------------------------------------------+ + +/** +* RFC 822 Email address list validation Utility +* +* What is it? +* +* This class will take an address string, and parse it into it's consituent +* parts, be that either addresses, groups, or combinations. Nested groups +* are not supported. The structure it returns is pretty straight forward, +* and is similar to that provided by the imap_rfc822_parse_adrlist(). Use +* print_r() to view the structure. +* +* How do I use it? +* +* $address_string = 'My Group: "Richard" <richard@localhost> (A comment), te...@ex... (Ted Bloggs), Barney;'; +* $structure = Mail_RFC822::parseAddressList($address_string, 'example.com', true) +* print_r($structure); +* +* @author Richard Heyes <ri...@ph...> +* @author Chuck Hagenbuch <ch...@ho...> +* @version $Revision: 797 $ +* @license BSD +* @package Mail +*/ + +class Mail_RFC822 { + + /** + * The address being parsed by the RFC822 object. + * @var string $address + */ + var $address = ''; + + /** + * The default domain to use for unqualified addresses. + * @var string $default_domain + */ + var $default_domain = 'localhost'; + + /** + * Should we return a nested array showing groups, or flatten everything? + * @var boolean $nestGroups + */ + var $nestGroups = true; + + /** + * Whether or not to validate atoms for non-ascii characters. + * @var boolean $validate + */ + var $validate = true; + + /** + * The array of raw addresses built up as we parse. + * @var array $addresses + */ + var $addresses = array(); + + /** + * The final array of parsed address information that we build up. + * @var array $structure + */ + var $structure = array(); + + /** + * The current error message, if any. + * @var string $error + */ + var $error = null; + + /** + * An internal counter/pointer. + * @var integer $index + */ + var $index = null; + + /** + * The number of groups that have been found in the address list. + * @var integer $num_groups + * @access public + */ + var $num_groups = 0; + + /** + * A variable so that we can tell whether or not we're inside a + * Mail_RFC822 object. + * @var boolean $mailRFC822 + */ + var $mailRFC822 = true; + + /** + * A limit after which processing stops + * @var int $limit + */ + var $limit = null; + + + /** + * Sets up the object. The address must either be set here or when + * calling parseAddressList(). One or the other. + * + * @access public + * @param string $address The address(es) to validate. + * @param string $default_domain Default domain/host etc. If not supplied, will be set to localhost. + * @param boolean $nest_groups Whether to return the structure with groups nested for easier viewing. + * @param boolean $validate Whether to validate atoms. Turn this off if you need to run addresses through before encoding the personal names, for instance. + * + * @return object Mail_RFC822 A new Mail_RFC822 object. + */ + function Mail_RFC822($address = null, $default_domain = null, $nest_groups = null, $validate = null, $limit = null) + { + if (isset($address)) $this->address = $address; + if (isset($default_domain)) $this->default_domain = $default_domain; + if (isset($nest_groups)) $this->nestGroups = $nest_groups; + if (isset($validate)) $this->validate = $validate; + if (isset($limit)) $this->limit = $limit; + } + + + /** + * Starts the whole process. The address must either be set here + * or when creating the object. One or the other. + * + * @access public + * @param string $address The address(es) to validate. + * @param string $default_domain Default domain/host etc. + * @param boolean $nest_groups Whether to return the structure with groups nested for easier viewing. + * @param boolean $validate Whether to validate atoms. Turn this off if you need to run addresses through before encoding the personal names, for instance. + * + * @return array A structured array of addresses. + */ + function parseAddressList($address = null, $default_domain = null, $nest_groups = null, $validate = null, $limit = null) + { + + if (!isset($this->mailRFC822)) { + $obj = new Mail_RFC822($address, $default_domain, $nest_groups, $validate, $limit); + return $obj->parseAddressList(); + } + + if (isset($address)) $this->address = $address; + if (isset($default_domain)) $this->default_domain = $default_domain; + if (isset($nest_groups)) $this->nestGroups = $nest_groups; + if (isset($validate)) $this->validate = $validate; + if (isset($limit)) $this->limit = $limit; + + $this->structure = array(); + $this->addresses = array(); + $this->error = null; + $this->index = null; + + while ($this->address = $this->_splitAddresses($this->address)) { + continue; + } + + if ($this->address === false || isset($this->error)) { + require_once 'PEAR.php'; + return PEAR::raiseError($this->error); + } + + // Loop through all the addresses + for ($i = 0; $i < count($this->addresses); $i++) { + if (($return = $this->_validateAddress($this->addresses[$i])) === false + || isset($this->error)) { + require_once 'PEAR.php'; + return PEAR::raiseError($this->error); + } + + if (!$this->nestGroups) { + $this->structure = array_merge($this->structure, $return); + } else { + $this->structure[] = $return; + } + } + + return $this->structure; + } + + /** + * Splits an address into seperate addresses. + * + * @access private + * @param string $address The addresses to split. + * @return boolean Success or failure. + */ + function _splitAddresses($address) + { + + if (!empty($this->limit) AND count($this->addresses) == $this->limit) { + return ''; + } + + if ($this->_isGroup($address) && !isset($this->error)) { + $split_char = ';'; + $is_group = true; + } elseif (!isset($this->error)) { + $split_char = ','; + $is_group = false; + } elseif (isset($this->error)) { + return false; + } + + // Split the string based on the above ten or so lines. + $parts = explode($split_char, $address); + $string = $this->_splitCheck($parts, $split_char); + + // If a group... + if ($is_group) { + // If $string does not contain a colon outside of + // brackets/quotes etc then something's fubar. + + // First check there's a colon at all: + if (strpos($string, ':') === false) { + $this->error = 'Invalid address: ' . $string; + return false; + } + + // Now check it's outside of brackets/quotes: + if (!$this->_splitCheck(explode(':', $string), ':')) { + return false; + } + + // We must have a group at this point, so increase the counter: + $this->num_groups++; + } + + // $string now contains the first full address/group. + // Add to the addresses array. + $this->addresses[] = array( + 'address' => trim($string), + 'group' => $is_group + ); + + // Remove the now stored address from the initial line, the +1 + // is to account for the explode character. + $address = trim(substr($address, strlen($string) + 1)); + + // If the next char is a comma and this was a group, then + // there are more addresses, otherwise, if there are any more + // chars, then there is another address. + if ($is_group && substr($address, 0, 1) == ','){ + $address = trim(substr($address, 1)); + return $address; + + } elseif (strlen($address) > 0) { + return $address; + + } else { + return ''; + } + + // If you got here then something's off + return false; + } + + /** + * Checks for a group at the start of the string. + * + * @access private + * @param string $address The address to check. + * @return boolean Whether or not there is a group at the start of the string. + */ + function _isGroup($address) + { + // First comma not in quotes, angles or escaped: + $parts = explode(',', $address); + $string = $this->_splitCheck($parts, ','); + + // Now we have the first address, we can reliably check for a + // group by searching for a colon that's not escaped or in + // quotes or angle brackets. + if (count($parts = explode(':', $string)) > 1) { + $string2 = $this->_splitCheck($parts, ':'); + return ($string2 !== $string); + } else { + return false; + } + } + + /** + * A common function that will check an exploded string. + * + * @access private + * @param array $parts The exloded string. + * @param string $char The char that was exploded on. + * @return mixed False if the string contains unclosed quotes/brackets, or the string on success. + */ + function _splitCheck($parts, $char) + { + $string = $parts[0]; + + for ($i = 0; $i < count($parts); $i++) { + if ($this->_hasUnclosedQuotes($string) + || $this->_hasUnclosedBrackets($string, '<>') + || $this->_hasUnclosedBrackets($string, '[]') + || $this->_hasUnclosedBrackets($string, '()') + || substr($string, -1) == '\\') { + if (isset($parts[$i + 1])) { + $string = $string . $char . $parts[$i + 1]; + } else { + $this->error = 'Invalid address spec. Unclosed bracket or quotes'; + return false; + } + } else { + $this->index = $i; + break; + } + } + + return $string; + } + + /** + * Checks if a string has an unclosed quotes or not. + * + * @access private + * @param string $string The string to check. + * @return boolean True if there are unclosed quotes inside the string, false otherwise. + */ + function _hasUnclosedQuotes($string) + { + $string = explode('"', $string); + $string_cnt = count($string); + + for ($i = 0; $i < (count($string) - 1); $i++) + if (substr($string[$i], -1) == '\\') + $string_cnt--; + + return ($string_cnt % 2 === 0); + } + + /** + * Checks if a string has an unclosed brackets or not. IMPORTANT: + * This function handles both angle brackets and square brackets; + * + * @access private + * @param string $string The string to check. + * @param string $chars The characters to check for. + * @return boolean True if there are unclosed brackets inside the string, false otherwise. + */ + function _hasUnclosedBrackets($string, $chars) + { + $num_angle_start = substr_count($string, $chars[0]); + $num_angle_end = substr_count($string, $chars[1]); + + $this->_hasUnclosedBracketsSub($string, $num_angle_start, $chars[0]); + $this->_hasUnclosedBracketsSub($string, $num_angle_end, $chars[1]); + + if ($num_angle_start < $num_angle_end) { + $this->error = 'Invalid address spec. Unmatched quote or bracket (' . $chars . ')'; + return false; + } else { + return ($num_angle_start > $num_angle_end); + } + } + + /** + * Sub function that is used only by hasUnclosedBrackets(). + * + * @access private + * @param string $string The string to check. + * @param integer &$num The number of occurences. + * @param string $char The character to count. + * @return integer The number of occurences of $char in $string, adjusted for backslashes. + */ + function _hasUnclosedBracketsSub($string, &$num, $char) + { + $parts = explode($char, $string); + for ($i = 0; $i < count($parts); $i++){ + if (substr($parts[$i], -1) == '\\' || $this->_hasUnclosedQuotes($parts[$i])) + $num--; + if (isset($parts[$i + 1])) + $parts[$i + 1] = $parts[$i] . $char . $parts[$i + 1]; + } + + return $num; + } + + /** + * Function to begin checking the address. + * + * @access private + * @param string $address The address to validate. + * @return mixed False on failure, or a structured array of address information on success. + */ + function _validateAddress($address) + { + $is_group = false; + $addresses = array(); + + if ($address['group']) { + $is_group = true; + + // Get the group part of the name + $parts = explode(':', $address['address']); + $groupname = $this->_splitCheck($parts, ':'); + $structure = array(); + + // And validate the group part of the name. + if (!$this->_validatePhrase($groupname)){ + $this->error = 'Group name did not validate.'; + return false; + } else { + // Don't include groups if we are not nesting + // them. This avoids returning invalid addresses. + if ($this->nestGroups) { + $structure = new stdClass; + $structure->groupname = $groupname; + } + } + + $address['address'] = ltrim(substr($address['address'], strlen($groupname . ':'))); + } + + // If a group then split on comma and put into an array. + // Otherwise, Just put the whole address in an array. + if ($is_group) { + while (strlen($address['address']) > 0) { + $parts = explode(',', $address['address']); + $addresses[] = $this->_splitCheck($parts, ','); + $address['address'] = trim(substr($address['address'], strlen(end($addresses) . ','))); + } + } else { + $addresses[] = $address['address']; + } + + // Check that $addresses is set, if address like this: + // Groupname:; + // Then errors were appearing. + if (!count($addresses)){ + $this->error = 'Empty group.'; + return false; + } + + // Validate each mailbox. + // Format could be one of: name <ge...@do...> + // ge...@do... + // geezer + // ... or any other format valid by RFC 822. + for ($i = 0; $i < count($addresses); $i++) { + $addresses[$i] = trim($addresses[$i]); + if (!$this->validateMailbox($addresses[$i])) { + if (empty($this->error)) { + $this->error = 'Validation failed for "' . $addresses[$i] . '"'; + } + return false; + } + } + + // Nested format + if ($this->nestGroups) { + if ($is_group) { + $structure->addresses = $addresses; + } else { + $structure = $addresses[0]; + } + + // Flat format + } else { + if ($is_group) { + $structure = array_merge($structure, $addresses); + } else { + $structure = $addresses; + } + } + + return $structure; + } + + /** + * Function to validate a phrase. + * + * @access private + * @param string $phrase The phrase to check. + * @return boolean Success or failure. + */ + function _validatePhrase($phrase) + { + // Splits on one or more Tab or space. + $parts = preg_split('/[ \\x09]+/', $phrase, -1, PREG_SPLIT_NO_EMPTY); + + $phrase_parts = array(); + while (count($parts) > 0){ + $phrase_parts[] = $this->_splitCheck($parts, ' '); + for ($i = 0; $i < $this->index + 1; $i++) + array_shift($parts); + } + + for ($i = 0; $i < count($phrase_parts); $i++) { + // If quoted string: + if (substr($phrase_parts[$i], 0, 1) == '"') { + if (!$this->_validateQuotedString($phrase_parts[$i])) { + return false; + } + continue; + } + + // Otherwise it's an atom: + if (!$this->_validateAtom($phrase_parts[$i])) return false; + } + + return true; + } + + /** + * Function to validate an atom which from rfc822 is: + * atom = 1*<any CHAR except specials, SPACE and CTLs> + * + * If validation ($this->validate) has been turned off, then + * validateAtom() doesn't actually check anything. This is so that you + * can split a list of addresses up before encoding personal names + * (umlauts, etc.), for example. + * + * @access private + * @param string $atom The string to check. + * @return boolean Success or failure. + */ + function _validateAtom($atom) + { + if (!$this->validate) { + // Validation has been turned off; assume the atom is okay. + return true; + } + + // Check for any char from ASCII 0 - ASCII 127 + if (!preg_match('/^[\\x00-\\x7E]+$/i', $atom, $matches)) { + return false; + } + + // Check for specials: + if (preg_match('/[][()<>@,;\\:". ]/', $atom)) { + return false; + } + + // Check for control characters (ASCII 0-31): + if (preg_match('/[\\x00-\\x1F]+/', $atom)) { + return false; + } + + return true; + } + + /** + * Function to validate quoted string, which is: + * quoted-string = <"> *(qtext/quoted-pair) <"> + * + * @access private + * @param string $qstring The string to check + * @return boolean Success or failure. + */ + function _validateQuotedString($qstring) + { + // Leading and trailing " + $qstring = substr($qstring, 1, -1); + + // Perform check. + return !(preg_match('/(.)[\x0D\\\\"]/', $qstring, $matches) && $matches[1] != '\\'); + } + + /** + * Function to validate a mailbox, which is: + * mailbox = addr-spec ; simple address + * / phrase route-addr ; name and route-addr + * + * @access public + * @param string &$mailbox The string to check. + * @return boolean Success or failure. + */ + function validateMailbox(&$mailbox) + { + // A couple of defaults. + $phrase = ''; + $comment = ''; + $comments = array(); + + // Catch any RFC822 comments and store them separately. + $_mailbox = $mailbox; + while (strlen(trim($... [truncated message content] |