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-26 17:03:53
|
Revision: 8816 http://xoops.svn.sourceforge.net/xoops/?rev=8816&view=rev Author: djculex Date: 2012-01-26 17:03:42 +0000 (Thu, 26 Jan 2012) Log Message: ----------- - show only "show more in profile" if any fields to show - Show fields allowed by admin in profile - Added language define if all fields are disabled Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/language/english/main.php XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html XoopsModules/smallworld/trunk/smallworld/userprofile.php Modified: XoopsModules/smallworld/trunk/smallworld/language/english/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-26 15:33:48 UTC (rev 8815) +++ XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-26 17:03:42 UTC (rev 8816) @@ -24,6 +24,7 @@ /*------------ General items -------- */ define("_SMALLWORLD_SYSERROR","System Error!"); define("_SMALLWORLD_SYSNAME","Smallworld"); +define("_SMALLWORLD_ALL_FIELDS_DISABLED","No personal info available"); /*----------- Personal info ------------------*/ define("_SMALLWORLD_AVATAR","Current Image"); Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html =================================================================== --- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html 2012-01-26 15:33:48 UTC (rev 8815) +++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html 2012-01-26 17:03:42 UTC (rev 8816) @@ -140,11 +140,13 @@ <{$heorshe}> <{$smarty.const._SMALLWORLD_ISEMPLOYEDBY}> <{$work}> <{$smarty.const._SMALLWORLD_AND}> <{$smarty.const._SMALLWORLD_ATTENDED}> <{$education}>. <br/><br/> + <{if $flds[0] != ''}> <fieldset> <label><{$smarty.const._SMALLWORLD_ADDITIONALINFO}> <{$username}></label> <{$aboutme}> <br><br><a href='javascript:void(0)' class="smallworld_moreinfo" id='_SMALLWORLD_MOREINFO'><{$smarty.const._SMALLWORLD_MOREINFO}></a><br><br> </fieldset> + <{/if}> </div> <{/if}> <{if $isuserafriend == 'no'}> @@ -368,6 +370,28 @@ </div> <div id="interestsandmore" title="<{$smarty.const._SMALLWORLD_INTERESTS_TITLE}>" > + <{if + !in_array('religiousview',$flds) && + !in_array('politicalview',$flds) && + !in_array('favouritebooks',$flds) && + !in_array('favouritemusic',$flds) && + !in_array('favouritemovies',$flds) && + !in_array('favouritetvshows',$flds) && + !in_array('interests',$flds) && + !in_array('emails',$flds) && !in_array('screennames',$flds) && + !in_array('mobile',$flds) && !in_array('landphone',$flds) && + !in_array('streetadress',$flds) && + !in_array('country',$flds) && + !in_array('website',$flds) + }> + <fieldset> + <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> + <tr> + <td><label><{$smarty.const._SMALLWORLD_ALL_FIELDS_DISABLED}></label></td> + </tr> + </table> + </fieldset> + <{else}> <fieldset> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr> @@ -375,64 +399,98 @@ </tr> </table> </fieldset> + <{/if}> + <{if !in_array('religiousview',$flds) && !in_array('politicalview',$flds)}> + <{else}> <fieldset> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr> <h3><label><{$smarty.const._SMALLWORLD_BELIEFS}></label></h3> </tr> - + + <{if !in_array('politicalview',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_POLITICWORD}>:</td> <td><{$politic}></td> </tr> - + <{/if}> + <{if !in_array('religiousview',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_RELIGIONWORD}>:</td> <td><{$religion}></td> </tr> + <{/if}> </table> </fieldset> + <{/if}> + <{if + !in_array('favouritebooks',$flds) && !in_array('favouritemusic',$flds) && + !in_array('favouritemovies',$flds) && !in_array('favouritetvshows',$flds) && + !in_array('interests',$flds) + }> + <{else}> <fieldset> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr> <h3><label><{$smarty.const._SMALLWORLD_FAVOURITETHINGS}></label></h3> </tr> - + <{if !in_array('favouritebooks',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_FAVOURITEBOOKS}>:</td> <td><{$favbook}></td> </tr> + <{/if}> + <{if !in_array('favouritemusic',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_FAVOURITEMUSIC}>:</td> <td><{$favmusic}></td> </tr> + <{/if}> + <{if !in_array('favouritemovies',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_FAVOURITEMOVIE}>:</td> <td><{$favmovie}></td> </tr> - + <{/if}> + <{if !in_array('favouritetvshows',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_FAVOURITETVSHOW}>:</td> <td><{$favtvshow}></td> </tr> - + <{/if}> + <{if !in_array('interests',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_FAVOURITEINTERESTS}>:</td> <td><{$favinterests}></td> </tr> + <{/if}> </table> </fieldset> + <{/if}> + <{if + !in_array('emails',$flds) && !in_array('screennames',$flds) && + !in_array('mobile',$flds) && !in_array('landphone',$flds) + }> + <{else}> <fieldset> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr> <h3><label><{$smarty.const._SMALLWORLD_CONTACTS}></label></h3> </tr> - + <{if !in_array('emails',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_EMAIL}>:</td> <td> @@ -442,7 +500,9 @@ <br><br> </td> </tr> - + <{/if}> + <{if !in_array('screennames',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_SCREENNAMES}>:</td> <td> @@ -452,38 +512,63 @@ <br><br> </td> </tr> - + <{/if}> + + <{if !in_array('landphone',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_PHONE}>:</td> <td><{$phone}></td> </tr> + <{/if}> + <{if !in_array('mobile',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_GSM}>:</td> <td><{$mobile}></td> </tr> + <{/if}> </table> </fieldset> + <{/if}> + + <{if + !in_array('streetadress',$flds) && + !in_array('country',$flds) && + !in_array('website',$flds) + }> + <{else}> <fieldset> <table border="0" class="smallworld_table" cellspacing="0" cellpadding="0"> <tr><h3><label><{$smarty.const._SMALLWORLD_ADRESS}></label></h3></tr> + <{if !in_array('streetadress',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_ADRESS}>:</td> <td><{$realname}><br><{$adress}></td> </tr> + <{/if}> + <{if !in_array('country',$flds)}> + <{else}> <tr> <td><{$smarty.const._SMALLWORLD_COUNTRY}>:</td> <td><{$country}></td> </tr> + <{/if}> + <{if !in_array('website',$flds)}> + <{else}> <tr> <td><br><br><{$smarty.const._SMALLWORLD_WEBSITE}>:</td> <td><br><br><span class="smallworld_website"><a href="<{$website}>" target="_BLANK"><{$website}></a></span></td> </tr> + <{/if}> </table> </fieldset> + <{/if}> </div> <div id="_smallworld_birthplace_map" title="<{$birthcity}>/<{$country}>"> Modified: XoopsModules/smallworld/trunk/smallworld/userprofile.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-26 15:33:48 UTC (rev 8815) +++ XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-26 17:03:42 UTC (rev 8816) @@ -194,6 +194,7 @@ $xoopsTpl->assign('username',$Xusername); $xoopsTpl->assign('bdaynow',$birthday_today_text); $xoopsTpl->assign('isfollowing',$fl[0]); + $xoopsTpl->assign('flds',smallworld_GetModuleOption('smallworldusethesefields', $repmodule='smallworld')); } else { $check->chkUser (); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-26 15:33:54
|
Revision: 8815 http://xoops.svn.sourceforge.net/xoops/?rev=8815&view=rev Author: djculex Date: 2012-01-26 15:33:48 +0000 (Thu, 26 Jan 2012) Log Message: ----------- Check for send email is configured to 'no' else send mail Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/comment_ajax.php XoopsModules/smallworld/trunk/smallworld/complaint.php XoopsModules/smallworld/trunk/smallworld/friendinvite.php XoopsModules/smallworld/trunk/smallworld/index.php XoopsModules/smallworld/trunk/smallworld/submit.php Modified: XoopsModules/smallworld/trunk/smallworld/comment_ajax.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/comment_ajax.php 2012-01-26 15:17:31 UTC (rev 8814) +++ XoopsModules/smallworld/trunk/smallworld/comment_ajax.php 2012-01-26 15:33:48 UTC (rev 8815) @@ -76,7 +76,9 @@ $emails = ""; foreach ($parts as $k=>$v) { $owner = getOwnerFromComment ($data['msg_id_fk']); - $mail->sendMails ($data['uid_fk'], $v, 'commentToWM', $link=null, $wc); + if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { + $mail->sendMails ($data['uid_fk'], $v, 'commentToWM', $link=null, $wc); + } } } } Modified: XoopsModules/smallworld/trunk/smallworld/complaint.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/complaint.php 2012-01-26 15:17:31 UTC (rev 8814) +++ XoopsModules/smallworld/trunk/smallworld/complaint.php 2012-01-26 15:33:48 UTC (rev 8815) @@ -43,7 +43,9 @@ if ($already != 1) { $mail = new smallworld_mail; - $mail->sendMails($by_userid, '', 'complaint', $link=null, $data); + if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { + $mail->sendMails($by_userid, '', 'complaint', $link=null, $data); + } $db->updateComplaint ($auserid); echo _SMALLWORLD_JS_COMPLAINTSENT; } else { Modified: XoopsModules/smallworld/trunk/smallworld/friendinvite.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/friendinvite.php 2012-01-26 15:17:31 UTC (rev 8814) +++ XoopsModules/smallworld/trunk/smallworld/friendinvite.php 2012-01-26 15:33:48 UTC (rev 8815) @@ -45,7 +45,9 @@ $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()); + if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { + $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)); } Modified: XoopsModules/smallworld/trunk/smallworld/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-26 15:17:31 UTC (rev 8814) +++ XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-26 15:33:48 UTC (rev 8815) @@ -136,7 +136,7 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); } Modified: XoopsModules/smallworld/trunk/smallworld/submit.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/submit.php 2012-01-26 15:17:31 UTC (rev 8814) +++ XoopsModules/smallworld/trunk/smallworld/submit.php 2012-01-26 15:33:48 UTC (rev 8815) @@ -33,6 +33,8 @@ $userID = $xoopsUser->getVar('uid'); if ($_POST['function'] != 'edit') { $img->createAlbum ($userID); - $mail->sendMails ($userID, $userID, 'register', $link=null, array()); + if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) { + $mail->sendMails ($userID, $userID, 'register', $link=null, array()); + } } ?> \ 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-26 15:17:42
|
Revision: 8814 http://xoops.svn.sourceforge.net/xoops/?rev=8814&view=rev Author: djculex Date: 2012-01-26 15:17:31 +0000 (Thu, 26 Jan 2012) Log Message: ----------- change $modversion name due to name too long for mysql thus being cut short 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-26 14:58:42 UTC (rev 8813) +++ XoopsModules/smallworld/trunk/smallworld/xoops_version.php 2012-01-26 15:17:31 UTC (rev 8814) @@ -165,7 +165,7 @@ $modversion['config'][$i]['default'] = 1; $i++; -$modversion['config'][$i]['name'] = 'smallworldusemailnotification'; +$modversion['config'][$i]['name'] = 'smallworldusemailnotis'; $modversion['config'][$i]['title'] = '_MI_SMALLWORLD_USEMAILNOTIFICATION'; $modversion['config'][$i]['description'] = '_MI_SMALLWORLD_USEMAILNOTIFICATION_DESC'; $modversion['config'][$i]['formtype'] = 'yesno'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-26 14:58:53
|
Revision: 8813 http://xoops.svn.sourceforge.net/xoops/?rev=8813&view=rev Author: djculex Date: 2012-01-26 14:58:42 +0000 (Thu, 26 Jan 2012) Log Message: ----------- missing javascript in index.php, smallworldshare.php & userprofile.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/index.php XoopsModules/smallworld/trunk/smallworld/smallworldshare.php XoopsModules/smallworld/trunk/smallworld/userprofile.php Modified: XoopsModules/smallworld/trunk/smallworld/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-25 21:06:16 UTC (rev 8812) +++ XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-26 14:58:42 UTC (rev 8813) @@ -133,11 +133,10 @@ $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'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); } Modified: XoopsModules/smallworld/trunk/smallworld/smallworldshare.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-25 21:06:16 UTC (rev 8812) +++ XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-26 14:58:42 UTC (rev 8813) @@ -85,6 +85,7 @@ $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/jquery.innerfade.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/smallworld.css'); Modified: XoopsModules/smallworld/trunk/smallworld/userprofile.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-25 21:06:16 UTC (rev 8812) +++ XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-26 14:58:42 UTC (rev 8813) @@ -206,9 +206,9 @@ $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.countdown.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); //Check Language $lang = $xoopsConfig['language']; @@ -218,8 +218,6 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.countdown.js'); } else { $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.countdown.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); - $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-01-25 21:06:23
|
Revision: 8812 http://xoops.svn.sourceforge.net/xoops/?rev=8812&view=rev Author: wishcraft Date: 2012-01-25 21:06:16 +0000 (Wed, 25 Jan 2012) Log Message: ----------- VOD 1.15 Pre-alpha - Video on demand shopping cart, based on flowplayer module - this is an untested pre-alpha - upped as framework backup - see changelog.txt Modified Paths: -------------- XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/changelog.txt Added Paths: ----------- XoopsModules/vod/releases/1.15/docs/ Modified: XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/changelog.txt =================================================================== --- XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/changelog.txt 2012-01-25 20:53:24 UTC (rev 8811) +++ XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/changelog.txt 2012-01-25 21:06:16 UTC (rev 8812) @@ -26,6 +26,15 @@ - Added /language/english/forms.php Forms Language Constants Added to Application (wishcraft) - Added /language/english/admin.php Admin Language Constants Added to Application (wishcraft) - Added /language/english/modinfo.php Module Language Constants Added to Application (wishcraft) + - Added /templates/vod_cpanel_cart_edit.html Control Panel Edit Cart Added to Application (wishcraft) + - Added /templates/vod_cpanel_cart_list.html Control Panel List Cart Added to Application (wishcraft) + - Added /templates/vod_cpanel_category_edit.html Control Panel Edit Category Added to Application (wishcraft) + - Added /templates/vod_cpanel_category_list.html Control Panel List Category Added to Application (wishcraft) + - Added /templates/vod_cpanel_currency_edit.html Control Panel Edit Currency Added to Application (wishcraft) + - Added /templates/vod_cpanel_currency_list.html Control Panel List Currency Added to Application (wishcraft) + - Added /templates/vod_cpanel_log_list.html Control Panel List Log Added to Application (wishcraft) + - Added /templates/vod_cpanel_sessions_edit.html Control Panel Edit Sessions Added to Application (wishcraft) + - Added /templates/vod_cpanel_sessions_list.html Control Panel List Sessions Added to Application (wishcraft) - Changed /include/formobjects.vod.php Instanciate new application form objects & tag module (wishcraft) - Changed /admin/menu.php Support for Categories, Currencies, Log, Permissions & Cart Sessions Added (wishcraft) - Changed /admin/index.php Support for Categories, Currencies, Log, Permissions & Cart Sessions Added (wishcraft) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-01-25 20:53:34
|
Revision: 8811 http://xoops.svn.sourceforge.net/xoops/?rev=8811&view=rev Author: wishcraft Date: 2012-01-25 20:53:24 +0000 (Wed, 25 Jan 2012) Log Message: ----------- VOD 1.15 Pre-alpha - Video on demand shopping cart, based on flowplayer module - this is an untested pre-alpha - upped as framework backup - see changelog.txt Added Paths: ----------- XoopsModules/vod/ XoopsModules/vod/releases/ XoopsModules/vod/releases/1.15/ XoopsModules/vod/releases/1.15/htdocs/ XoopsModules/vod/releases/1.15/htdocs/Frameworks/ XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/ XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png XoopsModules/vod/releases/1.15/htdocs/modules/ XoopsModules/vod/releases/1.15/htdocs/modules/tag/ XoopsModules/vod/releases/1.15/htdocs/modules/tag/plugin/ XoopsModules/vod/releases/1.15/htdocs/modules/tag/plugin/vod.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/header.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/menu.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/blocks/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/blocks/flowplayer_block_player.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/blocks/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/cart.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/category.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/currency.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/log.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/mimetypes.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/sessions.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/class/videos.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/changelog.txt XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/credits.txt XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/install.txt XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/lang_diff.txt XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/licence.txt XoopsModules/vod/releases/1.15/htdocs/modules/vod/docs/readme.txt XoopsModules/vod/releases/1.15/htdocs/modules/vod/dojson_videos.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/header.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/icons/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/icons/admin/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/icons/admin/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/icons/admin/video.png XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/icons/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/images/vod_slogo.png XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/JSON.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formobjects.vod.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/forms.vod.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formselectcategory.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formselectcurrency.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formselectmimetype.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formselectpackageid.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formselectsupport.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/formselectvideos.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/functions.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/update.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/include/uploader.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/index.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/js/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/js/core.js XoopsModules/vod/releases/1.15/htdocs/modules/vod/js/flowplayer-3.2.6.min.js XoopsModules/vod/releases/1.15/htdocs/modules/vod/js/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/js/json_functions.js XoopsModules/vod/releases/1.15/htdocs/modules/vod/js/video.js XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/admin.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/blocks.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/forms.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/log.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/mainfile.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/modinfo.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/style.css XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/english/video-js.css XoopsModules/vod/releases/1.15/htdocs/modules/vod/language/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/preloads/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/preloads/core.php XoopsModules/vod/releases/1.15/htdocs/modules/vod/preloads/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/sql/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/sql/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/sql/mysql.sql XoopsModules/vod/releases/1.15/htdocs/modules/vod/swf/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/swf/flowplayer-3.2.7.swf XoopsModules/vod/releases/1.15/htdocs/modules/vod/swf/flowplayer.controls-3.2.5.swf XoopsModules/vod/releases/1.15/htdocs/modules/vod/swf/flowplayer.rtmp-3.2.3.swf XoopsModules/vod/releases/1.15/htdocs/modules/vod/swf/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/blocks/ XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/blocks/flowplayer_block_player.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/blocks/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_cart_edit.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_cart_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_category_edit.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_category_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_currency_edit.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_currency_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_log_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_mimetypes_edit.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_mimetypes_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_sessions_edit.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_sessions_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_useragents_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_videos_edit.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_cpanel_videos_list.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_flash_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_html5_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_http_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_flash_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_html5_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_http_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_ios_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_other_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_rtmp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_rtsp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_iframe_silverlight_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_ios_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_other_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_rstp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_rtmp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_index_silverlight_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_flash_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_html5_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_http_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_ios_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_other_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_rtmp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_rtsp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_block_silverlight_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_flash_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_html5_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_http_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_ios_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_other_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_rtmp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_rtsp_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/templates/vod_json_silverlight_videos.html XoopsModules/vod/releases/1.15/htdocs/modules/vod/xoops_version.php Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/vod/releases/1.15/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/vod/releases/1.15/htdocs/modules/tag/plugin/vod.php =================================================================== --- XoopsModules/vod/releases/1.15/htdocs/modules/tag/plugin/vod.php (rev 0) +++ XoopsModules/vod/releases/1.15/htdocs/modules/tag/plugin/vod.php 2012-01-25 20:53:24 UTC (rev 8811) @@ -0,0 +1,76 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +function vod_tag_iteminfo(&$items) +{ + if (empty($items) || !is_array($items)) { + return false; + } + + $items_id = array(); + foreach (array_keys($items) as $cat_id) { + // Some handling here to build the link upon catid + // catid is not used in vod, so just skip it + foreach (array_keys($items[$cat_id]) as $item_id) { + // In vod, the item_id is "topic_id" + $items_id[] = intval($item_id); + } + } + $item_handler =& xoops_getmodulehandler('videos', 'vod'); + $items_obj = $item_handler->getObjects(new Criteria("vid", "(" . implode(", ", $items_id) . ")", "IN"), true); + $myts =& MyTextSanitizer::getInstance(); + foreach (array_keys($items) as $cat_id) { + foreach (array_keys($items[$cat_id]) as $item_id) { + $item_obj =& $items_obj[$item_id]; + if (is_object($item_obj)) + $items[$cat_id][$item_id] = array( + "title" => $item_obj->getVar("name"), + "uid" => $item_obj->getVar("uid"), + "link" => 'go.php?vid='.$item_id.'&cid='.$item_obj->getVar("cid"), + "time" => $item_obj->getVar("date"), + "tags" => tag_parse_tag($item_obj->getVar("tags", "n")), + "content" => $myts->displayTarea($item_obj->getVar("summary"),true,true,true,true,true,true) + ); + } + } + unset($items_obj); +} + +/** + * Remove orphan tag-item links + * + * @return boolean + * + */ +function vod_tag_synchronization($mid) +{ + $item_handler =& xoops_getmodulehandler('videos', 'vod'); + $link_handler =& xoops_getmodulehandler("link", "tag"); + + /* clear tag-item links */ + if (version_compare( mysql_get_server_info(), "4.1.0", "ge" )): + $sql = " DELETE FROM {$link_handler->table}" . + " WHERE " . + " tag_modid = {$mid}" . + " AND " . + " ( tag_itemid NOT IN " . + " ( SELECT DISTINCT {$item_handler->keyName} " . + " FROM {$item_handler->table} " . + " WHERE {$item_handler->table}.approved > 0" . + " ) " . + " )"; + else: + $sql = " DELETE {$link_handler->table} FROM {$link_handler->table}" . + " LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " . + " WHERE " . + " tag_modid = {$mid}" . + " AND " . + " ( aa.{$item_handler->keyName} IS NULL" . + " OR aa.approved < 1" . + " )"; + endif; + if (!$result = $link_handler->db->queryF($sql)) { + //xoops_error($link_handler->db->error()); + } +} +?> \ No newline at end of file Added: XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/header.php =================================================================== --- XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/header.php (rev 0) +++ XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/header.php 2012-01-25 20:53:24 UTC (rev 8811) @@ -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['vodModule'] = $module_handler->getByDirname('vod'); + $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->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 vod_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['vodImageIcon'] = XOOPS_URL .'/'. $GLOBALS['vodModule']->getInfo('icons16'); + $GLOBALS['vodImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['vodModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['vodModule']->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['vodImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['vodImageAdmin']); + + + require_once('../include/functions.php'); + require_once('../include/formobjects.vod.php'); + require_once('../include/forms.vod.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/vod/releases/1.15/htdocs/modules/vod/admin/index.html =================================================================== --- XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.html (rev 0) +++ XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.html 2012-01-25 20:53:24 UTC (rev 8811) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.php =================================================================== --- XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.php (rev 0) +++ XoopsModules/vod/releases/1.15/htdocs/modules/vod/admin/index.php 2012-01-25 20:53:24 UTC (rev 8811) @@ -0,0 +1,996 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'vod'); + + 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: + vod_adminMenu(0, 'index.php?op=dashboard'); + + $videos_handler = xoops_getmodulehandler('videos', 'vod'); + $mimetypes_handler = xoops_getmodulehandler('mimetypes', 'vod'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_VOD_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_FLATFILES."</label>", $videos_handler->getCount(new Criteria('stream', '0', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_RTMPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_RTSPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_FLASHSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_IOSSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_HTTPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`http`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_MIMETYPES."</label>", $mimetypes_handler->getCount(), 'Purple'); + $videoss = $videos_handler->getObjects(new Criteria('`default`', '1'), false); + if (is_object($videoss[0])) { + $videos = $videoss[0]; + $indexAdmin->addInfoBox(_AM_VOD_ADMIN_DEFAULT); + $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/vod/?vid='.$videos->getVar('vid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green'); + } + echo $indexAdmin->renderIndex(); + break; + case "about": + echo vod_adminMenu(9, 'index.php?op=about'); + $paypalitemno='VOD106'; + $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="poster">', + 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['vodModule']->getVar('dirname')), strtoupper($GLOBALS['vodModule']->getVar('dirname')). ' '.$GLOBALS['vodModule']->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": + vod_adminMenu(6, 'index.php?op=agents'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + xoops_load('XoopsCache'); + $ret = XoopsCache::read('vod_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','videos','agents','user') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_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['vodModuleConfig']); + $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), 'videos'=>$agent['videos'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent'])); + $i++; + } + $s++; + } + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_useragents_list.html'); + break; + + case "currency": + switch ($fct) + { + default: + case "list": + vod_adminMenu(5, 'index.php?op=currency&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $currency_handler =& xoops_getmodulehandler('currency', 'vod'); + + $criteria = $currency_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $currency_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($currency_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $currency_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $currencys = $currency_handler->getObjects($criteria, true); + foreach($currencys as $cid => $currency) { + if (is_object($currency)) + $GLOBALS['xoopsTpl']->append('currency', $currency->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', vod_currency_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_currency_list.html'); + break; + + case "new": + case "edit": + + vod_adminMenu(5, 'index.php?op=currency&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $currency_handler =& xoops_getmodulehandler('currency', 'vod'); + if (isset($_REQUEST['id'])) { + $currency = $currency_handler->get(intval($_REQUEST['id'])); + } else { + $currency = $currency_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $currency->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_currency_edit.html'); + break; + case "save": + + $currency_handler =& xoops_getmodulehandler('currency', 'vod'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $currency = $currency_handler->get($id); + } else { + $currency = $currency_handler->create(); + } + $currency->setVars($_POST[$id]); + if (!$id=$currency_handler->insert($currency)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTOSAVE); + exit(0); + } else { + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $currency_handler =& xoops_getmodulehandler('currency', 'vod'); + foreach($_REQUEST['id'] as $id) { + $currency = $currency_handler->get($id); + $currency->setVars($_POST[$id]); + if (!$currency_handler->insert($currency)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY); + exit(0); + break; + case "delete": + + $currency_handler =& xoops_getmodulehandler('currency', 'vod'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $currency = $currency_handler->get($id); + if (!$currency_handler->delete($currency)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_DELETED); + exit(0); + } + } else { + $currency = $currency_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']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_CURRENCY_DELETE, $currency->getVar('name'))); + } + break; + } + break; + case "category": + switch ($fct) + { + default: + case "list": + vod_adminMenu(2, 'index.php?op=category&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $category_handler =& xoops_getmodulehandler('category', 'vod'); + + $criteria = $category_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $category_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($category_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $category_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $categorys = $category_handler->getObjects($criteria, true); + foreach($categorys as $cid => $category) { + if (is_object($category)) + $GLOBALS['xoopsTpl']->append('category', $category->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', vod_category_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_category_list.html'); + break; + + case "new": + case "edit": + + vod_adminMenu(2, 'index.php?op=category&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $category_handler =& xoops_getmodulehandler('category', 'vod'); + if (isset($_REQUEST['id'])) { + $category = $category_handler->get(intval($_REQUEST['id'])); + } else { + $category = $category_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $category->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_category_edit.html'); + break; + case "save": + + $category_handler =& xoops_getmodulehandler('category', 'vod'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $category = $category_handler->get($id); + } else { + $category = $category_handler->create(); + } + $category->setVars($_POST[$id]); + if (!$id=$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } else { + if (isset($_FILES['avata'])&&!empty($_FILES['avata']['name'])) { + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['vodModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['vodModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + include_once($GLOBALS['xoops']->path('modules/vod/include/uploader.php')); + $category = $category_handler->get($id); + $uploader = new VodMediaUploader($GLOBALS['xoops']->path($GLOBALS['vodModuleConfig']['upload_areas']), explode('|', $GLOBALS['vodModuleConfig']['allowed_mimetype']), $GLOBALS['vodModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['vodModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + if ($uploader->fetchMedia('avata')) { + if (!$uploader->upload()) { + vod_adminMenu(1); + echo $uploader->getErrors(); + vod_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($category->getVar('avata'))) + unlink($GLOBALS['xoops']->path($category->getVar('path')).$category->getVar('avata')); + + $category->setVar('path', $GLOBALS['vodModuleConfig']['upload_areas']); + $category->setVar('avata', $uploader->getSavedFileName()); + @$category_handler->insert($category); + } + } else { + vod_adminMenu(1); + echo $uploader->getErrors(); + vod_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $category_handler =& xoops_getmodulehandler('category', 'vod'); + foreach($_REQUEST['id'] as $id) { + $category = $category_handler->get($id); + $category->setVars($_POST[$id]); + if (!$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY); + exit(0); + break; + case "delete": + + $category_handler =& xoops_getmodulehandler('category', 'vod'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $category = $category_handler->get($id); + if (!$category_handler->delete($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_DELETED); + exit(0); + } + } else { + $category = $category_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']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_CATEGORY_DELETE, $category->getVar('name'))); + } + break; + } + break; + + case "sessions": + switch ($fct) + { + default: + case "list": + vod_adminMenu(3, 'index.php?op=sessions&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $sessions_handler =& xoops_getmodulehandler('sessions', 'vod'); + + $criteria = $sessions_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $sessions_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($sessions_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $sessions_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $sessions = $sessions_handler->getObjects($criteria, true); + foreach($sessions as $cid => $session) { + if (is_object($session)) + $GLOBALS['xoopsTpl']->append('sessions', $session->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', vod_sessions_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_sessions_list.html'); + break; + + case "new": + case "edit": + + vod_adminMenu(3, 'index.php?op=sessions&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $sessions_handler =& xoops_getmodulehandler('sessions', 'vod'); + if (isset($_REQUEST['id'])) { + $sessions = $sessions_handler->get(intval($_REQUEST['id'])); + } else { + $sessions = $sessions_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $sessions->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_sessions_edit.html'); + break; + case "save": + + $sessions_handler =& xoops_getmodulehandler('sessions', 'vod'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $sessions = $sessions_handler->get($id); + } else { + $sessions = $sessions_handler->create(); + } + $sessions->setVars($_POST[$id]); + if (!$id=$sessions_handler->insert($sessions)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_FAILEDTOSAVE); + exit(0); + } else { + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $sessions_handler =& xoops_getmodulehandler('sessions', 'vod'); + foreach($_REQUEST['id'] as $id) { + $sessions = $sessions_handler->get($id); + $sessions->setVars($_POST[$id]); + if (!$sessions_handler->insert($sessions)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $sessions_handler =& xoops_getmodulehandler('sessions', 'vod'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $sessions = $sessions_handler->get($id); + if (!$sessions_handler->delete($sessions)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_DELETED); + exit(0); + } + } else { + $sessions = $sessions_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']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_SESSIONS_DELETE, $sessions->getVar('name'))); + } + break; + } + break; + + case "cart": + switch ($fct) + { + default: + case "list": + vod_adminMenu(3, 'index.php?op=sessions&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $cart_handler =& xoops_getmodulehandler('cart', 'vod'); + + $criteria = $cart_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $cart_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($cart_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $cart_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $carts = $cart_handler->getObjects($criteria, true); + foreach($carts as $cid => $cart) { + if (is_object($cart)) + $GLOBALS['xoopsTpl']->append('cart', $cart->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', vod_cart_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_cart_list.html'); + break; + + case "new": + case "edit": + + vod_adminMenu(3, 'index.php?op=sessions&fct=list'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $cart_handler =& xoops_getmodulehandler('cart', 'vod'); + if (isset($_REQUEST['id'])) { + $cart = $cart_handler->get(intval($_REQUEST['id'])); + } else { + $cart = $cart_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $cart->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:vod_cpanel_cart_edit.html'); + break; + case "save": + + $cart_handler =& xoops_getmodulehandler('cart', 'vod'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $cart = $cart_handler->get($id); + } else { + $cart = $cart_handler->create(); + } + $cart->setVars($_POST[$id]); + ... [truncated message content] |
From: <dj...@us...> - 2012-01-25 14:34:20
|
Revision: 8810 http://xoops.svn.sourceforge.net/xoops/?rev=8810&view=rev Author: djculex Date: 2012-01-25 14:34:09 +0000 (Wed, 25 Jan 2012) Log Message: ----------- Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/images/bordercb.png Added: XoopsModules/smallworld/trunk/smallworld/images/bordercb.png =================================================================== (Binary files differ) Property changes on: XoopsModules/smallworld/trunk/smallworld/images/bordercb.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-25 14:33:43
|
Revision: 8809 http://xoops.svn.sourceforge.net/xoops/?rev=8809&view=rev Author: djculex Date: 2012-01-25 14:33:36 +0000 (Wed, 25 Jan 2012) Log Message: ----------- - Implimenting colorbox instead of jquery dialog(); - Correction in stats() function to show correct user avatar - Css adjustments - Re-attach validate to colorbox forms Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/index.php XoopsModules/smallworld/trunk/smallworld/css/smallworld.css XoopsModules/smallworld/trunk/smallworld/editimages.php XoopsModules/smallworld/trunk/smallworld/galleryshow.php XoopsModules/smallworld/trunk/smallworld/img_upload.php XoopsModules/smallworld/trunk/smallworld/include/functions.php XoopsModules/smallworld/trunk/smallworld/index.php XoopsModules/smallworld/trunk/smallworld/js/smallworld.js XoopsModules/smallworld/trunk/smallworld/language/english/js/variables.js XoopsModules/smallworld/trunk/smallworld/language/english/main.php XoopsModules/smallworld/trunk/smallworld/userprofile.php Modified: XoopsModules/smallworld/trunk/smallworld/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -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(); Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-25 14:33:36 UTC (rev 8809) @@ -330,6 +330,11 @@ left:20px } +#_smallworld_birthplace_map,#_smallworld_present_map { +height:550px; +width:550px; +} + /*-------- Register items ---------*/ #smallworld_divstepy-error { @@ -554,9 +559,10 @@ } .smallworld_edit_desc { + overflow:scroll; margin: 0 10px 0 15%; - width: 250px; - height:50px; + width:400px; + height:400px; } .smallworld_editTextSpan { @@ -941,6 +947,9 @@ margin: 5px; } +div#smallworldStatsDiv { +overflow:hidden; +} #smallworld_Stats_title { bottom: 10px; color: red; Modified: XoopsModules/smallworld/trunk/smallworld/editimages.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/editimages.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/editimages.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -24,7 +24,7 @@ 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; +global $xoopsUser,$xoopsTpl,$xoopsDB,$xoTheme; if ($xoopsUser) { $userID = $xoopsUser->getVar('uid'); @@ -51,6 +51,8 @@ $i++; } $xoopsTpl->append('editimages',$editimages); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } else { redirect_header("index.php", 1); } Modified: XoopsModules/smallworld/trunk/smallworld/galleryshow.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/galleryshow.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/galleryshow.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -34,6 +34,8 @@ $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'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); $id = $xoopsUser->getVar('uid'); $check = new SmallWorldUser; Modified: XoopsModules/smallworld/trunk/smallworld/img_upload.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/img_upload.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/img_upload.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -33,6 +33,8 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.fileupload.js'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/upload_application.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/jquery.fileupload-ui.css'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); $id = $xoopsUser->getVar('uid'); $check = new SmallWorldUser; $profile = $check->CheckIfProfile($id); Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -452,7 +452,7 @@ $nu[$i]['username_link'] = "<a href = '".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$r['username']."'>"; $nu[$i]['username_link'] .= $r['username']." (".$r['realname'].") [".$nu[$i]['regdate']."] </a>"; $nu[$i]['userimage'] = $r['userimage']; - $nu[$i]['userimage_link'] = smallworld_getAvatarLink ($r['userid'], $r['userimage']); + $nu[$i]['userimage_link'] = smallworld_getAvatarLink ($r['userid'], Gravatar($r['userid'])); $i++; } Modified: XoopsModules/smallworld/trunk/smallworld/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -136,6 +136,8 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); } Modified: XoopsModules/smallworld/trunk/smallworld/js/smallworld.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-25 14:33:36 UTC (rev 8809) @@ -14,53 +14,24 @@ xoops_smallworld(function() { // GET pop for statistics xoops_smallworld('#smallworld_statistics_lnk').live('click',function() { - xoops_smallworld("#smallworldStatsDiv").load('stats.php').dialog({ - show: "blind", - minHeight: "120px", - hide: "explode", - width: "950px", - close: function(event, ui) { - xoops_smallworld("#smallworldStatsDiv").hide(); - xoops_smallworld("#smallworldStatsDiv").empty(); - } - }); - xoops_smallworld("#smallworldStatsDiv").show(); - xoops_smallworld('#smallworldStatsDiv').find(".ui-dialog-titlebar").hide(); - xoops_smallworld('#smallworldStatsDiv').css('overflow','visible'); - - return false; + if (xoops_smallworld('#smallworld_statistics_lnk').length) { // implies *not* zero + xoops_smallworld('#smallworldStatsDiv').show(); + xoops_smallworld("#smallworldStatsDiv").load('stats.php'); + xoops_smallworld.fn.colorbox({ + width:"75%", + height:"18%", + inline:true, + onCleanup:function() { + xoops_smallworld('#smallworldStatsDiv').hide(); + }, + onClosed:function() { + xoops_smallworld('#smallworldStatsDiv').hide(); + }, + href:"#smallworldStatsDiv" + }); + }; }); - - // GET pop for about - xoops_smallworld('#smallworld_information_lnk').live('click',function() { - xoops_smallworld("#smallworldStatsDiv").load('about.php').dialog({ - show: "blind", - minHeight: "120px", - hide: "explode", - width: "950px", - close: function(event, ui) { - xoops_smallworld("#smallworldStatsDiv").hide(); - xoops_smallworld("#smallworldStatsDiv").empty(); - } - }); - xoops_smallworld("#smallworldStatsDiv").show(); - xoops_smallworld('#smallworldStatsDiv').find(".ui-dialog-titlebar").hide(); - xoops_smallworld('#smallworldStatsDiv').css('overflow','visible'); - return false; - }); - - // Function to make registration form into ui dialog - xoops_smallworld('#smallworld_regform1').dialog({ - minWidth: 800, - show: "blind", - hide: "explode", - width: "750px", - close: function(event, ui) { - location.href = 'index.php'; - } - }); - // Attach colorbox.js to selector in register.php and edit_profile.php // If other page / no presence of #smallworld_regform1 then exit function and continue xoops_smallworld(document).ready(function(){ @@ -70,6 +41,9 @@ width:"auto", height:"70%", inline:true, + onComplete: function() { + smallworld_DoValStart (); + }, onCleanup:function() { xoops_smallworld('#smallworld_regform1').hide(); }, @@ -83,49 +57,83 @@ // Function to make friend invitations form into ui dialog xoops_smallworld(function() { - if (hasmessages > 0) { - xoops_smallworld('#friendInvitations_box').dialog({ - minWidth: 500, - show: "blind", - hide: "explode", - width: "500px" - }); + if (hasmessages > 0) { + if (xoops_smallworld('#friendInvitations_box').length) { // implies *not* zero + xoops_smallworld('#friendInvitations_box').show(); + xoops_smallworld.fn.colorbox({ + width:"50%", + inline:true, + onCleanup:function() { + xoops_smallworld('#friendInvitations_box').hide(); + }, + href:"#friendInvitations_box" + }); + }; xoops_smallworld('#smallworldrequestlink').live('click',function() { - xoops_smallworld('#friendInvitations_box').dialog( "close" ); + //xoops_smallworld('#friendInvitations_box').dialog( "close" ); + xoops_smallworld.colorbox.close(); }); } }); // Function to make Edit image descriptions form into ui dialog - xoops_smallworld('#smallworld_edit_imageform').dialog({ - minWidth: 800, - show: "blind", - height: 300, - hide: "explode", - width: "600px", - close: function(event, ui) { location.href = 'index.php'; } - }); + xoops_smallworld(document).ready(function(){ + if (xoops_smallworld('#smallworld_edit_imageform').length) { // implies *not* zero + xoops_smallworld('#smallworld_edit_imageform').show(); + xoops_smallworld.fn.colorbox({ + width:"800", + height:"70%", + inline:true, + onCleanup:function() { + xoops_smallworld('#smallworld_edit_imageform').hide(); + }, + onClosed:function() { + location.href = 'index.php'; + }, + href:"#smallworld_edit_imageform" + }); + }; + }); // Function to make File upload form into ui dialog - xoops_smallworld('#file_upload').dialog({ - minWidth: 900, - height: 300, - show: "blind", - hide: "explode", - width: "950px", - close: function(event, ui) { location.href = 'editimages.php'; } - }); + xoops_smallworld(document).ready(function(){ + if (xoops_smallworld('#file_upload').length) { // implies *not* zero + xoops_smallworld('#file_upload').show(); + xoops_smallworld.fn.colorbox({ + width:"auto", + height:"70%", + inline:true, + onCleanup:function() { + xoops_smallworld('#file_upload').hide(); + }, + onClosed:function() { + location.href = 'index.php'; + }, + href:"#file_upload", + onComplete : function() { + xoops_smallworld(this).colorbox.resize(); + } + }); + }; + }); // Function to make Div with id page into ui dialog - xoops_smallworld('div#page').dialog({ - minWidth: "900px", - show: "blind", - hide: "explode", - width: "980px", - close: function(event, ui) { - location.href = 'index.php'; - } - }); + xoops_smallworld(document).ready(function(){ + if (xoops_smallworld('div#page').length) { // implies *not* zero + xoops_smallworld('div#page').show(); + xoops_smallworld.fn.colorbox({ + innerWidth:"1000px", + inline:true, + onCleanup:function() { + xoops_smallworld('div#page').hide(); + }, + onClosed:function() { + location.href = 'index.php'; + }, + href:"div#page" + }); + }; + }); // If user does not have a profile in smallworld then goto register. // If user has already a profile then goto edit profile dialog @@ -189,111 +197,7 @@ titleClick: false }); }); - - xoops_smallworld(function() { - // Attact validation to registeration parts in register form - if (smallworldvalidationstrenght != 0) { - xoops_smallworld("#smallworld_profileform-next-0").hide(); - xoops_smallworld("#smallworld_profileform-next-1").hide(); - - if(xoops_smallworld.inArray('realname',smallworlduseverification) > -1) { - xoops_smallworld("input#realname").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationNameErrorMsg, - }); - } - - if(xoops_smallworld.inArray('gender',smallworlduseverification) > -1) { - xoops_smallworld("select#gender").validate({ - expression: "if (VAL != 0) return true; else return false;", - message: SmallworldValidationGenderErrorMsg - }); - } - - if(xoops_smallworld.inArray('interestedin',smallworlduseverification) > -1) { - xoops_smallworld("#intingender").validate({ - expression: "if (isChecked(SelfID)) return true; else return false;", - message: SmallworldValidationIntingenderErrorMsg - }); - - } - - if(xoops_smallworld.inArray('lookingfor',smallworlduseverification) > -1) { - xoops_smallworld("#searchrelat").validate({ - expression: "if (isChecked(SelfID)) return true; else return false;", - message: SmallworldValidationSearchrelatErrorMsg - }); - } - - if(xoops_smallworld.inArray('emails',smallworlduseverification) > -1) { - xoops_smallworld('input[name="emailtype[]"]').live('blur',function(){ - var id = xoops_smallworld(this).attr('id'); - xoops_smallworld("#"+id).validate({ - expression: "if (VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/)) return true; else return false;", - message:"<img src='images/error.png' title='"+SmallworldValidationEmailTitleErrorMsg+"'/>" - }); - }); - } - - if(xoops_smallworld.inArray('birthday',smallworlduseverification) > -1) { - xoops_smallworld("input[name='birthday']").validate({ - expression: "if (!isValidDate(parseInt(VAL.split('-')[2],10), parseInt(VAL.split('-')[1],10), parseInt(VAL.split('-')[0],10))) return false; else return true;", - message: SmallworldValidationBirthdayErrorMsg - }); - } - - if(xoops_smallworld.inArray('birthplace',smallworlduseverification) > -1) { - xoops_smallworld("#birthplace").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationBirthplaceErrorMsg - }); - } - if(xoops_smallworld.inArray('birthplace',smallworlduseverification) > -1) { - xoops_smallworld("input#adress").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationAdressErrorMsg - }); - } - - if(xoops_smallworld.inArray('presentcity',smallworlduseverification) > -1) { - xoops_smallworld("input#present_city").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationCityErrorMsg - }); - } - - if(xoops_smallworld.inArray('country',smallworlduseverification) > -1) { - xoops_smallworld("input#present_country").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationCountryErrorMsg - }); - } - - - if(xoops_smallworld.inArray('website',smallworlduseverification) > -1) { - xoops_smallworld("textarea#website").validate({ - expression: "if (urlCheck(VAL)) return true; else return false;", - message: SmallworldValidationWebsiteErrorMsg - }); - } - - - // Activation of validations to be filled on initial load - xoops_smallworld('fieldset:visible').find('input,select,textarea').each(function() { - xoops_smallworld(this).blur(); - }); - - } - - if (smallworlduseverification.length !=0) { - xoops_smallworld('#smallworld_profileform-next-0').show(); - xoops_smallworld('#smallworld_profileform-next-1').show(); - } - }); - - - // Attach geolocate autocomplete to forms if (geoL === 1) { xoops_smallworld('#birthplace').geo_autocomplete(); @@ -304,7 +208,7 @@ // Make Textareas elastic xoops_smallworld(function() { - xoops_smallworld('.favourites, .smallworld_edit_desc, .smallworld_comment, #smallworld_update, #smallworld_update_profile').elastic(); + xoops_smallworld('.favourites, .smallworld_comment, #smallworld_update, #smallworld_update_profile').elastic(); }); @@ -476,77 +380,132 @@ image = "<img src ='"+url+"' />"; xoops_smallworld('<div id="lookingglassuseravatar">'+image+'</div>').appendTo('body'); event.preventDefault(); - xoops_smallworld("div#lookingglassuseravatar").dialog({ - width: 'auto', - modal: true, - open: function(event, ui) { - xoops_smallworld('.ui-dialog-titlebar').hide(); - }, - buttons: [{text: "X", click: function() { xoops_smallworld(this).dialog("close"); }}], - close: function(event, ui) { - xoops_smallworld("#lookingglassuseravatar").remove(); - } - }); + if (xoops_smallworld('#lookingglassuseravatar').length) { // implies *not* zero + xoops_smallworld('#lookingglassuseravatar').show(); + xoops_smallworld.fn.colorbox({ + width:"auto", + height:"70%", + inline:true, + onCleanup:function() { + xoops_smallworld('#lookingglassuseravatar').hide(); + }, + onClosed:function() { + xoops_smallworld("#lookingglassuseravatar").remove(); + }, + onComplete : function() { + xoops_smallworld(this).colorbox.resize(); + }, + href:"#lookingglassuseravatar" + }); + }; }); //close click }); // Attach on clik open education & work (..more) dialogues - xoops_smallworld('#_smallworld_workmore').live('click',function(){ - xoops_smallworld('#workfull').dialog({ - minWidth: 400, - show: "blind", - height: 300, - hide: "explode", - width: "450px" - }); - }); + xoops_smallworld('#_smallworld_workmore').live('click',function(){ + if (xoops_smallworld('#workfull').length) { // implies *not* zero + xoops_smallworld('#workfull').show(); + xoops_smallworld.fn.colorbox({ + width:"450", + height:"300", + inline:true, + onCleanup:function() { + xoops_smallworld('#workfull').hide(); + }, + onClosed:function() { + }, + href:"#workfull" + }); + }; + }); // Show educations in dialog when clicked on more xoops_smallworld('#_smallworld_educationmore').live('click',function(){ - xoops_smallworld('#educationfull').dialog({ - minWidth: 400, - show: "blind", - height: 300, - hide: "explode", - width: "450px" - }); + if (xoops_smallworld('#educationfull').length) { // implies *not* zero + xoops_smallworld('#educationfull').show(); + xoops_smallworld.fn.colorbox({ + width:"450", + height:"300", + inline:true, + onCleanup:function() { + xoops_smallworld('#educationfull').hide(); + }, + onClosed:function() { + }, + href:"#educationfull" + }); + }; }); // Show more info in dialog xoops_smallworld('#_SMALLWORLD_MOREINFO').live('click',function(){ - xoops_smallworld('#interestsandmore').dialog({ - minWidth: 300, - show: "blind", - height: 300, - hide: "explode", - width: "600px" - }); + if (xoops_smallworld('#interestsandmore').length) { // implies *not* zero + xoops_smallworld('#interestsandmore').show(); + xoops_smallworld.fn.colorbox({ + width:"600", + height:"300", + inline:true, + onCleanup:function() { + xoops_smallworld('#interestsandmore').hide(); + }, + onClosed:function() { + }, + href:"#interestsandmore" + }); + }; }); - // Display birthplace in a map dialog - xoops_smallworld('#_smallworld_birthplace_maplink').live('click',function(){ - xoops_smallworld('#_smallworld_birthplace_map').dialog({ - minWidth: 550, - show: "blind", - height: 550, - hide: "explode", - width: "550px" - }); - initialize_birthplace(smallworld_birthlng,smallworld_birthlatt); - }); + //Function to show images in birthplace input + xoops_smallworld('#_smallworld_birthplace_maplink').live('click',function(){ + if (xoops_smallworld('#_smallworld_birthplace_map').length) { // implies *not* zero + xoops_smallworld('#_smallworld_birthplace_map').show(); + xoops_smallworld.fn.colorbox({ + innerWidth:"550px", + innerHeight:"550px", + inline:true, + onCleanup:function() { + xoops_smallworld('#_smallworld_birthplace_map').hide(); + }, + onComplete:function() { + initialize_birthplace(smallworld_birthlng,smallworld_birthlatt); + xoops_smallworld('#_smallworld_birthplace_map').show(); + }, + title: function() { + var title = xoops_smallworld("#_smallworld_birthplace_map").attr( 'title' ); + return title != 'undefined' ? title : false; + }, + href:"#_smallworld_birthplace_map", + }); + + }; + }); - // Display Present location in a map dialog + //Function to show images in present location input xoops_smallworld('#_smallworld_present_maplink').live('click',function(){ - xoops_smallworld('#_smallworld_present_map').dialog({ - minWidth: 550, - show: "blind", - height: 550, - hide: "explode", - width: "550px" - }); - initialize_currplace(smallworld_currlng,smallworld_currlatt); - }); - + if (xoops_smallworld('#_smallworld_present_map').length) { // implies *not* zero + xoops_smallworld('#_smallworld_present_map').show(); + xoops_smallworld.fn.colorbox({ + innerWidth:"550px", + innerHeight:"550px", + inline:true, + onCleanup:function() { + xoops_smallworld('#_smallworld_present_map').hide(); + }, + onComplete:function(){ + initialize_currplace(smallworld_currlng,smallworld_currlatt); + xoops_smallworld('#_smallworld_present_map').show(); + }, + title: function() { + var title = xoops_smallworld("#_smallworld_present_map").attr( 'title' ); + return title != 'undefined' ? title : false; + }, + href:"#_smallworld_present_map" + }); + }; + + }); + + // Function to rewrite urls used in xoops core for directing to profile.php // Sets var uname = link text() // removes /userinfo.php?uid=# @@ -570,7 +529,7 @@ containerheight: '50px' }); - + // Return jSon with count of friends smallworld_getCountFriendMessagesEtcJS(); // Sharing bookmarks defines @@ -609,6 +568,7 @@ // Init birthplace_map function initialize_birthplace(smallworld_birthlng,smallworld_birthlatt) { + var birth_myLatlng = new google.maps.LatLng(smallworld_birthlatt, smallworld_birthlng); var birth_myOptions = { zoom: 8, @@ -767,3 +727,106 @@ }); setTimeout('smallworld_getCountFriendMessagesEtcJS()',10000); }; + +function smallworld_DoValStart () { + // Attact validation to registeration parts in register form + if (smallworldvalidationstrenght != 0) { + xoops_smallworld("#smallworld_profileform-next-0").hide(); + xoops_smallworld("#smallworld_profileform-next-1").hide(); + + if(xoops_smallworld.inArray('realname',smallworlduseverification) > -1) { + + xoops_smallworld("input#realname").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationNameErrorMsg, + }); + } + + if(xoops_smallworld.inArray('gender',smallworlduseverification) > -1) { + xoops_smallworld("select#gender").validate({ + expression: "if (VAL != 0) return true; else return false;", + message: SmallworldValidationGenderErrorMsg + }); + } + + if(xoops_smallworld.inArray('interestedin',smallworlduseverification) > -1) { + xoops_smallworld("#intingender").validate({ + expression: "if (isChecked(SelfID)) return true; else return false;", + message: SmallworldValidationIntingenderErrorMsg + }); + + } + + if(xoops_smallworld.inArray('lookingfor',smallworlduseverification) > -1) { + xoops_smallworld("#searchrelat").validate({ + expression: "if (isChecked(SelfID)) return true; else return false;", + message: SmallworldValidationSearchrelatErrorMsg + }); + } + + if(xoops_smallworld.inArray('emails',smallworlduseverification) > -1) { + xoops_smallworld('input[name="emailtype[]"]').live('blur',function(){ + var id = xoops_smallworld(this).attr('id'); + xoops_smallworld("#"+id).validate({ + expression: "if (VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/)) return true; else return false;", + message:"<img src='images/error.png' title='"+SmallworldValidationEmailTitleErrorMsg+"'/>" + }); + }); + } + + if(xoops_smallworld.inArray('birthday',smallworlduseverification) > -1) { + xoops_smallworld("input[name='birthday']").validate({ + expression: "if (!isValidDate(parseInt(VAL.split('-')[2],10), parseInt(VAL.split('-')[1],10), parseInt(VAL.split('-')[0],10))) return false; else return true;", + message: SmallworldValidationBirthdayErrorMsg + }); + } + + if(xoops_smallworld.inArray('birthplace',smallworlduseverification) > -1) { + xoops_smallworld("#birthplace").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationBirthplaceErrorMsg + }); + } + + if(xoops_smallworld.inArray('birthplace',smallworlduseverification) > -1) { + xoops_smallworld("input#adress").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationAdressErrorMsg + }); + } + + if(xoops_smallworld.inArray('presentcity',smallworlduseverification) > -1) { + xoops_smallworld("input#present_city").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationCityErrorMsg + }); + } + + if(xoops_smallworld.inArray('country',smallworlduseverification) > -1) { + xoops_smallworld("input#present_country").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationCountryErrorMsg + }); + } + + + if(xoops_smallworld.inArray('website',smallworlduseverification) > -1) { + xoops_smallworld("textarea#website").validate({ + expression: "if (urlCheck(VAL)) return true; else return false;", + message: SmallworldValidationWebsiteErrorMsg + }); + } + + + // Activation of validations to be filled on initial load + xoops_smallworld('fieldset:visible').find('input,select,textarea').each(function() { + xoops_smallworld(this).blur(); + }); + + } + + if (smallworlduseverification.length !=0) { + xoops_smallworld('#smallworld_profileform-next-0').show(); + xoops_smallworld('#smallworld_profileform-next-1').show(); + } +} \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/language/english/js/variables.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/js/variables.js 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/language/english/js/variables.js 2012-01-25 14:33:36 UTC (rev 8809) @@ -6,6 +6,7 @@ var _smallworldContinueToReg = "Continue to registration"; var _smallworldCancel = "Cancel"; +var _smallworldClose = "close"; var SmallworldGenderError = "Please choose your gender"; var SmallworldBirthdayError = "Please choose your birthday"; Modified: XoopsModules/smallworld/trunk/smallworld/language/english/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -243,7 +243,7 @@ define('_SMALLWORLD_UPLOADDESC','Image description'); define('_SMALLWORLD_UPLOAD_TITLE','Upload images to your image album'); define('_SMALLWORLD_UPLOADTEXT','Start upload'); -define('_SMALLWORLD_UPLOADFILESTEXT','Upload image(s)'); +define('_SMALLWORLD_UPLOADFILESTEXT','Select image(s)'); define('_SMALLWORLD_IMGDESCRIPTION','Image description'); define('_SMALLWORLD_IMGTITLE','Image title'); define('_SMALLWORLD_IMAGE_EDIT_TITLE','Edit descriptions where neded at send'); Modified: XoopsModules/smallworld/trunk/smallworld/userprofile.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-24 21:06:14 UTC (rev 8808) +++ XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-25 14:33:36 UTC (rev 8809) @@ -218,6 +218,8 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/'.$lang.'/js/jquery.countdown.js'); } else { $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/language/english/js/jquery.countdown.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-24 21:06:20
|
Revision: 8808 http://xoops.svn.sourceforge.net/xoops/?rev=8808&view=rev Author: djculex Date: 2012-01-24 21:06:14 +0000 (Tue, 24 Jan 2012) Log Message: ----------- keyword props Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php XoopsModules/smallworld/trunk/smallworld/admin/main.php Property Changed: ---------------- XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php XoopsModules/smallworld/trunk/smallworld/admin/main.php XoopsModules/smallworld/trunk/smallworld/css/colorbox.css XoopsModules/smallworld/trunk/smallworld/images/controlscb.png XoopsModules/smallworld/trunk/smallworld/images/loading_backgroundcb.png XoopsModules/smallworld/trunk/smallworld/images/loadingcb.gif XoopsModules/smallworld/trunk/smallworld/js/jquery.colorbox.js XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.countdown.js XoopsModules/smallworld/trunk/smallworld/language/danish/js/variables.js Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php 2012-01-24 20:59:14 UTC (rev 8807) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php 2012-01-24 21:06:14 UTC (rev 8808) @@ -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/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 $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ include '../../../mainfile.php'; Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/admin_header2.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-24 20:59:14 UTC (rev 8807) +++ XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-24 21:06:14 UTC (rev 8808) @@ -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/div_useradmin.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: div_useradmin.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/div_useradmin.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/main.php 2012-01-24 20:59:14 UTC (rev 8807) +++ XoopsModules/smallworld/trunk/smallworld/admin/main.php 2012-01-24 21:06:14 UTC (rev 8808) @@ -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/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 $ +* @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/main.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/css/colorbox.css ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/images/controlscb.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/images/loading_backgroundcb.png ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/images/loadingcb.gif ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/js/jquery.colorbox.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.countdown.js ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/js/variables.js ___________________________________________________________________ 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: <dj...@us...> - 2012-01-24 20:59:22
|
Revision: 8807 http://xoops.svn.sourceforge.net/xoops/?rev=8807&view=rev Author: djculex Date: 2012-01-24 20:59:14 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php Added: XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-24 20:59:14 UTC (rev 8807) @@ -0,0 +1,68 @@ +<?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/div_useradmin.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: div_useradmin.php 8707 2012-01-13 08:40:50Z djculex $ +**/ + +require_once 'admin_header.php'; +global $xoopsDB, $xoTheme, $xoopsLogger ; +$xoopsLogger->activated = false; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +$Tpl = new XoopsTpl(); +$admin = new SmallworldAdmin(); + +$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(); + $Tpl->append('allusersinspect', $ai); + } + } + $Tpl->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'] = ''; + $Tpl->append('allusersnoinspect', $ani); + } + } + $Tpl->assign('allusersnoinspectcounter',count($ani)); + +$Tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/smallworld_alluserstodiv.html'); +?> \ 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-24 20:28:39
|
Revision: 8806 http://xoops.svn.sourceforge.net/xoops/?rev=8806&view=rev Author: djculex Date: 2012-01-24 20:28:33 +0000 (Tue, 24 Jan 2012) Log Message: ----------- url TO image css adjust Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-24 18:03:49 UTC (rev 8805) +++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-24 20:28:33 UTC (rev 8806) @@ -743,7 +743,7 @@ } .smallworldAttImg{ - margin: 10px 125px 5px 10px; + margin: 2% 50% 0% 0%; max-height:200px; position: relative; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-24 18:04:00
|
Revision: 8805 http://xoops.svn.sourceforge.net/xoops/?rev=8805&view=rev Author: djculex Date: 2012-01-24 18:03:49 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Added: colorbox files Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/css/colorbox.css XoopsModules/smallworld/trunk/smallworld/images/controlscb.png XoopsModules/smallworld/trunk/smallworld/images/loading_backgroundcb.png XoopsModules/smallworld/trunk/smallworld/images/loadingcb.gif XoopsModules/smallworld/trunk/smallworld/js/jquery.colorbox.js XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.countdown.js XoopsModules/smallworld/trunk/smallworld/language/danish/js/variables.js Added: XoopsModules/smallworld/trunk/smallworld/css/colorbox.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/colorbox.css (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/css/colorbox.css 2012-01-24 18:03:49 UTC (rev 8805) @@ -0,0 +1,51 @@ +/* + ColorBox Core Style: + The following CSS is consistent between example themes and should not be altered. +*/ +#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} +#cboxOverlay{position:fixed; width:100%; height:100%;} +#cboxMiddleLeft, #cboxBottomLeft{clear:left;} +#cboxContent{position:relative;} +#cboxLoadedContent{overflow:auto;} +#cboxTitle{margin:0;} +#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;} +#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} +.cboxPhoto{float:left; margin:auto; border:0; display:block;} +.cboxIframe{width:100%; height:100%; display:block; border:0;} + +/* + User Style: + Change the following styles to modify the appearance of ColorBox. They are + ordered & tabbed in a way that represents the nesting of the generated HTML. +*/ +#cboxOverlay{background:#000;} +#colorbox{} + #cboxTopLeft{width:14px; height:14px; background:url(../images/controls.png) no-repeat 0 0;} + #cboxTopCenter{height:14px; background:url(../images/bordercb.png) repeat-x top left;} + #cboxTopRight{width:14px; height:14px; background:url(../images/controlscb.png) no-repeat -36px 0;} + #cboxBottomLeft{width:14px; height:43px; background:url(../images/controlscb.png) no-repeat 0 -32px;} + #cboxBottomCenter{height:43px; background:url(../images/bordercb.png) repeat-x bottom left;} + #cboxBottomRight{width:14px; height:43px; background:url(../images/controlscb.png) no-repeat -36px -32px;} + #cboxMiddleLeft{width:14px; background:url(../images/controlscb.png) repeat-y -175px 0;} + #cboxMiddleRight{width:14px; background:url(../images/controlscb.png) repeat-y -211px 0;} + #cboxContent{background:#fff; overflow:visible;} + .cboxIframe{background:#fff;} + #cboxError{padding:50px; border:1px solid #ccc;} + #cboxLoadedContent{margin-bottom:5px;} + #cboxLoadingOverlay{background:url(../images/loading_backgroundcb.png) no-repeat center center;} + #cboxLoadingGraphic{background:url(../images/loadingcb.gif) no-repeat center center;} + #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;} + #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;} + + #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(../images/controlscb.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;} + #cboxPrevious{left:0px; background-position: -51px -25px;} + #cboxPrevious:hover{background-position:-51px 0px;} + #cboxNext{left:27px; background-position:-75px -25px;} + #cboxNext:hover{background-position:-75px 0px;} + #cboxClose{right:0; background-position:-100px -25px;} + #cboxClose:hover{background-position:-100px 0px;} + + .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;} + .cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;} + .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;} + .cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;} \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/images/controlscb.png =================================================================== (Binary files differ) Property changes on: XoopsModules/smallworld/trunk/smallworld/images/controlscb.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/smallworld/trunk/smallworld/images/loading_backgroundcb.png =================================================================== (Binary files differ) Property changes on: XoopsModules/smallworld/trunk/smallworld/images/loading_backgroundcb.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/smallworld/trunk/smallworld/images/loadingcb.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/smallworld/trunk/smallworld/images/loadingcb.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/smallworld/trunk/smallworld/js/jquery.colorbox.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/js/jquery.colorbox.js (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/js/jquery.colorbox.js 2012-01-24 18:03:49 UTC (rev 8805) @@ -0,0 +1,888 @@ +// ColorBox v1.3.19 - jQuery lightbox plugin +// (c) 2011 Jack Moore - jacklmoore.com +// License: http://www.opensource.org/licenses/mit-license.php +(function ($, document, window) { + var + // Default settings object. + // See http://jacklmoore.com/colorbox for details. + defaults = { + transition: "elastic", + speed: 300, + width: false, + initialWidth: "600", + innerWidth: false, + maxWidth: false, + height: false, + initialHeight: "450", + innerHeight: false, + maxHeight: false, + scalePhotos: true, + scrolling: true, + inline: false, + html: false, + iframe: false, + fastIframe: true, + photo: false, + href: false, + title: false, + rel: false, + opacity: 0.9, + preloading: true, + current: "image {current} of {total}", + previous: "previous", + next: "next", + close: "close", + open: false, + returnFocus: true, + reposition: true, + loop: true, + slideshow: false, + slideshowAuto: true, + slideshowSpeed: 2500, + slideshowStart: "start slideshow", + slideshowStop: "stop slideshow", + onOpen: false, + onLoad: false, + onComplete: false, + onCleanup: false, + onClosed: false, + overlayClose: true, + escKey: true, + arrowKey: true, + top: false, + bottom: false, + left: false, + right: false, + fixed: false, + data: undefined + }, + + // Abstracting the HTML and event identifiers for easy rebranding + colorbox = 'colorbox', + prefix = 'cbox', + boxElement = prefix + 'Element', + + // Events + event_open = prefix + '_open', + event_load = prefix + '_load', + event_complete = prefix + '_complete', + event_cleanup = prefix + '_cleanup', + event_closed = prefix + '_closed', + event_purge = prefix + '_purge', + + // Special Handling for IE + isIE = !$.support.opacity && !$.support.style, // IE7 & IE8 + isIE6 = isIE && !window.XMLHttpRequest, // IE6 + event_ie6 = prefix + '_IE6', + + // Cached jQuery Object Variables + $overlay, + $box, + $wrap, + $content, + $topBorder, + $leftBorder, + $rightBorder, + $bottomBorder, + $related, + $window, + $loaded, + $loadingBay, + $loadingOverlay, + $title, + $current, + $slideshow, + $next, + $prev, + $close, + $groupControls, + + // Variables for cached values or use across multiple functions + settings, + interfaceHeight, + interfaceWidth, + loadedHeight, + loadedWidth, + element, + index, + photo, + open, + active, + closing, + loadingTimer, + publicMethod, + div = "div", + init; + + // **************** + // HELPER FUNCTIONS + // **************** + + // Convience function for creating new jQuery objects + function $tag(tag, id, css) { + var element = document.createElement(tag); + + if (id) { + element.id = prefix + id; + } + + if (css) { + element.style.cssText = css; + } + + return $(element); + } + + // Determine the next and previous members in a group. + function getIndex(increment) { + var + max = $related.length, + newIndex = (index + increment) % max; + + return (newIndex < 0) ? max + newIndex : newIndex; + } + + // Convert '%' and 'px' values to integers + function setSize(size, dimension) { + return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : $window.height()) / 100) : 1) * parseInt(size, 10)); + } + + // Checks an href to see if it is a photo. + // There is a force photo option (photo: true) for hrefs that cannot be matched by this regex. + function isImage(url) { + return settings.photo || /\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(url); + } + + // Assigns function results to their respective properties + function makeSettings() { + var i; + settings = $.extend({}, $.data(element, colorbox)); + + for (i in settings) { + if ($.isFunction(settings[i]) && i.slice(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time. + settings[i] = settings[i].call(element); + } + } + + settings.rel = settings.rel || element.rel || 'nofollow'; + settings.href = settings.href || $(element).attr('href'); + settings.title = settings.title || element.title; + + if (typeof settings.href === "string") { + settings.href = $.trim(settings.href); + } + } + + function trigger(event, callback) { + $.event.trigger(event); + if (callback) { + callback.call(element); + } + } + + // Slideshow functionality + function slideshow() { + var + timeOut, + className = prefix + "Slideshow_", + click = "click." + prefix, + start, + stop, + clear; + + if (settings.slideshow && $related[1]) { + start = function () { + $slideshow + .text(settings.slideshowStop) + .unbind(click) + .bind(event_complete, function () { + if (settings.loop || $related[index + 1]) { + timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed); + } + }) + .bind(event_load, function () { + clearTimeout(timeOut); + }) + .one(click + ' ' + event_cleanup, stop); + $box.removeClass(className + "off").addClass(className + "on"); + timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed); + }; + + stop = function () { + clearTimeout(timeOut); + $slideshow + .text(settings.slideshowStart) + .unbind([event_complete, event_load, event_cleanup, click].join(' ')) + .one(click, function () { + publicMethod.next(); + start(); + }); + $box.removeClass(className + "on").addClass(className + "off"); + }; + + if (settings.slideshowAuto) { + start(); + } else { + stop(); + } + } else { + $box.removeClass(className + "off " + className + "on"); + } + } + + function launch(target) { + if (!closing) { + + element = target; + + makeSettings(); + + $related = $(element); + + index = 0; + + if (settings.rel !== 'nofollow') { + $related = $('.' + boxElement).filter(function () { + var relRelated = $.data(this, colorbox).rel || this.rel; + return (relRelated === settings.rel); + }); + index = $related.index(element); + + // Check direct calls to ColorBox. + if (index === -1) { + $related = $related.add(element); + index = $related.length - 1; + } + } + + if (!open) { + open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys. + + $box.show(); + + if (settings.returnFocus) { + $(element).blur().one(event_closed, function () { + $(this).focus(); + }); + } + + // +settings.opacity avoids a problem in IE when using non-zero-prefixed-string-values, like '.5' + $overlay.css({"opacity": +settings.opacity, "cursor": settings.overlayClose ? "pointer" : "auto"}).show(); + + // Opens inital empty ColorBox prior to content being loaded. + settings.w = setSize(settings.initialWidth, 'x'); + settings.h = setSize(settings.initialHeight, 'y'); + publicMethod.position(); + + if (isIE6) { + $window.bind('resize.' + event_ie6 + ' scroll.' + event_ie6, function () { + $overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()}); + }).trigger('resize.' + event_ie6); + } + + trigger(event_open, settings.onOpen); + + $groupControls.add($title).hide(); + + $close.html(settings.close).show(); + } + + publicMethod.load(true); + } + } + + // ColorBox's markup needs to be added to the DOM prior to being called + // so that the browser will go ahead and load the CSS background images. + function appendHTML() { + if (!$box && document.body) { + init = false; + + $window = $(window); + $box = $tag(div).attr({id: colorbox, 'class': isIE ? prefix + (isIE6 ? 'IE6' : 'IE') : ''}).hide(); + $overlay = $tag(div, "Overlay", isIE6 ? 'position:absolute' : '').hide(); + $wrap = $tag(div, "Wrapper"); + $content = $tag(div, "Content").append( + $loaded = $tag(div, "LoadedContent", 'width:0; height:0; overflow:hidden'), + $loadingOverlay = $tag(div, "LoadingOverlay").add($tag(div, "LoadingGraphic")), + $title = $tag(div, "Title"), + $current = $tag(div, "Current"), + $next = $tag(div, "Next"), + $prev = $tag(div, "Previous"), + $slideshow = $tag(div, "Slideshow").bind(event_open, slideshow), + $close = $tag(div, "Close") + ); + + $wrap.append( // The 3x3 Grid that makes up ColorBox + $tag(div).append( + $tag(div, "TopLeft"), + $topBorder = $tag(div, "TopCenter"), + $tag(div, "TopRight") + ), + $tag(div, false, 'clear:left').append( + $leftBorder = $tag(div, "MiddleLeft"), + $content, + $rightBorder = $tag(div, "MiddleRight") + ), + $tag(div, false, 'clear:left').append( + $tag(div, "BottomLeft"), + $bottomBorder = $tag(div, "BottomCenter"), + $tag(div, "BottomRight") + ) + ).find('div div').css({'float': 'left'}); + + $loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none'); + + $groupControls = $next.add($prev).add($current).add($slideshow); + + $(document.body).append($overlay, $box.append($wrap, $loadingBay)); + } + } + + // Add ColorBox's event bindings + function addBindings() { + if ($box) { + if (!init) { + init = true; + + // Cache values needed for size calculations + interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();//Subtraction needed for IE6 + interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width(); + loadedHeight = $loaded.outerHeight(true); + loadedWidth = $loaded.outerWidth(true); + + // Setting padding to remove the need to do size conversions during the animation step. + $box.css({"padding-bottom": interfaceHeight, "padding-right": interfaceWidth}); + + // Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly. + $next.click(function () { + publicMethod.next(); + }); + $prev.click(function () { + publicMethod.prev(); + }); + $close.click(function () { + publicMethod.close(); + }); + $overlay.click(function () { + if (settings.overlayClose) { + publicMethod.close(); + } + }); + + // Key Bindings + $(document).bind('keydown.' + prefix, function (e) { + var key = e.keyCode; + if (open && settings.escKey && key === 27) { + e.preventDefault(); + publicMethod.close(); + } + if (open && settings.arrowKey && $related[1]) { + if (key === 37) { + e.preventDefault(); + $prev.click(); + } else if (key === 39) { + e.preventDefault(); + $next.click(); + } + } + }); + + $('.' + boxElement, document).live('click', function (e) { + // ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt. + // See: http://jacklmoore.com/notes/click-events/ + if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey)) { + e.preventDefault(); + launch(this); + } + }); + } + return true; + } + return false; + } + + // Don't do anything if ColorBox already exists. + if ($.colorbox) { + return; + } + + // Append the HTML when the DOM loads + $(appendHTML); + + + // **************** + // PUBLIC FUNCTIONS + // Usage format: $.fn.colorbox.close(); + // Usage from within an iframe: parent.$.fn.colorbox.close(); + // **************** + + publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) { + var $this = this; + + options = options || {}; + + appendHTML(); + + if (addBindings()) { + if (!$this[0]) { + if ($this.selector) { // if a selector was given and it didn't match any elements, go ahead and exit. + return $this; + } + // if no selector was given (ie. $.colorbox()), create a temporary element to work with + $this = $('<a/>'); + options.open = true; // assume an immediate open + } + + if (callback) { + options.onComplete = callback; + } + + $this.each(function () { + $.data(this, colorbox, $.extend({}, $.data(this, colorbox) || defaults, options)); + }).addClass(boxElement); + + if (($.isFunction(options.open) && options.open.call($this)) || options.open) { + launch($this[0]); + } + } + + return $this; + }; + + publicMethod.position = function (speed, loadedCallback) { + var + top = 0, + left = 0, + offset = $box.offset(), + scrollTop = $window.scrollTop(), + scrollLeft = $window.scrollLeft(); + + $window.unbind('resize.' + prefix); + + // remove the modal so that it doesn't influence the document width/height + $box.css({top: -9e4, left: -9e4}); + + if (settings.fixed && !isIE6) { + offset.top -= scrollTop; + offset.left -= scrollLeft; + $box.css({position: 'fixed'}); + } else { + top = scrollTop; + left = scrollLeft; + $box.css({position: 'absolute'}); + } + + // keeps the top and left positions within the browser's viewport. + if (settings.right !== false) { + left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.right, 'x'), 0); + } else if (settings.left !== false) { + left += setSize(settings.left, 'x'); + } else { + left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2); + } + + if (settings.bottom !== false) { + top += Math.max($window.height() - settings.h - loadedHeight - interfaceHeight - setSize(settings.bottom, 'y'), 0); + } else if (settings.top !== false) { + top += setSize(settings.top, 'y'); + } else { + top += Math.round(Math.max($window.height() - settings.h - loadedHeight - interfaceHeight, 0) / 2); + } + + $box.css({top: offset.top, left: offset.left}); + + // setting the speed to 0 to reduce the delay between same-sized content. + speed = ($box.width() === settings.w + loadedWidth && $box.height() === settings.h + loadedHeight) ? 0 : speed || 0; + + // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly, + // but it has to be shrank down around the size of div#colorbox when it's done. If not, + // it can invoke an obscure IE bug when using iframes. + $wrap[0].style.width = $wrap[0].style.height = "9999px"; + + function modalDimensions(that) { + $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = that.style.width; + $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = that.style.height; + } + + $box.dequeue().animate({width: settings.w + loadedWidth, height: settings.h + loadedHeight, top: top, left: left}, { + duration: speed, + complete: function () { + modalDimensions(this); + + active = false; + + // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation. + $wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px"; + $wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px"; + + if (settings.reposition) { + setTimeout(function () { // small delay before binding onresize due to an IE8 bug. + $window.bind('resize.' + prefix, publicMethod.position); + }, 1); + } + + if (loadedCallback) { + loadedCallback(); + } + }, + step: function () { + modalDimensions(this); + } + }); + }; + + publicMethod.resize = function (options) { + if (open) { + options = options || {}; + + if (options.width) { + settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth; + } + if (options.innerWidth) { + settings.w = setSize(options.innerWidth, 'x'); + } + $loaded.css({width: settings.w}); + + if (options.height) { + settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight; + } + if (options.innerHeight) { + settings.h = setSize(options.innerHeight, 'y'); + } + if (!options.innerHeight && !options.height) { + $loaded.css({height: "auto"}); + settings.h = $loaded.height(); + } + $loaded.css({height: settings.h}); + + publicMethod.position(settings.transition === "none" ? 0 : settings.speed); + } + }; + + publicMethod.prep = function (object) { + if (!open) { + return; + } + + var callback, speed = settings.transition === "none" ? 0 : settings.speed; + + $loaded.remove(); + $loaded = $tag(div, 'LoadedContent').append(object); + + function getWidth() { + settings.w = settings.w || $loaded.width(); + settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w; + return settings.w; + } + function getHeight() { + settings.h = settings.h || $loaded.height(); + settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h; + return settings.h; + } + + $loaded.hide() + .appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations. + .css({width: getWidth(), overflow: settings.scrolling ? 'auto' : 'hidden'}) + .css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height. + .prependTo($content); + + $loadingBay.hide(); + + // floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width. + //$(photo).css({'float': 'none', marginLeft: 'auto', marginRight: 'auto'}); + + $(photo).css({'float': 'none'}); + + // Hides SELECT elements in IE6 because they would otherwise sit on top of the overlay. + if (isIE6) { + $('select').not($box.find('select')).filter(function () { + return this.style.visibility !== 'hidden'; + }).css({'visibility': 'hidden'}).one(event_cleanup, function () { + this.style.visibility = 'inherit'; + }); + } + + callback = function () { + var preload, i, total = $related.length, iframe, frameBorder = 'frameBorder', allowTransparency = 'allowTransparency', complete, src, img; + + if (!open) { + return; + } + + function removeFilter() { + if (isIE) { + $box[0].style.removeAttribute('filter'); + } + } + + complete = function () { + clearTimeout(loadingTimer); + $loadingOverlay.hide(); + trigger(event_complete, settings.onComplete); + }; + + if (isIE) { + //This fadeIn helps the bicubic resampling to kick-in. + if (photo) { + $loaded.fadeIn(100); + } + } + + $title.html(settings.title).add($loaded).show(); + + if (total > 1) { // handle grouping + if (typeof settings.current === "string") { + $current.html(settings.current.replace('{current}', index + 1).replace('{total}', total)).show(); + } + + $next[(settings.loop || index < total - 1) ? "show" : "hide"]().html(settings.next); + $prev[(settings.loop || index) ? "show" : "hide"]().html(settings.previous); + + if (settings.slideshow) { + $slideshow.show(); + } + + // Preloads images within a rel group + if (settings.preloading) { + preload = [ + getIndex(-1), + getIndex(1) + ]; + while (i = $related[preload.pop()]) { + src = $.data(i, colorbox).href || i.href; + if ($.isFunction(src)) { + src = src.call(i); + } + if (isImage(src)) { + img = new Image(); + img.src = src; + } + } + } + } else { + $groupControls.hide(); + } + + if (settings.iframe) { + iframe = $tag('iframe')[0]; + + if (frameBorder in iframe) { + iframe[frameBorder] = 0; + } + if (allowTransparency in iframe) { + iframe[allowTransparency] = "true"; + } + // give the iframe a unique name to prevent caching + iframe.name = prefix + (+new Date()); + if (settings.fastIframe) { + complete(); + } else { + $(iframe).one('load', complete); + } + iframe.src = settings.href; + if (!settings.scrolling) { + iframe.scrolling = "no"; + } + $(iframe).addClass(prefix + 'Iframe').appendTo($loaded).one(event_purge, function () { + iframe.src = "//about:blank"; + }); + } else { + complete(); + } + + if (settings.transition === 'fade') { + $box.fadeTo(speed, 1, removeFilter); + } else { + removeFilter(); + } + }; + + if (settings.transition === 'fade') { + $box.fadeTo(speed, 0, function () { + publicMethod.position(0, callback); + }); + } else { + publicMethod.position(speed, callback); + } + }; + + publicMethod.load = function (launched) { + var href, setResize, prep = publicMethod.prep; + + active = true; + + photo = false; + + element = $related[index]; + + if (!launched) { + makeSettings(); + } + + trigger(event_purge); + + trigger(event_load, settings.onLoad); + + settings.h = settings.height ? + setSize(settings.height, 'y') - loadedHeight - interfaceHeight : + settings.innerHeight && setSize(settings.innerHeight, 'y'); + + settings.w = settings.width ? + setSize(settings.width, 'x') - loadedWidth - interfaceWidth : + settings.innerWidth && setSize(settings.innerWidth, 'x'); + + // Sets the minimum dimensions for use in image scaling + settings.mw = settings.w; + settings.mh = settings.h; + + // Re-evaluate the minimum width and height based on maxWidth and maxHeight values. + // If the width or height exceed the maxWidth or maxHeight, use the maximum values instead. + if (settings.maxWidth) { + settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth; + settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw; + } + if (settings.maxHeight) { + settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight; + settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh; + } + + href = settings.href; + + loadingTimer = setTimeout(function () { + $loadingOverlay.show(); + }, 100); + + if (settings.inline) { + // Inserts an empty placeholder where inline content is being pulled from. + // An event is bound to put inline content back when ColorBox closes or loads new content. + $tag(div).hide().insertBefore($(href)[0]).one(event_purge, function () { + $(this).replaceWith($loaded.children()); + }); + prep($(href)); + } else if (settings.iframe) { + // IFrame element won't be added to the DOM until it is ready to be displayed, + // to avoid problems with DOM-ready JS that might be trying to run in that iframe. + prep(" "); + } else if (settings.html) { + prep(settings.html); + } else if (isImage(href)) { + $(photo = new Image()) + .addClass(prefix + 'Photo') + .error(function () { + settings.title = false; + prep($tag(div, 'Error').text('This image could not be loaded')); + }) + .load(function () { + var percent; + photo.onload = null; //stops animated gifs from firing the onload repeatedly. + + if (settings.scalePhotos) { + setResize = function () { + photo.height -= photo.height * percent; + photo.width -= photo.width * percent; + }; + if (settings.mw && photo.width > settings.mw) { + percent = (photo.width - settings.mw) / photo.width; + setResize(); + } + if (settings.mh && photo.height > settings.mh) { + percent = (photo.height - settings.mh) / photo.height; + setResize(); + } + } + + if (settings.h) { + photo.style.marginTop = Math.max(settings.h - photo.height, 0) / 2 + 'px'; + } + + if ($related[1] && (settings.loop || $related[index + 1])) { + photo.style.cursor = 'pointer'; + photo.onclick = function () { + publicMethod.next(); + }; + } + + if (isIE) { + photo.style.msInterpolationMode = 'bicubic'; + } + + setTimeout(function () { // A pause because Chrome will sometimes report a 0 by 0 size otherwise. + prep(photo); + }, 1); + }); + + setTimeout(function () { // A pause because Opera 10.6+ will sometimes not run the onload function otherwise. + photo.src = href; + }, 1); + } else if (href) { + $loadingBay.load(href, settings.data, function (data, status, xhr) { + prep(status === 'error' ? $tag(div, 'Error').text('Request unsuccessful: ' + xhr.statusText) : $(this).contents()); + }); + } + }; + + // Navigates to the next page/image in a set. + publicMethod.next = function () { + if (!active && $related[1] && (settings.loop || $related[index + 1])) { + index = getIndex(1); + publicMethod.load(); + } + }; + + publicMethod.prev = function () { + if (!active && $related[1] && (settings.loop || index)) { + index = getIndex(-1); + publicMethod.load(); + } + }; + + // Note: to use this within an iframe use the following format: parent.$.fn.colorbox.close(); + publicMethod.close = function () { + if (open && !closing) { + + closing = true; + + open = false; + + trigger(event_cleanup, settings.onCleanup); + + $window.unbind('.' + prefix + ' .' + event_ie6); + + $overlay.fadeTo(200, 0); + + $box.stop().fadeTo(300, 0, function () { + + $box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide(); + + trigger(event_purge); + + $loaded.remove(); + + setTimeout(function () { + closing = false; + trigger(event_closed, settings.onClosed); + }, 1); + }); + } + }; + + // Removes changes ColorBox made to the document, but does not remove the plugin + // from jQuery. + publicMethod.remove = function () { + $([]).add($box).add($overlay).remove(); + $box = null; + $('.' + boxElement) + .removeData(colorbox) + .removeClass(boxElement) + .die(); + }; + + // A method for fetching the current element ColorBox is referencing. + // returns a jQuery object. + publicMethod.element = function () { + return $(element); + }; + + publicMethod.settings = defaults; + +}(jQuery, document, this)); \ No newline at end of file Added: XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.countdown.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.countdown.js (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/js/jquery.countdown.js 2012-01-24 18:03:49 UTC (rev 8805) @@ -0,0 +1,15 @@ +/* http://keith-wood.name/countdown.html + Countdown for jQuery v1.5.10. + Written by Keith Wood (kbwood{at}iinet.com.au) January 2008. + Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and + MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. + Please attribute the author if you use it. */ +(function(xoops_smallworld) { + xoops_smallworld.countdown.regional[''] = { + labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'], + labels1: ['Year', 'Month', 'Week', 'Day', 'Hour', 'Minute', 'Second'], + compactLabels: ['y', 'm', 'w', 'd','hrs', 'min', 'sec'], // The compact texts for the counters + whichLabels: null, + timeSeparator: ':', isRTL: false}; + xoops_smallworld.countdown.setDefaults(xoops_smallworld.countdown.regional['']); +})(jQuery); Added: XoopsModules/smallworld/trunk/smallworld/language/danish/js/variables.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/js/variables.js (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/js/variables.js 2012-01-24 18:03:49 UTC (rev 8805) @@ -0,0 +1,50 @@ +// Various language codes to be included in header + +var language = 'en'; +var countryshort = 'gb'; +var countrylong = 'england'; + +var _smallworldContinueToReg = "Continue to registration"; +var _smallworldCancel = "Cancel"; + +var SmallworldGenderError = "Please choose your gender"; +var SmallworldBirthdayError = "Please choose your birthday"; +var SmallworldEmailError = "Please fill at least one email"; + +var SmallworldSavedSuccesMsg = "Saved with success"; + +var SmallworldConfirmBtnFI = "Are you sure ?"; +var SmallworldConfirmBtnYes = 'Yes!'; +var SmallworldConfirmBtnNo = 'No!'; + +var smallworldNewMessages = "You have new events +"; +var smallworldDeletedMessages = "Messages have been deleted. Count is now -"; + +//Validation +var SmallworldValidationBackButton = "Backward"; // back button +var SmallworldValidationForwardButton = "Forward"; // Forward button +var SmallworldValidationNameErrorMsg = "Please write your name"; // Real name field +var SmallworldValidationGenderErrorMsg = "Please choose valid gender"; // Choose gender +var SmallworldValidationIntingenderErrorMsg = "Please check at least one. Default is 'none'"; // Interested in gender +var SmallworldValidationSearchrelatErrorMsg = "Please check at least one. Default is 'Friends'"; // Searching for +var SmallworldValidationBirthdayErrorMsg = "Please enter a valid Date"; // Birthday +var SmallworldValidationEmailTitleErrorMsg = "Invalid email format";// Emailtype image title +var SmallworldValidationBirthplaceErrorMsg = "Please enter birthplace"; // Birthplace +var SmallworldValidationAdressErrorMsg = "Please enter street adress"; // Adress +var SmallworldValidationCityErrorMsg = "Please enter city"; // City +var SmallworldValidationCountryErrorMsg = "Please enter country"; // country +var SmallworldValidationWebsiteErrorMsg = "Please enter your website"; // Website +var SmallworldSureDelete = "Sure you want to delete this update? There is NO undo!"; // Delete comments +var SmallworldAdminSureDeleteUser = "Are you sure you want to delete user "; //Admin delete user +var SmallworldDialogStatsTitle = "Statistics"; // Title for statistic dialog window +// Languages for jquery confirm box +var args = { + 'confirm' : false, // Ok and Cancel buttons + 'verify' : true, // Yes and No buttons + 'input' : false, // Text input (can be true or string for default text) + 'animate' : true, // Groovy animation (can true or number, default is 400) + 'textOk' : 'Okay', // Ok button default text + 'textCancel' : 'Cancel', // Cancel button default text + 'textYes' : 'Yes!', // Yes button default text + 'textNo' : 'No!' // No button default text + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-24 18:03:21
|
Revision: 8804 http://xoops.svn.sourceforge.net/xoops/?rev=8804&view=rev Author: djculex Date: 2012-01-24 18:03:10 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Added: Colorbox implimentation for more cool register dialog box Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/editprofile.php XoopsModules/smallworld/trunk/smallworld/js/smallworld.js XoopsModules/smallworld/trunk/smallworld/register.php Modified: XoopsModules/smallworld/trunk/smallworld/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/editprofile.php 2012-01-24 17:24:54 UTC (rev 8803) +++ XoopsModules/smallworld/trunk/smallworld/editprofile.php 2012-01-24 18:03:10 UTC (rev 8804) @@ -24,7 +24,7 @@ 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; +global $xoopsUser,$xoopsTpl,$xoopsDB, $xoTheme; if ($xoopsUser) { $id = $xoopsUser->getVar('uid'); @@ -315,6 +315,9 @@ $xoopsTpl->append('smallworld_register_title',_SMALLWORLD_REGRISTATION_TITLE); $xoopsTpl->assign('smallworld_beforesubmit',_SMALLWORLD_TEXTBEFORESUBMIT); $xoopsTpl->assign('smallworld_save',_SMALLWORLD_SUBMIT); + + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } } else { redirect_header("register.php", 1); Modified: XoopsModules/smallworld/trunk/smallworld/js/smallworld.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-24 17:24:54 UTC (rev 8803) +++ XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-24 18:03:10 UTC (rev 8804) @@ -60,6 +60,26 @@ location.href = 'index.php'; } }); + + // Attach colorbox.js to selector in register.php and edit_profile.php + // If other page / no presence of #smallworld_regform1 then exit function and continue + xoops_smallworld(document).ready(function(){ + if (xoops_smallworld('#smallworld_regform1').length) { // implies *not* zero + xoops_smallworld('#smallworld_regform1').show(); + xoops_smallworld.fn.colorbox({ + width:"auto", + height:"70%", + inline:true, + onCleanup:function() { + xoops_smallworld('#smallworld_regform1').hide(); + }, + onClosed:function() { + location.href = 'index.php'; + }, + href:"#smallworld_regform1" + }); + }; + }); // Function to make friend invitations form into ui dialog xoops_smallworld(function() { Modified: XoopsModules/smallworld/trunk/smallworld/register.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/register.php 2012-01-24 17:24:54 UTC (rev 8803) +++ XoopsModules/smallworld/trunk/smallworld/register.php 2012-01-24 18:03:10 UTC (rev 8804) @@ -25,7 +25,7 @@ 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; +global $xoopsUser,$xoopsTpl,$xoTheme; if ($xoopsUser) { $id = $xoopsUser->getVar('uid'); @@ -287,6 +287,9 @@ $xoopsTpl->append('smallworld_register_title',_SMALLWORLD_REGRISTATION_TITLE); $xoopsTpl->assign('smallworld_beforesubmit',_SMALLWORLD_TEXTBEFORESUBMIT); $xoopsTpl->assign('smallworld_save',_SMALLWORLD_SUBMIT); + + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); } } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-24 17:25:04
|
Revision: 8803 http://xoops.svn.sourceforge.net/xoops/?rev=8803&view=rev Author: djculex Date: 2012-01-24 17:24:54 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Changed header to include frameworks moduleAdmin Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-24 16:49:01 UTC (rev 8802) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-24 17:24:54 UTC (rev 8803) @@ -31,8 +31,8 @@ $pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); $pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); -if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) { - include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); +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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-24 16:49:12
|
Revision: 8802 http://xoops.svn.sourceforge.net/xoops/?rev=8802&view=rev Author: djculex Date: 2012-01-24 16:49:01 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Trolls stole code changes... bringing back verification php array to javascript array Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js XoopsModules/smallworld/trunk/smallworld/preloads/core.php Modified: XoopsModules/smallworld/trunk/smallworld/js/smallworld.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-24 09:17:26 UTC (rev 8801) +++ XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-24 16:49:01 UTC (rev 8802) @@ -172,72 +172,105 @@ xoops_smallworld(function() { // Attact validation to registeration parts in register form - if (smallworldvalidationstrenght != 0) { + if (smallworldvalidationstrenght != 0) { xoops_smallworld("#smallworld_profileform-next-0").hide(); xoops_smallworld("#smallworld_profileform-next-1").hide(); + + if(xoops_smallworld.inArray('realname',smallworlduseverification) > -1) { + xoops_smallworld("input#realname").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationNameErrorMsg, + }); + } + + if(xoops_smallworld.inArray('gender',smallworlduseverification) > -1) { + xoops_smallworld("select#gender").validate({ + expression: "if (VAL != 0) return true; else return false;", + message: SmallworldValidationGenderErrorMsg + }); + } + + if(xoops_smallworld.inArray('interestedin',smallworlduseverification) > -1) { + xoops_smallworld("#intingender").validate({ + expression: "if (isChecked(SelfID)) return true; else return false;", + message: SmallworldValidationIntingenderErrorMsg + }); + + } + + if(xoops_smallworld.inArray('lookingfor',smallworlduseverification) > -1) { + xoops_smallworld("#searchrelat").validate({ + expression: "if (isChecked(SelfID)) return true; else return false;", + message: SmallworldValidationSearchrelatErrorMsg + }); + } + + if(xoops_smallworld.inArray('emails',smallworlduseverification) > -1) { + xoops_smallworld('input[name="emailtype[]"]').live('blur',function(){ + var id = xoops_smallworld(this).attr('id'); + xoops_smallworld("#"+id).validate({ + expression: "if (VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/)) return true; else return false;", + message:"<img src='images/error.png' title='"+SmallworldValidationEmailTitleErrorMsg+"'/>" + }); + }); + } + + if(xoops_smallworld.inArray('birthday',smallworlduseverification) > -1) { + xoops_smallworld("input[name='birthday']").validate({ + expression: "if (!isValidDate(parseInt(VAL.split('-')[2],10), parseInt(VAL.split('-')[1],10), parseInt(VAL.split('-')[0],10))) return false; else return true;", + message: SmallworldValidationBirthdayErrorMsg + }); + } + + if(xoops_smallworld.inArray('birthplace',smallworlduseverification) > -1) { + xoops_smallworld("#birthplace").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationBirthplaceErrorMsg + }); + } - xoops_smallworld("input#realname").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationNameErrorMsg, - }); + if(xoops_smallworld.inArray('birthplace',smallworlduseverification) > -1) { + xoops_smallworld("input#adress").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationAdressErrorMsg + }); + } - xoops_smallworld("select#gender").validate({ - expression: "if (VAL != 0) return true; else return false;", - message: SmallworldValidationGenderErrorMsg - }); + if(xoops_smallworld.inArray('presentcity',smallworlduseverification) > -1) { + xoops_smallworld("input#present_city").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationCityErrorMsg + }); + } - xoops_smallworld("#intingender").validate({ - expression: "if (isChecked(SelfID)) return true; else return false;", - message: SmallworldValidationIntingenderErrorMsg - }); + if(xoops_smallworld.inArray('country',smallworlduseverification) > -1) { + xoops_smallworld("input#present_country").validate({ + expression: "if (VAL) return true; else return false;", + message: SmallworldValidationCountryErrorMsg + }); + } - xoops_smallworld("#searchrelat").validate({ - expression: "if (isChecked(SelfID)) return true; else return false;", - message: SmallworldValidationSearchrelatErrorMsg - }); - xoops_smallworld('input[name="emailtype[]"]').live('blur',function(){ - var id = xoops_smallworld(this).attr('id'); - xoops_smallworld("#"+id).validate({ - expression: "if (VAL.match(/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$/)) return true; else return false;", - message:"<img src='images/error.png' title='"+SmallworldValidationEmailTitleErrorMsg+"'/>" + if(xoops_smallworld.inArray('website',smallworlduseverification) > -1) { + xoops_smallworld("textarea#website").validate({ + expression: "if (urlCheck(VAL)) return true; else return false;", + message: SmallworldValidationWebsiteErrorMsg }); - }); + } - xoops_smallworld("input[name='birthday']").validate({ - expression: "if (!isValidDate(parseInt(VAL.split('-')[2],10), parseInt(VAL.split('-')[1],10), parseInt(VAL.split('-')[0],10))) return false; else return true;", - message: SmallworldValidationBirthdayErrorMsg - }); - xoops_smallworld("#birthplace").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationBirthplaceErrorMsg - }); - - xoops_smallworld("input#adress").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationAdressErrorMsg - }); - xoops_smallworld("input#present_city").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationCityErrorMsg - }); - xoops_smallworld("input#present_country").validate({ - expression: "if (VAL) return true; else return false;", - message: SmallworldValidationCountryErrorMsg - }); - xoops_smallworld("textarea#website").validate({ - expression: "if (urlCheck(VAL)) return true; else return false;", - message: SmallworldValidationWebsiteErrorMsg - }); - // Activation of validations to be filled on initial load xoops_smallworld('fieldset:visible').find('input,select,textarea').each(function() { xoops_smallworld(this).blur(); - }); + }); } - }); + + if (smallworlduseverification.length !=0) { + xoops_smallworld('#smallworld_profileform-next-0').show(); + xoops_smallworld('#smallworld_profileform-next-1').show(); + } + }); Modified: XoopsModules/smallworld/trunk/smallworld/preloads/core.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/preloads/core.php 2012-01-24 09:17:26 UTC (rev 8801) +++ XoopsModules/smallworld/trunk/smallworld/preloads/core.php 2012-01-24 16:49:01 UTC (rev 8802) @@ -65,8 +65,9 @@ // Check to see if smallworld should use username links to point to default xoops or smallworld $takeoverlinks = $moduleConfig['takeoveruserlinks']; $fieldstoshow = array_flip(smallworld_GetModuleOption('smallworldusethesefields', $repmodule='smallworld')); - $useverification = array_flip(smallworld_GetModuleOption('smallworldmandatoryfields', $repmodule='smallworld')); + $useverification = smallworld_GetModuleOption('smallworldmandatoryfields', $repmodule='smallworld'); $smallworldUV = implode(',', $useverification); + //echo var_dump($smallworldUV); // Get users messages count based on users followerArray $getUserMsgNum = smallworld_getCountFriendMessagesEtc (); @@ -81,7 +82,9 @@ var smallworldTakeOverLinks = $takeoverlinks; var geoL = $geolocate; var geocomplete = ''; - var smallworlduseverification = new Array($smallworldUV); + var smallworldVerString = "$smallworldUV"; + var smallworlduseverification = new Array(); + smallworlduseverification = smallworldVerString.split(","); var hasmessages = $count_invit; var smallworldvalidationstrenght = $validate; var smallworld_getFriendsMsgComCount = $getUserMsgNum; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-01-24 09:17:32
|
Revision: 8801 http://xoops.svn.sourceforge.net/xoops/?rev=8801&view=rev Author: beckmi Date: 2012-01-24 09:17:26 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Adding Copyright file. Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/docs/copyright.txt Added: XoopsCore/branches/2.6.x/2.6.0/docs/copyright.txt =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/docs/copyright.txt (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/docs/copyright.txt 2012-01-24 09:17:26 UTC (rev 8801) @@ -0,0 +1,20 @@ + +All XOOPS code is Copyright 2001 - 2012 by XOOPS Project (http://sf.net/projects/xoops/) + +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 as the file LICENSE.txt; if not, please see +http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. + +XOOPS includes works under other copyright notices and distributed +according to the terms of the GNU General Public License or a compatible +license. \ 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: <be...@us...> - 2012-01-24 02:47:13
|
Revision: 8800 http://xoops.svn.sourceforge.net/xoops/?rev=8800&view=rev Author: beckmi Date: 2012-01-24 02:47:07 +0000 (Tue, 24 Jan 2012) Log Message: ----------- - fixing cURL problem in adminclass.php - code clean-up Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php XoopsModules/smallworld/trunk/smallworld/admin/index.php XoopsModules/smallworld/trunk/smallworld/class/adminclass.php Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-23 20:38:11 UTC (rev 8799) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-24 02:47:07 UTC (rev 8800) @@ -28,18 +28,15 @@ global $xoopsModule; $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'); +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); +if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) { + include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); } 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())) { Modified: XoopsModules/smallworld/trunk/smallworld/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-23 20:38:11 UTC (rev 8799) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-24 02:47:07 UTC (rev 8800) @@ -20,13 +20,13 @@ **/ -//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(); global $xoTheme; -$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/css/SmallworldAdmin.css'); -$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); +$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/css/SmallworldAdmin.css'); +$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); $indexAdmin = new ModuleAdmin(); @@ -51,10 +51,8 @@ $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) @@ -82,7 +80,6 @@ } else { $maAllround = 0; } - // Find list of most active users (24 hours) $maToday = $admin->mostactiveusers_today(); if (!empty($maToday)) { @@ -107,7 +104,6 @@ } else { $mat = 0; } - // FInd list of best rated users overall $topusers = $admin->topratedusers('up'); if (!empty($topusers)){ @@ -158,17 +154,8 @@ $low = 0; } - - //----------------------- -// 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 (); - // template assignments $xoopsTpl->assign('lang_moduleinfo', _AM_SMALLWORLD_MODULEINFO); $xoopsTpl->assign('lang_installversion', _AM_SMALLWORLD_MODULEINSTALL); @@ -187,7 +174,6 @@ $indexAdmin->addInfoBoxLine(_AM_SMALLWORLD_MODULEINFO, "<class='smallworldadmin'>"._AM_SMALLWORLD_INSTALLDATE.": %s",$installdate,'Green','default'); $indexAdmin->addInfoBoxLine(_AM_SMALLWORLD_MODULEINFO, "<class='smallworldadmin'>"."%s",$installCheck,'Green','default'); - $indexAdmin->addInfoBox(_AM_SMALLWORLD_USERSTATS); $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<class='smallworldadmin'>"._AM_SMALLWORLD_DATEOFFIRSTMESSAGE." : %s</br>",$dateoffirstmessage,'Green','default'); $indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<class='smallworldadmin'>"._AM_SMALLWORLD_TOTALUSERS." : %s</br>",$sumallusers, 'Red','default'); Modified: XoopsModules/smallworld/trunk/smallworld/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-23 20:38:11 UTC (rev 8799) +++ XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-24 02:47:07 UTC (rev 8800) @@ -232,10 +232,9 @@ $critical = FALSE; $update = FALSE; $rt = ''; - $url = "http://www.culex.dk/updates/smallworld_version.csv"; - $fileC = $this->fetchURL($url,array('fopen', 'curl', 'socket')); - $read = explode(";", $fileC); + $fileC = $this->fetchURL($url,array('fopen', 'curl', 'socket')); + $read = explode(";", $fileC); $upd_img = $pathIcon16.'/on.png'; @@ -282,7 +281,7 @@ switch($method) { case 'fopen': - //uses file_get_contents in place of fopen + //uses file_get_contents in place of fopen //allow_url_fopen must still be enabled if(ini_get('allow_url_fopen')) { @@ -292,12 +291,17 @@ } break; case 'curl': - if(function_exists('curl_init')) + if(function_exists('curl_init')) { - $ch = curl_init(); + $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); - return curl_exec($ch); + // return the value instead of printing the response to browser + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + $result = curl_exec($ch); + curl_close($ch); + //return curl_exec($ch); + return $result; } break; case 'socket': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-01-23 20:38:18
|
Revision: 8799 http://xoops.svn.sourceforge.net/xoops/?rev=8799&view=rev Author: mageg Date: 2012-01-23 20:38:11 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Update protector with bootsrap Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_advisory.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_prefix.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php 2012-01-23 20:37:07 UTC (rev 8798) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php 2012-01-23 20:38:11 UTC (rev 8799) @@ -24,8 +24,18 @@ $xoops = Xoops::getInstance(); $xoops->header(); +$db = XoopsDatabaseFactory::getDatabaseConnection(); +$db->prefix('protector_log'); +$rs = $db->query("SELECT count(lid) FROM " . $db->prefix('protector_log')); +list($numrows) = $db->fetchRow($rs); + $indexAdmin = new XoopsModuleAdmin(); $indexAdmin->renderNavigation('index.php'); + +$indexAdmin->addInfoBox(_MI_AVATARS_SYSTEM, 'off'); +$indexAdmin->addInfoBoxLine(sprintf(_AM_PROTECTOR_NBALERT, '<span class="red">' . $numrows . '</span>'), 'off'); + + $indexAdmin->renderIndex(); $xoops->footer(); \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/admin.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/admin.php 2012-01-23 20:37:07 UTC (rev 8798) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/admin.php 2012-01-23 20:38:11 UTC (rev 8799) @@ -64,6 +64,9 @@ * _AM_TXT_HOWTOCHANGEDB *****************************************/ +//index.php +define("_AM_PROTECTOR_NBALERT", "There are %s alerts"); + // advisory.php define("_AM_ADV_ACTION", "Action"); define("_AM_ADV_INFO", "Information"); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_advisory.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_advisory.html 2012-01-23 20:37:07 UTC (rev 8798) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_advisory.html 2012-01-23 20:38:11 UTC (rev 8799) @@ -42,14 +42,19 @@ </div> <{/foreach}> <!--Pop-pup--> - -<fieldset> - <legend class="label" title="<{$box.title}>"><img src="<{$xoops_url}>/media/xoops/images/icons/16/info.png" alt="<{$box.title}>" /> <{$smarty.const._AM_ADV_SUBTITLECHECK}></legend> - <div class="bold spacer"> - <{$smarty.const._AM_ADV_CHECKCONTAMI}>: <a href='<{$uri_contami}>' target='_blank'><{$uri_contami}></a> +<div class="xo-moduleadmin-infobox outer"> + <div class="xo-window"> + <div class="xo-window-title"> + <img src="<{$xoops_url}>/media/xoops/images/icons/16/info.png" alt="" /> <{$smarty.const._AM_ADV_SUBTITLECHECK}> + <a class="down" href="javascript:;"> </a> + </div> + <div class="xo-window-data"> + <ul> + <li class="black"><strong><{$smarty.const._AM_ADV_CHECKCONTAMI}>:</strong> <a href='<{$uri_contami}>' target='_blank'><{$uri_contami}></a></li> + <br /> + <li class="black"><strong><{$smarty.const._AM_ADV_CHECKISOCOM}>:</strong> <a href='<{$uri_isocom}>' target='_blank'><{$uri_isocom}></a></li> + </ul> + </div> </div> - <br /> - <div class="bold spacer"> - <{$smarty.const._AM_ADV_CHECKISOCOM}>: <a href='<{$uri_isocom}>' target='_blank'><{$uri_isocom}></a> - </div> -</fieldset> \ No newline at end of file + <div class="clear"></div> +</div> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_prefix.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_prefix.html 2012-01-23 20:37:07 UTC (rev 8798) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/templates/admin/protector_prefix.html 2012-01-23 20:38:11 UTC (rev 8799) @@ -52,23 +52,38 @@ <{/if}> <{if $prefix}> -<fieldset> - <legend class="label" title="<{$box.title}>"><img src="<{$xoops_url}>/media/xoops/images/icons/16/info.png" alt="<{$box.title}>" /> <{$smarty.const._AM_PROTECTOR_PREFIX_CHANGEDB}></legend> - <div class="spacer"> - <{$prefix}> +<div class="xo-moduleadmin-infobox outer"> + <div class="xo-window"> + <div class="xo-window-title"> + <img src="<{$xoops_url}>/media/xoops/images/icons/16/info.png" alt="" /> <{$smarty.const._AM_PROTECTOR_PREFIX_CHANGEDB}> + <a class="down" href="javascript:;"> </a> + </div> + <div class="xo-window-data"> + <ul> + <li class="black"><{$prefix}></li> + <br /> + <li class="black"><{$prefix_line}></li> + </ul> + </div> </div> - <br /> - <div class="spacer"> - <{$prefix_line}> - </div> -</fieldset> + <div class="clear"></div> +</div> <{/if}> <{if $protector_logger}> -<fieldset> - <legend class="label" title="<{$box.title}>"><img src="<{$xoops_url}>/media/xoops/images/icons/16/info.png" alt="<{$box.title}>" /> <{$smarty.const._AM_PROTECTOR_PREFIX_LOG}></legend> - <div class="spacer"> - <{$protector_logger}> +<br /> +<div class="xo-moduleadmin-infobox outer"> + <div class="xo-window"> + <div class="xo-window-title"> + <img src="<{$xoops_url}>/media/xoops/images/icons/16/info.png" alt="" /> <{$smarty.const._AM_PROTECTOR_PREFIX_LOG}> + <a class="down" href="javascript:;"> </a> + </div> + <div class="xo-window-data"> + <ul> + <li class="black"><{$protector_logger}></li> + </ul> + </div> </div> -</fieldset> + <div class="clear"></div> +</div> <{/if}> \ 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: <ma...@us...> - 2012-01-23 20:37:14
|
Revision: 8798 http://xoops.svn.sourceforge.net/xoops/?rev=8798&view=rev Author: mageg Date: 2012-01-23 20:37:07 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Error with the help menu Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/themes/default/default.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/themes/default/default.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/themes/default/default.php 2012-01-23 20:36:37 UTC (rev 8797) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/themes/default/default.php 2012-01-23 20:37:07 UTC (rev 8798) @@ -182,7 +182,7 @@ if (stripos($_SERVER['REQUEST_URI'], 'admin/' . $xoops->module->getInfo('help')) !== false) { $current = $i; } - $menu_handler->addMenuTabs('../system/help.php?mid=' . $xoops->module->getVar('mid', 's') . '&' . $xoops->module->getInfo('help'), _AM_SYSTEM_HELP); + $menu_handler->addMenuTabs('../../system/help.php?mid=' . $xoops->module->getVar('mid', 's') . '&' . $xoops->module->getInfo('help'), _AM_SYSTEM_HELP); } // Display navigation tabs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-01-23 20:36:44
|
Revision: 8797 http://xoops.svn.sourceforge.net/xoops/?rev=8797&view=rev Author: mageg Date: 2012-01-23 20:36:37 +0000 (Mon, 23 Jan 2012) Log Message: ----------- small error in the help file Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/userrank.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/userrank.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/userrank.html 2012-01-23 19:52:02 UTC (rev 8796) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/userrank.html 2012-01-23 20:36:37 UTC (rev 8797) @@ -1,7 +1,7 @@ <div id="help-template" class="outer"> <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/userrank/admin/index.php" title="Back to the administration of Ranks"> - Smilies <img src="<{xoAdminIcons home.png}>"alt="Back to the administration of Ranks"/> + Ranks <img src="<{xoAdminIcons home.png}>"alt="Back to the administration of Ranks"/> </a> </h1> <!-- ===== Help Content ======= --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-23 19:52:08
|
Revision: 8796 http://xoops.svn.sourceforge.net/xoops/?rev=8796&view=rev Author: djculex Date: 2012-01-23 19:52:02 +0000 (Mon, 23 Jan 2012) Log Message: ----------- missing css/smallworld.css in permalink.php and smallworldshare.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/permalink.php XoopsModules/smallworld/trunk/smallworld/smallworldshare.php Modified: XoopsModules/smallworld/trunk/smallworld/permalink.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-23 17:30:55 UTC (rev 8795) +++ XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-23 19:52:02 UTC (rev 8796) @@ -118,8 +118,9 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.oembed.js'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/wall.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/smallworld.css'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); - $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); + $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.bookmark.js'); } } else { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); Modified: XoopsModules/smallworld/trunk/smallworld/smallworldshare.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-23 17:30:55 UTC (rev 8795) +++ XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-23 19:52:02 UTC (rev 8796) @@ -86,6 +86,7 @@ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/wall.js'); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/oembed.css'); + $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/smallworld.css'); include(XOOPS_ROOT_PATH."/footer.php"); ?> \ 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-23 17:31:01
|
Revision: 8795 http://xoops.svn.sourceforge.net/xoops/?rev=8795&view=rev Author: djculex Date: 2012-01-23 17:30:55 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Final adjust to image select.. :-) Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css XoopsModules/smallworld/trunk/smallworld/include/functions.php Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-23 17:02:29 UTC (rev 8794) +++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-23 17:30:55 UTC (rev 8795) @@ -748,6 +748,14 @@ position: relative; } +.smallworldAttImgTxt { + color: #A2ADE8; + font-size: 9px; + margin-left: 15%; + position: relative; + text-align: center; +} + .smallworld_sttext b{ color:#006699; } Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-23 17:02:29 UTC (rev 8794) +++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-23 17:30:55 UTC (rev 8795) @@ -202,11 +202,11 @@ $ext2 = substr($text,-5,5); if (in_array($ext,array('.jpg','.bmp','.gif','.png')) || in_array($ext2,array('.jpeg'))){ $text = preg_replace('/(((f|ht){1}tp:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', - '<a href="\\1">'._SMALLWORLD_CLICKIMAGETHUMB.' </a><img class="smallworldAttImg" src="\\1">', $text); + '<img class="smallworldAttImg" src="\\1"><a class="smallworldAttImgTxt" href="\\1">'._SMALLWORLD_CLICKIMAGETHUMB.' </a><br>', $text); $text = preg_replace('/(((f|ht){1}tps:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', '<a href="\\1">lala</a>', $text); $text = preg_replace('/([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', - '\\1<a href="//\\2">'._SMALLWORLD_CLICKIMAGETHUMB.'</a><img class="smallworldAttImg" src="//\\2">', $text); + '\\1<img class="smallworldAttImg" src="//\\2"><a class="smallworldAttImgTxt" href="//\\2">'._SMALLWORLD_CLICKIMAGETHUMB.'</a><br>', $text); } else { $text = html_entity_decode($text); $text = " ".$text; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-23 17:02:35
|
Revision: 8794 http://xoops.svn.sourceforge.net/xoops/?rev=8794&view=rev Author: djculex Date: 2012-01-23 17:02:29 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Function set to transform image urls to <img> in wall posting Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css XoopsModules/smallworld/trunk/smallworld/include/functions.php XoopsModules/smallworld/trunk/smallworld/language/danish/main.php XoopsModules/smallworld/trunk/smallworld/language/english/main.php Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-23 14:25:50 UTC (rev 8793) +++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-23 17:02:29 UTC (rev 8794) @@ -742,6 +742,12 @@ width:75%; } +.smallworldAttImg{ + margin: 10px 125px 5px 10px; + max-height:200px; + position: relative; +} + .smallworld_sttext b{ color:#006699; } Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-23 14:25:50 UTC (rev 8793) +++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-23 17:02:29 UTC (rev 8794) @@ -195,19 +195,32 @@ return $t; } +// Return only url/link +// If url is image link return <img> function smallworld_tolink($text){ - $text = html_entity_decode($text); - $text = " ".$text; - $text = preg_replace('/(((f|ht){1}tp:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', - '<a href="\\1">\\1</a>', $text); - $text = preg_replace('/(((f|ht){1}tps:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', - '<a href="\\1">\\1</a>', $text); - $text = preg_replace('/([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', - '\\1<a href="http://\\2">\\2</a>', $text); - $text = preg_replace('/([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})/i', - '<a href="mailto:\\1">\\1</a>', $text); - $myts = MyTextSanitizer::getInstance(); - $text = $myts->displayTarea($text,1,1,1,1); + $ext = substr($text,-4,4); + $ext2 = substr($text,-5,5); + if (in_array($ext,array('.jpg','.bmp','.gif','.png')) || in_array($ext2,array('.jpeg'))){ + $text = preg_replace('/(((f|ht){1}tp:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', + '<a href="\\1">'._SMALLWORLD_CLICKIMAGETHUMB.' </a><img class="smallworldAttImg" src="\\1">', $text); + $text = preg_replace('/(((f|ht){1}tps:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', + '<a href="\\1">lala</a>', $text); + $text = preg_replace('/([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', + '\\1<a href="//\\2">'._SMALLWORLD_CLICKIMAGETHUMB.'</a><img class="smallworldAttImg" src="//\\2">', $text); + } else { + $text = html_entity_decode($text); + $text = " ".$text; + $text = preg_replace('/(((f|ht){1}tp:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', + '<a href="\\1">\\1</a>', $text); + $text = preg_replace('/(((f|ht){1}tps:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', + '<a href="\\1">\\1</a>', $text); + $text = preg_replace('/([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i', + '\\1<a href="http://\\2">\\2</a>', $text); + $text = preg_replace('/([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})/i', + '<a href="mailto:\\1">\\1</a>', $text); + $myts = MyTextSanitizer::getInstance(); + $text = $myts->displayTarea($text,1,1,1,1); + } return $text; } Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/main.php 2012-01-23 14:25:50 UTC (rev 8793) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/main.php 2012-01-23 17:02:29 UTC (rev 8794) @@ -319,6 +319,7 @@ define("_SMALLWORLD_MONTHSAGO"," months ago"); define("_SMALLWORLD_ONEYEARAGO","one year ago"); define("_SMALLWORLD_YEARSAGO"," years ago"); +define("_SMALLWORLD_CLICKIMAGETHUMB","Click here to see original size image"); /*-------------------- Friends page ---------------*/ define("_SMALLWORLD_FRIENDPAGE","Friends"); Modified: XoopsModules/smallworld/trunk/smallworld/language/english/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-23 14:25:50 UTC (rev 8793) +++ XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-23 17:02:29 UTC (rev 8794) @@ -319,6 +319,7 @@ define("_SMALLWORLD_MONTHSAGO"," months ago"); define("_SMALLWORLD_ONEYEARAGO","one year ago"); define("_SMALLWORLD_YEARSAGO"," years ago"); +define("_SMALLWORLD_CLICKIMAGETHUMB","Click here to see original size image"); /*-------------------- Friends page ---------------*/ define("_SMALLWORLD_FRIENDPAGE","Friends"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-23 14:25:56
|
Revision: 8793 http://xoops.svn.sourceforge.net/xoops/?rev=8793&view=rev Author: djculex Date: 2012-01-23 14:25:50 +0000 (Mon, 23 Jan 2012) Log Message: ----------- bug: possible scroll css error in smallworld_update_changelog class Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/css/SmallworldAdmin.css Modified: XoopsModules/smallworld/trunk/smallworld/css/SmallworldAdmin.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/SmallworldAdmin.css 2012-01-23 14:12:25 UTC (rev 8792) +++ XoopsModules/smallworld/trunk/smallworld/css/SmallworldAdmin.css 2012-01-23 14:25:50 UTC (rev 8793) @@ -236,11 +236,11 @@ } .smallworld_update_changelog { - background-color: #fff; - overflow:auto; - font-size:10px; - height: 150px; - width: 300px; + background-color: #FFFFFF; + font-size: 9px; + height: 350px; + overflow: scroll; + width: 400px; } #smallworldadmin_tab5 h2 { font-size: 14px; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-01-23 14:12:31
|
Revision: 8792 http://xoops.svn.sourceforge.net/xoops/?rev=8792&view=rev Author: djculex Date: 2012-01-23 14:12:25 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Removed Paths: ------------- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php XoopsModules/smallworld/trunk/smallworld/admin/index0.php Deleted: XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-23 13:31:43 UTC (rev 8791) +++ XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-23 14:12:25 UTC (rev 8792) @@ -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$ -**/ - -require_once 'admin_header.php'; -global $xoopsDB, $xoTheme, $xoopsLogger ; -$xoopsLogger->activated = false; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); - -$Tpl = new XoopsTpl(); -$admin = new SmallworldAdmin(); - -$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(); - $Tpl->append('allusersinspect', $ai); - } - } - $Tpl->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'] = ''; - $Tpl->append('allusersnoinspect', $ani); - } - } - $Tpl->assign('allusersnoinspectcounter',count($ani)); - -$Tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/smallworld_alluserstodiv.html'); -?> \ No newline at end of file Deleted: XoopsModules/smallworld/trunk/smallworld/admin/index0.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-23 13:31:43 UTC (rev 8791) +++ XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-23 14:12:25 UTC (rev 8792) @@ -1,183 +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(); -$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(); -?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |