Changeset 11176
- Timestamp:
- Jul 6, 2009, 2:42:15 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/inc/classes/BxDolFilesUploader.php ¶
r11163 r11176 29 29 var $_aExtras; 30 30 31 var $sPredefCategory; 32 var $sPredefAlbum; 31 // var $sPredefCategory; //TODO remove 32 // var $sPredefAlbum; //TODO remove 33 33 34 var $sSendFileInfoFormCaption; 34 35 35 var $sMultiUploaderParams; 36 36 … … 50 50 51 51 $this->_iOwnerId = $this->_getAuthorId(); 52 //$this->_sJsPostObject = 'oCommonUpload';53 //$this->_aExtras = array();54 52 55 53 $this->_sJsPostObject = 'o'.$this->sUploadTypeNC.'Upload'; 56 57 //$this->sWorkingFile = BX_DOL_URL_MODULES . 'boonex/'.$this->sUploadTypeLC.'/add'.$this->sUploadTypeNC.'.php';58 54 $this->sSendFileInfoFormCaption = ''; 59 55 60 $this->sPredefCategory = (isset($_REQUEST['category']) && $_REQUEST['category']!='') ? process_db_input($_REQUEST['category'], 1) : '';61 $this->sPredefAlbum = (isset($_REQUEST['album']) && $_REQUEST['album']!='') ? process_db_input($_REQUEST['album'], 1) : '';56 // $this->sPredefCategory = (isset($_REQUEST['category']) && $_REQUEST['category']!='') ? process_db_input($_REQUEST['category'], 1) : ''; 57 // $this->sPredefAlbum = (isset($_REQUEST['album']) && $_REQUEST['album']!='') ? process_db_input($_REQUEST['album'], 1) : ''; 62 58 global $oTemplConfig; 63 59 $oTemplConfig->aJsLangStrings[] = '_bx_'.$this->sUploadTypeLC.'_val_title_err'; … … 68 64 if(!empty($_REQUEST)) 69 65 $this->_aExtras = $this->_getExtraParams($_REQUEST); 70 71 66 72 67 $this->sMultiUploaderParams = array( //Important! Should be override with necessary params … … 206 201 ); 207 202 208 /*209 //--- Process Extras ---//210 foreach($this->_aExtras as $sKey => $mixedValue)211 $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array (212 'type' => 'hidden',213 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey,214 'value' => $mixedValue215 );216 217 $aFormCategories = array();218 if ($this->sPredefCategory != '') {219 $aFormCategories['category'] = array(220 'type' => 'hidden',221 'name' => 'category',222 'value' => $this->sPredefCategory223 );224 }225 if (count($aFormCategories)>0) {226 $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories);227 }*/228 229 203 $oForm = new BxTemplFormView($aForm); 230 231 204 return $sCssJs . $this->getLoadingCode() . $oForm->getCode(); 232 205 } … … 260 233 $sAcceptedImagesForm = '<div style="width:100%;background-color:#ffdada;" id="accepted_files_block"></div>'; 261 234 262 $sForm ;235 $sForm = ''; 263 236 switch ($_REQUEST['mode']) { 264 237 case 'record': … … 336 309 ); 337 310 338 $aFormCategories = array(); 339 if ($this->sPredefCategory != '') { 340 $aFormCategories['category'] = array( 341 'type' => 'hidden', 342 'name' => 'category', 343 'value' => $this->sPredefCategory 344 ); 345 } 346 if (count($aFormCategories)>0) { 347 $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 348 } 349 350 //$aForm['inputs'] = isset($aParams['inputs']) ? array_merge($aForm['inputs'], $aParams['inputs']) : $aForm['inputs']; 311 //--- Process Extras ---// 312 foreach($this->_aExtras as $sKey => $mixedValue) { 313 $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 314 'type' => 'hidden', 315 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey, 316 'value' => $mixedValue 317 ); 318 } 319 351 320 $oForm = new BxTemplFormView($aForm); 352 353 //$sReturn = '<script src="' . BX_DOL_URL_MODULES . 'boonex/shared_'.$this->sUploadTypeLC.'/js/embed.js" type="text/javascript" language="javascript"></script>'; 354 $sReturn .= $this->getLoadingCode() . $oForm->getCode(); 355 356 return $sReturn; 321 return $this->getLoadingCode() . $oForm->getCode(); 357 322 } 358 323 … … 395 360 ); 396 361 397 $aFormCategories = array(); 398 if ($this->sPredefCategory != '') { 399 $aFormCategories['category'] = array( 400 'type' => 'hidden', 401 'name' => 'category', 402 'value' => $this->sPredefCategory 403 ); 404 } 405 if (count($aFormCategories)>0) { 406 $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 407 } 408 409 //$aForm['inputs'] = isset($aParams['inputs']) ? array_merge($aForm['inputs'], $aParams['inputs']) : $aForm['inputs']; 362 //--- Process Extras ---// 363 foreach($this->_aExtras as $sKey => $mixedValue) { 364 $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 365 'type' => 'hidden', 366 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey, 367 'value' => $mixedValue 368 ); 369 } 370 410 371 $oForm = new BxTemplFormView($aForm); 411 412 372 return $oForm->getCode(); 413 373 } … … 542 502 543 503 //--- Process Extras ---// 544 foreach($this->_aExtras as $sKey => $mixedValue) 504 foreach($this->_aExtras as $sKey => $mixedValue) { 545 505 $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 546 506 'type' => 'hidden', … … 548 508 'value' => $mixedValue 549 509 ); 550 551 $aFormCategories = array(); 552 if ($this->sPredefCategory != '') { 553 $aFormCategories['category'] = array( 554 'type' => 'hidden', 555 'name' => 'category', 556 'value' => $this->sPredefCategory 557 ); 558 } 559 if (count($aFormCategories)>0) { 560 $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 561 } 562 563 $aAlbums = array(); 564 if ($this->sPredefAlbum != '') { 565 $aAlbums['album'] = array( 566 'type' => 'hidden', 567 'name' => 'album', 568 'value' => $this->sPredefAlbum 569 ); 570 } 571 if (count($aAlbums)>0) { 572 $aForm['inputs'] = array_merge($aForm['inputs'], $aAlbums); 573 } 574 575 //$aForm['inputs'] = isset($aParams['inputs']) ? array_merge($aForm['inputs'], $aParams['inputs']) : $aForm['inputs']; 510 } 511 576 512 $oForm = new BxTemplFormView($aForm); 577 578 513 return $this->getLoadingCode() . $oForm->getCode(); 579 514 } 580 515 581 516 function _GenSendFileInfoForm($iFileID, $aDefaultValues = array(), $aPossibleImage = array(), $aPossibleDuration = array()) { 582 583 517 //$sAction = isset($aParams['action']) ? $aParams['action'] : 'uploadSharePhoto.php'; 584 518 //$isForm = !isset($aParams['is_form']) || (isset($aParams['is_form']) && $aParams['is_form'] === true); 585 519 586 520 $aFormCategories = array(); 587 if ($this->sPredefCategory != '') {588 $aFormCategories['category'] = array(589 'type' => 'hidden', 590 'name' => 'category[]',591 'value' => $this->sPredefCategory 592 ); 593 } 594 else {521 $sKey = 'category'; 522 if ($this->_aExtras[$sKey] != '') { 523 $aFormCategories[BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 524 'type' => 'hidden', 525 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 526 'value' => $this->_aExtras[$sKey] 527 ); 528 } else { 595 529 $oCategories = new BxDolCategories(); 596 530 $aCategories = $oCategories->getCategoriesList('bx_' . $this->sUploadTypeLC . 's', $this->_iOwnerId, true); … … 598 532 $aFormCategories['category'] = array( 599 533 'type' => 'select_box', 600 'name' => 'category',534 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 601 535 'caption' => _t('_Category'), 602 536 'values' => $aCategories 603 537 ); 604 538 } 539 $sKey = 'album'; 605 540 $aAlbums = array(); 606 if ($this->sPredefAlbum != '') { 607 $aAlbums['album'] = array( 608 'type' => 'hidden', 609 'name' => 'album[]', 610 'value' => $this->sPredefAlbum 611 ); 612 } 613 else { 541 if ($this->_aExtras[$sKey] != '') { 542 $aAlbums[BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 543 'type' => 'hidden', 544 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 545 'value' => $this->_aExtras[$sKey] 546 ); 547 } else { 614 548 $oAlbum = new BxDolAlbums('bx_' . $this->sUploadTypeLC . 's'); 615 549 $aAlbumList = $oAlbum->getAlbumList(array('owner'=>$this->_iOwnerId)); … … 625 559 $aAlbums['album'] = array( 626 560 'type' => 'select_box', 627 'name' => 'album',561 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 628 562 'caption' => _t('_sys_album'), 629 563 'values' => $aList … … 700 634 $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 701 635 $aForm['inputs'] = array_merge($aForm['inputs'], $aAlbums); 636 702 637 if (is_array($aPossibleImage) && count($aPossibleImage)>0) 703 638 $aForm['inputs'] = array_merge($aForm['inputs'], $aPossibleImage); -
TabularUnified trunk/modules/boonex/ads/install/sql/uninstall.sql ¶
r11059 r11176 39 39 40 40 DELETE FROM `sys_objects_tag` WHERE `ObjectName`='ad' AND `LangKey`='_Ads'; 41 DELETE FROM `sys_tags` WHERE `Type` = 'ad'; 41 42 42 43 DELETE FROM `sys_menu_top` WHERE `Name` = 'Ads' AND `Caption` = '_Ads'; -
TabularUnified trunk/modules/boonex/blogs/classes/BxBlogsModule.php ¶
r11118 r11176 472 472 $iTotalNum = mysql_num_rows($vBlogsRes); 473 473 if ($iTotalNum == 0) { 474 return MsgBox($sNoBlogsC);474 return DesignBoxContent($sCaption, MsgBox($sNoBlogsC), 1); 475 475 } 476 476 … … 600 600 {$sPagination} 601 601 EOF; 602 602 603 return DesignBoxContent($sCaption, $sRetHtmlVal, 1); 603 604 } … … 619 620 $sTagsC = _t('_Tags'); 620 621 $sPostsCL = strtolower(_t('_bx_blog_Posts')); 621 $sSubscribeC = _t('_ Subscribe');622 $sSubscribeC = _t('_RSS'); 622 623 $sFeaturedPostsC = _t('_bx_blog_Featured_Posts'); 623 624 $sBackToBlogC = _t('_bx_blog_Back_to_Blog'); … … 770 771 $sSiteUrl = BX_DOL_URL_ROOT; 771 772 $sWorkLink = $this->genBlogFormUrl(); 773 772 774 if (($this->_iVisitorID==$iMemberID && $iMemberID>0) || $this->bAdminMode==true) { 773 775 $sDescrAct = $this->ActionPrepareForEdit($aBlogDesc); … … 998 1000 return $this->GenCreateBlogForm(); 999 1001 } else { 1000 return MsgBox(_t('_Empty'));1002 return DesignBoxContent($this->_sPageHeader, MsgBox(_t('_Empty')), 1); 1001 1003 } 1002 1004 } … … 1208 1210 1209 1211 if ($iPostID < 0) { 1210 return MsgBox(_t('_Empty'));1212 return DesignBoxContent($this->_sPageHeader, MsgBox(_t('_Empty')), 1); 1211 1213 } 1212 1214 … … 1225 1227 1226 1228 if ($this->isAllowedBlogPostView($iOwnerID, true) == false || $bPossibleToView == false) { 1227 return $this->_oTemplate->displayAccessDenied();1229 return DesignBoxContent($this->_sPageHeader, $this->_oTemplate->displayAccessDenied(), 1); 1228 1230 } 1229 1231 … … 1249 1251 $sPostC = _t( '_Post' ); 1250 1252 if (!$aAllBlogPostInfo) { 1251 return MsgBox(_t('_No such blog post'));1253 return DesignBoxContent($this->_sPageHeader, MsgBox(_t('_No such blog post')), 1); 1252 1254 } 1253 1255 … … 1501 1503 if ($iPostID==0) { 1502 1504 if (!$this->isAllowedPostAdd()) { 1503 return $this->_oTemplate->displayAccessDenied 1505 return $this->_oTemplate->displayAccessDenied(); 1504 1506 } 1505 1507 } else { -
TabularUnified trunk/modules/boonex/blogs/install/sql/install.sql ¶
r11070 r11176 179 179 180 180 SELECT @iTopMenuLastOrder:=MAX(`Order`) FROM `sys_menu_top` WHERE `Parent`='0' AND `Active`='1' AND `Type`='top'; 181 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, 0, 'Blogs', '_bx_blog_Blogs', 'modules/boonex/blogs/blogs.php |modules/boonex/blogs/blogs.php?action=show_member_blog|modules/boonex/blogs/blogs.php?action=new_post|modules/boonex/blogs/blogs.php?action=add_category', @iTopMenuLastOrder+1, 'non,memb', '', '', '', 1, 1, 1, 'top', 0, 'modules/boonex/blogs/|bx_blogs.png', 1, '');181 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, 0, 'Blogs', '_bx_blog_Blogs', 'modules/boonex/blogs/blogs.php?action=home|modules/boonex/blogs/blogs.php|modules/boonex/blogs/blogs.php?action=show_member_blog|modules/boonex/blogs/blogs.php?action=new_post|modules/boonex/blogs/blogs.php?action=add_category', @iTopMenuLastOrder+1, 'non,memb', '', '', '', 1, 1, 1, 'top', 0, 'modules/boonex/blogs/|bx_blogs.png', 1, ''); 182 182 SET @menu_id = LAST_INSERT_ID(); 183 183 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, 9, 'Profile Blog', '_bx_blog_Blog', 'modules/boonex/blogs/blogs.php?action=show_member_blog&ownerID={profileID}|modules/boonex/blogs/blogs.php?action=show_member_post&ownerID={profileID}', 4, 'non,memb', '', '', '', 1, 1, 1, 'custom', 0, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); … … 189 189 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Top Posts', '_Top Posts', 'modules/boonex/blogs/blogs.php?action=top_posts', 4, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 190 190 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Blogs Tags', '_Tags', 'tags.php?tags_mode=blog', 7, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 191 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Blog Categories', '_Categories', 'modules/boonex/blogs/blogs.php?action=show_categories', 8, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, '');192 191 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Blog Search', '_Search', 'searchKeyword.php?type=blog', 11, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 193 192 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Featured Posts', '_bx_blog_Featured_Posts', 'modules/boonex/blogs/blogs.php?action=featured_posts', 6, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); -
TabularUnified trunk/modules/boonex/blogs/install/sql/uninstall.sql ¶
r11070 r11176 36 36 37 37 DELETE FROM `sys_objects_tag` WHERE `ObjectName`='blog' AND `LangKey`='_bx_blog_Blogs'; 38 DELETE FROM `sys_tags` WHERE `Type` = 'blog'; 38 39 39 40 SET @iCatRoot := (SELECT `ID` FROM `sys_menu_top` WHERE `Name` = 'Blogs' LIMIT 1); -
TabularUnified trunk/modules/boonex/open_social/classes/BxOSiModule.php ¶
r11144 r11176 57 57 //Generation of managing form 58 58 if ($iVisitorID>0 && $iVisitorID == $this->_iProfileID) { // is owner 59 $sAddC = _t('_ Add');59 $sAddC = _t('_Submit'); 60 60 $sEditC = _t('_Edit'); 61 61 $sAddNewURLC = _t('_Enter new URL'); … … 112 112 //adding form 113 113 $aForm = array( 114 115 116 117 114 'form_attrs' => array( 115 'name' => 'adding_custom_appl_form', 116 'action' => $_SERVER['PHP_SELF'], 117 'method' => 'post', 118 118 /*'onsubmit' => $sFormOnsubmitCode,*/ 119 ), 120 'inputs' => array( 121 'application_url' => array( 122 'type' => 'text', 123 'name' => 'application_url', 124 'maxlength' => 255, 125 'caption' => $sURLC, 126 ), 127 'sample' => array( 119 ), 120 'inputs' => array( 121 'application_url' => array( 128 122 'type' => 'text', 129 'value' => 'http://www.matt.org/modules/GoogleClock.xml', 130 'caption' => _t('_osi_Sample'), 131 'attrs' => array( 132 'readonly' => 'readonly', 133 ), 134 ), 135 'hidden_action' => array( 136 'type' => 'hidden', 137 'name' => 'action', 138 'value' => 'add_application', 139 ), 140 'add_button' => array( 123 'name' => 'application_url', 124 'maxlength' => 255, 125 'caption' => $sURLC, 126 'info' => 'http://www.matt.org/modules/GoogleClock.xml' 127 ), 128 'hidden_action' => array( 129 'type' => 'hidden', 130 'name' => 'action', 131 'value' => 'add_application', 132 ), 133 'add_button' => array( 141 134 'type' => 'submit', 142 135 'name' => 'submit', 143 136 'caption' => '', 144 137 'value' => $sAddC, 145 146 147 148 149 138 ), 139 ), 140 ); 141 $oForm = new BxTemplFormView($aForm); 142 $sAddingForm = $oForm->getCode(); 150 143 } 151 144 … … 206 199 $sPreferSpeed = $this->_oConfig->getAnimationSpeed(); 207 200 208 if ($this->_bAdminMode == false) {201 //if ($this->_bAdminMode == false) { 209 202 // Collect all applications with settings in designbox modes 210 203 $aMemberApplications = ($iVisitorID == $this->_iProfileID) ? $this->_oDb->getProfileApplications($this->_iProfileID) : $this->_oDb->getActiveProfileApplications($this->_iProfileID); … … 266 259 exit; 267 260 } 268 }261 //} 269 262 270 263 // get common style-js header -
TabularUnified trunk/modules/boonex/open_social/install/langs/en.php ¶
r11130 r11176 22 22 23 23 $aLangContent = array( 24 '_osi_Manager' => 'Opensocial applications manager',24 '_osi_Manager' => 'Opensocial applications', 25 25 '_osi_Custom_Feeds' => 'Custom Opensocial applications', 26 26 '_osi_Existed_applications' => 'Applications', 27 27 '_osi_Settings' => 'Your Opensocial settings', 28 28 '_osi_Copy_to_admin_applications' => 'Copy to admin applications', 29 '_osi_Sample' => 'Sample',30 29 '_osi_Opensocial_Block' => 'Opensocial Block', 30 '_osi_Opensocial_moderation' => 'Opensocial moderation', 31 31 ); 32 32 -
TabularUnified trunk/modules/boonex/open_social/install/sql/install.sql ¶
r11130 r11176 22 22 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 23 23 24 INSERT INTO `bx_osi_main` (`ID`, `person_id`, `url`, `description`, `status`, `title`, `directory_title`, `author`, `author_email`, `settings`, `views`, `version`, `height`, `scrolling`, `modified`, `screenshot`, `thumbnail`) VALUES 25 (NULL, 1, 'http://www.matt.org/modules/GoogleClock.xml', 'Add a Clock to your page', 'active', 'Google Clock', '', 'Leonel Corona', 'leonel@matt.org', 'O:8:"stdClass":1:{s:5:"vsize";O:8:"stdClass":5:{s:11:"displayName";s:10:"Clock Size";s:4:"type";s:4:"ENUM";s:7:"default";s:5:"240px";s:10:"enumValues";O:8:"stdClass":4:{s:5:"100px";s:5:"100px";s:5:"150px";s:5:"150px";s:5:"200px";s:5:"200px";s:5:"240px";s:5:"240px";}s:8:"required";s:5:"false";}}', 'O:8:"stdClass":1:{s:4:"home";O:8:"stdClass":8:{s:4:"name";s:4:"home";s:4:"type";s:4:"HTML";s:4:"href";N;s:6:"quirks";b:1;s:4:"view";s:0:"";s:14:"preferedHeight";s:0:"";s:13:"preferedWidth";s:0:"";s:16:"rewrittenContent";N;}}', 'e62ab22d744e91b1e9a1f5b3d752716a', 0, 0, 1246430802, 'http://www.matt.org/modules/images/clockscreenshoot.jpg', 'http://www.matt.org/modules/images/googleclocktn.png'), 26 (NULL, 1, 'http://www.canbuffi.de/gadgets/clock/clock.xml', 'Adds a nice digital clock to your iGoogle. You can choose between different time formats (12/24h), different date formats (English, German and French date format), timezones and enable daylight savings. Until now it is translated into German, French, Croatian and Serbian; more translations will follow. Tags: Clock, Time, Date, Uhr, Uhrzeit, Datum', 'active', 'Clock & Date', 'Clock & Date', 'Sebastian Majstorovic', 'google@canbuffi.de', 'O:8:"stdClass":10:{s:5:"title";O:8:"stdClass":5:{s:11:"displayName";s:11:"Clock title";s:4:"type";s:6:"STRING";s:7:"default";s:12:"Clock & Date";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:11:"time_format";O:8:"stdClass":5:{s:11:"displayName";s:11:"Time format";s:4:"type";s:4:"ENUM";s:7:"default";s:1:"0";s:10:"enumValues";a:2:{i:0;s:7:"1:15 PM";i:1;s:5:"13:15";}s:8:"required";s:5:"false";}s:7:"seconds";O:8:"stdClass":5:{s:11:"displayName";s:16:"Display seconds?";s:4:"type";s:4:"BOOL";s:7:"default";s:4:"true";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:11:"date_format";O:8:"stdClass":5:{s:11:"displayName";s:11:"Date format";s:4:"type";s:4:"ENUM";s:7:"default";s:1:"0";s:10:"enumValues";a:4:{i:0;s:15:"January 1, 2000";i:1;s:15:"1. January 2000";i:2;s:15:"2000, January 1";i:3;s:14:"1 January 2000";}s:8:"required";s:5:"false";}s:9:"dayofweek";O:8:"stdClass":5:{s:11:"displayName";s:24:"Display day of the week?";s:4:"type";s:4:"BOOL";s:7:"default";s:4:"true";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:12:"offset_hours";O:8:"stdClass":5:{s:11:"displayName";s:16:"Timezone (hours)";s:4:"type";s:4:"ENUM";s:7:"default";s:0:"";s:10:"enumValues";O:8:"stdClass":26:{s:3:"-12";s:6:"UTC-12";s:3:"-11";s:6:"UTC-11";s:3:"-10";s:6:"UTC-10";s:2:"-9";s:5:"UTC-9";s:2:"-8";s:5:"UTC-8";s:2:"-7";s:5:"UTC-7";s:2:"-6";s:5:"UTC-6";s:2:"-5";s:5:"UTC-5";s:2:"-4";s:5:"UTC-4";s:2:"-3";s:5:"UTC-3";s:2:"-2";s:5:"UTC-2";s:2:"-1";s:5:"UTC-1";s:7:"_empty_";s:3:"UTC";s:2:"+1";s:5:"UTC+1";s:2:"+2";s:5:"UTC+2";s:2:"+3";s:5:"UTC+3";s:2:"+4";s:5:"UTC+4";s:2:"+5";s:5:"UTC+5";s:2:"+6";s:5:"UTC+6";s:2:"+7";s:5:"UTC+7";s:2:"+8";s:5:"UTC+8";s:2:"+9";s:5:"UTC+9";s:3:"+10";s:6:"UTC+10";s:3:"+11";s:6:"UTC+11";s:3:"+12";s:6:"UTC+12";s:3:"+13";s:6:"UTC+13";}s:8:"required";s:5:"false";}s:14:"offset_minutes";O:8:"stdClass":5:{s:11:"displayName";s:18:"Timezone (minutes)";s:4:"type";s:4:"ENUM";s:7:"default";s:0:"";s:10:"enumValues";O:8:"stdClass":4:{s:7:"_empty_";s:0:"";s:2:"15";s:2:"15";s:2:"30";s:2:"30";s:2:"45";s:2:"45";}s:8:"required";s:5:"false";}s:8:"daylight";O:8:"stdClass":5:{s:11:"displayName";s:16:"Daylight savings";s:4:"type";s:4:"BOOL";s:7:"default";s:5:"false";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:5:"color";O:8:"stdClass":5:{s:11:"displayName";s:5:"Color";s:4:"type";s:4:"ENUM";s:7:"default";s:3:"red";s:10:"enumValues";O:8:"stdClass":6:{s:3:"red";s:3:"Red";s:4:"blue";s:4:"Blue";s:5:"green";s:5:"Green";s:5:"brown";s:5:"Brown";s:6:"orange";s:6:"Orange";s:6:"purple";s:6:"Purple";}s:8:"required";s:5:"false";}s:6:"amazon";O:8:"stdClass":5:{s:11:"displayName";s:6:"Amazon";s:4:"type";s:6:"HIDDEN";s:7:"default";s:1:"1";s:10:"enumValues";N;s:8:"required";s:5:"false";}}', 'O:8:"stdClass":1:{s:4:"home";O:8:"stdClass":8:{s:4:"name";s:4:"home";s:4:"type";s:4:"HTML";s:4:"href";N;s:6:"quirks";b:1;s:4:"view";s:0:"";s:14:"preferedHeight";s:0:"";s:13:"preferedWidth";s:0:"";s:16:"rewrittenContent";N;}}', 'fe14b130b59f5333572a487b8029c9e7', 170, 0, 1246446031, 'http://www.canbuffi.de/gadgets/clock_date/images/screen.png', 'http://www.canbuffi.de/gadgets/clock_date/images/thumb.png'); 27 24 28 CREATE TABLE `[db_prefix]_application_settings` ( 25 29 `application_id` int(11) NOT NULL, … … 33 37 SELECT @iExtCat:=`id` FROM `sys_menu_admin` WHERE `name`='extensions'; 34 38 SELECT @iExtOrd:=MAX(`order`) FROM `sys_menu_admin` WHERE `name`='extensions'; 35 INSERT INTO `sys_menu_admin` (`id`, `parent_id`, `name`, `title`, `url`, `description`, `icon`, `icon_large`, `check`, `order`) VALUES (NULL, @iExtCat, 'Custom Opensocial Feeds Moderation', 'Custom Opensocial Feeds Moderation', '../modules/boonex/open_social/post_mod_os.php', 'Custom Opensocial Feeds Moderation description', 'mmi_host_tools.gif', '', '', @iExtOrd+1); 39 INSERT INTO `sys_menu_admin` (`id`, `parent_id`, `name`, `title`, `url`, `description`, `icon`, `icon_large`, `check`, `order`) VALUES 40 (NULL, @iExtCat, 'Opensocial moderation', '_osi_Opensocial_moderation', '../modules/boonex/open_social/post_mod_os.php', 'Opensocial applications moderation', 'mmi_host_tools.gif', '', '', @iExtOrd+1); 36 41 37 42 -- page compose pages -
TabularUnified trunk/modules/boonex/photos/classes/BxPhotosPageMy.php ¶
r11151 r11176 305 305 if (!in_array('albumAddObjects', $this->aCurrentBlocks['blocks'])) 306 306 return ''; 307 return $this->getAddPart( );307 return $this->getAddPart(array('album'=>$this->aAddParams[0])); 308 308 } 309 309 … … 316 316 require_once('BxPhotosUploader.php'); 317 317 $oUploader = new BxPhotosUploader(); 318 $aUnit['right'] = $oUploader->serviceGenAddPhotoPage( );318 $aUnit['right'] = $oUploader->serviceGenAddPhotoPage($aParam); 319 319 } 320 320 return array($this->oTemplate->parseHtmlByName('album_manage.html', $aUnit), $this->getTopMenu('add')); -
TabularUnified trunk/modules/boonex/photos/classes/BxPhotosUploader.php ¶
r11163 r11176 43 43 } 44 44 45 function serviceGenPhotoUploadForm($sPredefCategory, $iUploadersCount, $aExtras = array()) { 46 $this->_aExtras = $aExtras; 47 $this->sPredefCategory = $sPredefCategory; 48 49 return $this->GenMainAddPhotosForm(); 45 /* 46 * Service - generate photo upload main form 47 * 48 * params 49 * $sPredefCategory - TODO remove 50 * $aExtras - TODO predefined album and category should appear here with names: predef_album and predef_category 51 */ 52 function serviceGenPhotoUploadForm($aExtras = array()) { 53 return $this->GenMainAddPhotosForm($aExtras); 50 54 } 51 55 … … 177 181 178 182 $aCategories = array(); 179 foreach ($_REQUEST[' category'] as $sKey => $sVal) {183 foreach ($_REQUEST['extra_param_category'] as $sKey => $sVal) { 180 184 if ($sVal != '') { 181 185 $aCategories[] = process_db_input($sVal); … … 187 191 $aAlbumsList = $oAlbum->getAlbumList(); 188 192 $aAlbums = array(); 189 foreach ($_REQUEST[' album'] as $sVal) {193 foreach ($_REQUEST['extra_param_album'] as $sVal) { 190 194 $iVal = (int)$sVal; 191 195 if ($iVal == 0) { … … 509 513 } 510 514 511 function serviceGenAddPhotoPage( ) {515 function serviceGenAddPhotoPage($aExtras = array()) { 512 516 $sAddPhotoC = _t('_bx_photos_add'); 513 517 $sRecPhotoC = _t('_bx_photos_record'); … … 515 519 $sFlashPhotoC = _t('_adm_admtools_Flash'); 516 520 517 $sPhotoUploadForm = $this->GenMainAddPhotosForm( );521 $sPhotoUploadForm = $this->GenMainAddPhotosForm($aExtras); 518 522 $sUploadActStyle = $sRecordActStyle = $sEmbedActStyle = $sFlashActStyle = 'notActive'; 519 523 switch ($_REQUEST['mode']) { -
TabularUnified trunk/modules/boonex/quotes/install/config.php ¶
r11006 r11176 1 1 <?php 2 2 3 /*************************************************************************** 3 4 * Dolphin Smart Community Builder … … 24 25 * Main Section. 25 26 */ 27 'title' => 'Quotes Module', 28 'version' => '1.0.0', 26 29 'vendor' => 'Boonex', 27 'title' => 'Quotes module', 30 'update_url' => '', 31 'compatible_with' => array( 32 '7.0.x' 33 ), 28 34 29 35 /** … … 39 45 */ 40 46 'install' => array( 41 'show_introduction' => 0,47 'show_introduction' => 1, 42 48 'change_permissions' => 0, 43 49 'execute_sql' => 1, 44 'update_languages' => 0,45 'recompile_global_paramaters' => 0,50 'update_languages' => 1, 51 'recompile_global_paramaters' => 1, 46 52 'recompile_main_menu' => 0, 47 53 'recompile_member_menu' => 0, 48 54 'recompile_member_stats' => 0, 49 'recompile_site_stats' => 0, 55 'recompile_site_stats' => 0, 50 56 'recompile_page_builder' => 0, 51 57 'recompile_profile_fields' => 0, … … 59 65 'recompile_permalinks' => 0, 60 66 'recompile_alerts' => 0, 61 'clear_db_cache' => 0,62 67 'show_conclusion' => 1 63 68 ), 64 69 'uninstall' => array ( 65 'show_introduction' => 0,70 'show_introduction' => 1, 66 71 'change_permissions' => 0, 67 72 'execute_sql' => 1, 68 'update_languages' => 0,69 'recompile_global_paramaters' => 0,73 'update_languages' => 1, 74 'recompile_global_paramaters' => 1, 70 75 'recompile_main_menu' => 0, 71 76 'recompile_member_menu' => 0, 72 77 'recompile_member_stats' => 0, 73 'recompile_site_stats' => 0, 78 'recompile_site_stats' => 0, 74 79 'recompile_page_builder' => 0, 75 80 'recompile_profile_fields' => 0, … … 83 88 'recompile_permalinks' => 0, 84 89 'recompile_alerts' => 0, 85 'clear_db_cache' => 0,86 90 'show_conclusion' => 1 87 ), 88 91 ), 92 /** 93 * Dependencies Section 94 */ 95 'dependencies' => array(), 96 /** 97 * Category for language keys. 98 */ 99 'language_category' => 'Boonex Quotes', 89 100 /** 90 101 * Permissions Section … … 92 103 'install_permissions' => array(), 93 104 'uninstall_permissions' => array(), 94 95 105 /** 96 106 * Introduction and Conclusion Section. 97 107 */ 98 108 'install_info' => array( 99 'introduction' => ' ',109 'introduction' => 'inst_intro.html', 100 110 'conclusion' => 'inst_concl.html' 101 111 ), 102 112 'uninstall_info' => array( 103 'introduction' => ' ',113 'introduction' => 'uninst_intro.html', 104 114 'conclusion' => 'uninst_concl.html' 105 115 ) 106 116 ); 107 108 117 ?> -
TabularUnified trunk/modules/boonex/sounds/classes/BxSoundsUploader.php ¶
r11163 r11176 61 61 } 62 62 63 function serviceGenMusicUploadForm($sPredefCategory, $iUploadersCount, $aExtras = array()) { 64 $this->_aExtras = $aExtras; 65 $this->sPredefCategory = $sPredefCategory; 66 67 return $this->GenMainAddMusicForm(); 63 /* 64 * Service - generate sound upload main form 65 * 66 * params 67 * $sPredefCategory - TODO remove 68 * $aExtras - TODO predefined album and category should appear here with names: predef_album and predef_category 69 */ 70 function serviceGenMusicUploadForm($aExtras = array()) { 71 return $this->GenMainAddMusicForm($aExtras); 68 72 } 69 73 … … 209 213 210 214 $aCategories = array(); 211 foreach ($_REQUEST[' category'] as $sKey => $sVal) {215 foreach ($_REQUEST['extra_param_category'] as $sKey => $sVal) { 212 216 if ($sVal != '') { 213 217 $aCategories[] = process_db_input($sVal); … … 219 223 $aAlbumsList = $oAlbum->getAlbumList(); 220 224 $aAlbums = array(); 221 foreach ($_REQUEST[' album'] as $sVal) {225 foreach ($_REQUEST['extra_param_album'] as $sVal) { 222 226 $iVal = (int)$sVal; 223 227 if ($iVal == 0) { … … 317 321 } 318 322 319 function serviceGenAddMusicPage( ) {323 function serviceGenAddMusicPage($aExtras = array()) { 320 324 $sAddMusicC = _t('_bx_sounds_add'); 321 325 $sRecMusicC = _t('_bx_sounds_record'); … … 323 327 $sFlashMusicC = _t('_adm_admtools_Flash'); 324 328 325 $sMusicUploadForm = $this->GenMainAddMusicForm( );329 $sMusicUploadForm = $this->GenMainAddMusicForm($aExtras); 326 330 327 331 $sUploadActStyle = $sRecordActStyle = $sEmbedActStyle = $sFlashActStyle = 'notActive'; -
TabularUnified trunk/modules/boonex/videos/classes/BxVideosUploader.php ¶
r11163 r11176 61 61 } 62 62 63 function serviceGenVideoUploadForm($sPredefCategory, $iUploadersCount, $aExtras = array()) { 64 $this->_aExtras = $aExtras; 65 $this->sPredefCategory = $sPredefCategory; 66 67 return $this->GenMainAddVideoForm(); 63 /* 64 * Service - generate video upload main form 65 * 66 * params 67 * $sPredefCategory - TODO remove 68 * $aExtras - TODO predefined album and category should appear here with names: predef_album and predef_category 69 */ 70 function serviceGenVideoUploadForm($aExtras = array()) { 71 return $this->GenMainAddVideoForm($aExtras); 68 72 } 69 73 … … 221 225 222 226 $aCategories = array(); 223 foreach ($_REQUEST[' category'] as $sKey => $sVal) {227 foreach ($_REQUEST['extra_param_category'] as $sKey => $sVal) { 224 228 if ($sVal != '') { 225 229 $aCategories[] = process_db_input($sVal); … … 231 235 $aAlbumsList = $oAlbum->getAlbumList(); 232 236 $aAlbums = array(); 233 foreach ($_REQUEST[' album'] as $sVal) {237 foreach ($_REQUEST['extra_param_album'] as $sVal) { 234 238 $iVal = (int)$sVal; 235 239 if ($iVal == 0) { … … 329 333 } 330 334 331 function serviceGenAddVideoPage( ) {335 function serviceGenAddVideoPage($aExtras = array()) { 332 336 $sAddVideoC = _t('_bx_videos_add'); 333 337 $sRecVideoC = _t('_bx_videos_record'); … … 335 339 $sFlashVideoC = _t('_adm_admtools_Flash'); 336 340 337 $sVideoUploadForm = $this->GenMainAddVideoForm( );341 $sVideoUploadForm = $this->GenMainAddVideoForm($aExtras); 338 342 339 343 $sUploadActStyle = $sRecordActStyle = $sEmbedActStyle = $sFlashActStyle = 'notActive';
Note: See TracChangeset
for help on using the changeset viewer.