├── install.lock ├── app ├── data │ ├── schema.mysql.sql │ └── phiz │ │ └── default │ │ ├── 00.png │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ ├── 06.png │ │ ├── 07.png │ │ ├── 08.png │ │ ├── 09.png │ │ ├── 10.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 13.png │ │ ├── 14.png │ │ ├── 15.png │ │ ├── 16.png │ │ ├── 17.png │ │ ├── 18.png │ │ ├── 19.png │ │ ├── 20.png │ │ ├── 21.png │ │ ├── 22.png │ │ ├── 23.png │ │ ├── 24.png │ │ ├── 25.png │ │ ├── 26.png │ │ ├── 27.png │ │ ├── 28.png │ │ ├── 29.png │ │ ├── 30.png │ │ ├── 31.png │ │ ├── 32.png │ │ ├── 33.png │ │ ├── 34.png │ │ ├── 35.png │ │ ├── 36.png │ │ ├── 37.png │ │ ├── 38.png │ │ ├── 39.png │ │ ├── 40.png │ │ ├── 41.png │ │ ├── 42.png │ │ ├── 43.png │ │ ├── 44.png │ │ ├── 45.png │ │ ├── 46.png │ │ ├── 47.png │ │ ├── 48.png │ │ ├── 49.png │ │ ├── 50.png │ │ ├── 51.png │ │ ├── 52.png │ │ ├── 53.png │ │ ├── 54.png │ │ ├── 55.png │ │ ├── 56.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 59.png │ │ ├── 60.png │ │ ├── 61.png │ │ ├── 62.png │ │ ├── 63.png │ │ ├── 64.png │ │ ├── 65.png │ │ ├── 66.png │ │ ├── 67.png │ │ ├── 68.png │ │ ├── 69.png │ │ ├── 70.png │ │ ├── 71.png │ │ ├── 72.png │ │ ├── 73.png │ │ ├── 74.png │ │ ├── 75.png │ │ ├── 76.png │ │ ├── 77.png │ │ ├── 78.png │ │ ├── 79.png │ │ ├── 80.png │ │ ├── 81.png │ │ ├── 82.png │ │ ├── 83.png │ │ ├── 84.png │ │ ├── 85.png │ │ └── 86.png ├── web │ ├── themes │ │ └── classic │ │ │ └── views │ │ │ └── .htaccess │ ├── images │ │ ├── logo.png │ │ ├── admin │ │ │ ├── login.png │ │ │ ├── del_pic.png │ │ │ ├── mobile.png │ │ │ ├── nav-add.png │ │ │ ├── tmp │ │ │ │ ├── msg.png │ │ │ │ ├── follow.png │ │ │ │ ├── reply.png │ │ │ │ ├── search.jpg │ │ │ │ ├── sign.jpg │ │ │ │ ├── signin.png │ │ │ │ ├── view.png │ │ │ │ ├── barcode.jpg │ │ │ │ ├── fasttext.jpg │ │ │ │ ├── msg-list.jpg │ │ │ │ ├── postlist.jpg │ │ │ │ ├── setting.jpg │ │ │ │ ├── unfollow.png │ │ │ │ ├── userinfo.jpg │ │ │ │ ├── weather.jpg │ │ │ │ ├── fastaudio.png │ │ │ │ ├── fastcamera.jpg │ │ │ │ ├── fastimage.png │ │ │ │ ├── suroundingpost.jpg │ │ │ │ ├── surroundinguser.png │ │ │ │ └── recommenduserlist.png │ │ │ ├── mobile-nav.png │ │ │ ├── module-add.png │ │ │ ├── add-nav-ico.png │ │ │ ├── module-default.png │ │ │ ├── icon2 │ │ │ │ ├── mc_forum_ico27_h.png │ │ │ │ ├── mc_forum_ico27_n.png │ │ │ │ ├── mc_forum_ico28_h.png │ │ │ │ ├── mc_forum_ico28_n.png │ │ │ │ ├── mc_forum_ico29_h.png │ │ │ │ ├── mc_forum_ico29_n.png │ │ │ │ ├── mc_forum_ico30_h.png │ │ │ │ ├── mc_forum_ico30_n.png │ │ │ │ ├── mc_forum_ico45_h.png │ │ │ │ └── mc_forum_ico45_n.png │ │ │ ├── icon3 │ │ │ │ ├── mc_forum_squre_icon4.png │ │ │ │ ├── mc_forum_squre_icon5.png │ │ │ │ ├── mc_forum_squre_icon6.png │ │ │ │ ├── mc_forum_squre_icon7.png │ │ │ │ └── mc_forum_squre_icon9.png │ │ │ ├── topbar │ │ │ │ ├── mc_forum_weather_icon2.png │ │ │ │ ├── mc_forum_top_bar_button10_n.png │ │ │ │ ├── mc_forum_top_bar_button21_h.png │ │ │ │ ├── mc_forum_top_bar_button21_n.png │ │ │ │ ├── mc_forum_top_bar_button22_h.png │ │ │ │ ├── mc_forum_top_bar_button22_n.png │ │ │ │ ├── mc_forum_top_bar_button23_h.png │ │ │ │ ├── mc_forum_top_bar_button23_n.png │ │ │ │ ├── mc_forum_top_bar_button24_h.png │ │ │ │ ├── mc_forum_top_bar_button24_n.png │ │ │ │ └── mc_forum_top_bar_button6_n.png │ │ │ └── icon1 │ │ │ │ ├── mc_forum_main_bar_button10_h.png │ │ │ │ ├── mc_forum_main_bar_button10_n.png │ │ │ │ ├── mc_forum_main_bar_button11_h.png │ │ │ │ ├── mc_forum_main_bar_button11_n.png │ │ │ │ ├── mc_forum_main_bar_button12_h.png │ │ │ │ ├── mc_forum_main_bar_button12_n.png │ │ │ │ ├── mc_forum_main_bar_button13_h.png │ │ │ │ ├── mc_forum_main_bar_button13_n.png │ │ │ │ ├── mc_forum_main_bar_button14_h.png │ │ │ │ ├── mc_forum_main_bar_button14_n.png │ │ │ │ ├── mc_forum_main_bar_button15_h.png │ │ │ │ ├── mc_forum_main_bar_button15_n.png │ │ │ │ ├── mc_forum_main_bar_button16_h.png │ │ │ │ ├── mc_forum_main_bar_button16_n.png │ │ │ │ ├── mc_forum_main_bar_button17_h.png │ │ │ │ ├── mc_forum_main_bar_button17_n.png │ │ │ │ ├── mc_forum_main_bar_button18_h.png │ │ │ │ ├── mc_forum_main_bar_button18_n.png │ │ │ │ ├── mc_forum_main_bar_button19_h.png │ │ │ │ ├── mc_forum_main_bar_button19_n.png │ │ │ │ ├── mc_forum_main_bar_button1_h.png │ │ │ │ ├── mc_forum_main_bar_button1_n.png │ │ │ │ ├── mc_forum_main_bar_button20_h.png │ │ │ │ ├── mc_forum_main_bar_button20_n.png │ │ │ │ ├── mc_forum_main_bar_button21_h.png │ │ │ │ ├── mc_forum_main_bar_button21_n.png │ │ │ │ ├── mc_forum_main_bar_button22_h.png │ │ │ │ ├── mc_forum_main_bar_button22_n.png │ │ │ │ ├── mc_forum_main_bar_button23_h.png │ │ │ │ ├── mc_forum_main_bar_button23_n.png │ │ │ │ ├── mc_forum_main_bar_button24_h.png │ │ │ │ ├── mc_forum_main_bar_button24_n.png │ │ │ │ ├── mc_forum_main_bar_button25_h.png │ │ │ │ ├── mc_forum_main_bar_button25_n.png │ │ │ │ ├── mc_forum_main_bar_button26_h.png │ │ │ │ ├── mc_forum_main_bar_button26_n.png │ │ │ │ ├── mc_forum_main_bar_button27_h.png │ │ │ │ ├── mc_forum_main_bar_button27_n.png │ │ │ │ ├── mc_forum_main_bar_button28_h.png │ │ │ │ ├── mc_forum_main_bar_button28_n.png │ │ │ │ ├── mc_forum_main_bar_button29_h.png │ │ │ │ ├── mc_forum_main_bar_button29_n.png │ │ │ │ ├── mc_forum_main_bar_button2_h.png │ │ │ │ ├── mc_forum_main_bar_button2_n.png │ │ │ │ ├── mc_forum_main_bar_button30_h.png │ │ │ │ ├── mc_forum_main_bar_button30_n.png │ │ │ │ ├── mc_forum_main_bar_button31_h.png │ │ │ │ ├── mc_forum_main_bar_button31_n.png │ │ │ │ ├── mc_forum_main_bar_button32_h.png │ │ │ │ ├── mc_forum_main_bar_button32_n.png │ │ │ │ ├── mc_forum_main_bar_button33_h.png │ │ │ │ ├── mc_forum_main_bar_button33_n.png │ │ │ │ ├── mc_forum_main_bar_button34_h.png │ │ │ │ ├── mc_forum_main_bar_button34_n.png │ │ │ │ ├── mc_forum_main_bar_button35_h.png │ │ │ │ ├── mc_forum_main_bar_button35_n.png │ │ │ │ ├── mc_forum_main_bar_button36_h.png │ │ │ │ ├── mc_forum_main_bar_button36_n.png │ │ │ │ ├── mc_forum_main_bar_button37_h.png │ │ │ │ ├── mc_forum_main_bar_button37_n.png │ │ │ │ ├── mc_forum_main_bar_button38_h.png │ │ │ │ ├── mc_forum_main_bar_button38_n.png │ │ │ │ ├── mc_forum_main_bar_button39_h.png │ │ │ │ ├── mc_forum_main_bar_button39_n.png │ │ │ │ ├── mc_forum_main_bar_button3_h.png │ │ │ │ ├── mc_forum_main_bar_button3_n.png │ │ │ │ ├── mc_forum_main_bar_button40_h.png │ │ │ │ ├── mc_forum_main_bar_button40_n.png │ │ │ │ ├── mc_forum_main_bar_button41_h.png │ │ │ │ ├── mc_forum_main_bar_button41_n.png │ │ │ │ ├── mc_forum_main_bar_button42_h.png │ │ │ │ ├── mc_forum_main_bar_button42_n.png │ │ │ │ ├── mc_forum_main_bar_button43_h.png │ │ │ │ ├── mc_forum_main_bar_button43_n.png │ │ │ │ ├── mc_forum_main_bar_button44_h.png │ │ │ │ ├── mc_forum_main_bar_button44_n.png │ │ │ │ ├── mc_forum_main_bar_button45_h.png │ │ │ │ ├── mc_forum_main_bar_button45_n.png │ │ │ │ ├── mc_forum_main_bar_button46_h.png │ │ │ │ ├── mc_forum_main_bar_button46_n.png │ │ │ │ ├── mc_forum_main_bar_button47_h.png │ │ │ │ ├── mc_forum_main_bar_button47_n.png │ │ │ │ ├── mc_forum_main_bar_button48_h.png │ │ │ │ ├── mc_forum_main_bar_button48_n.png │ │ │ │ ├── mc_forum_main_bar_button49_h.png │ │ │ │ ├── mc_forum_main_bar_button49_n.png │ │ │ │ ├── mc_forum_main_bar_button4_h.png │ │ │ │ ├── mc_forum_main_bar_button4_n.png │ │ │ │ ├── mc_forum_main_bar_button5_h.png │ │ │ │ ├── mc_forum_main_bar_button5_n.png │ │ │ │ ├── mc_forum_main_bar_button6_h.png │ │ │ │ ├── mc_forum_main_bar_button6_n.png │ │ │ │ ├── mc_forum_main_bar_button7_h.png │ │ │ │ ├── mc_forum_main_bar_button7_n.png │ │ │ │ ├── mc_forum_main_bar_button8_h.png │ │ │ │ ├── mc_forum_main_bar_button8_n.png │ │ │ │ ├── mc_forum_main_bar_button9_h.png │ │ │ │ └── mc_forum_main_bar_button9_n.png │ │ └── mobile │ │ │ ├── mobile-ios.png │ │ │ ├── mobile-android.png │ │ │ └── mobile-attach-1.png │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ ├── index.php │ └── index-test.php ├── components │ ├── discuz │ │ ├── discuz.php │ │ └── source │ │ │ └── class │ │ │ └── discuz │ │ │ └── discuz_upload.php │ ├── db │ │ ├── DiscuzAR.php │ │ ├── DiscuzUCenterAR.php │ │ ├── MobcentAR.php │ │ └── DiscuzDbCacheDependency.php │ ├── Controller.php │ └── MobcentAction.php ├── config │ ├── discuz.php │ ├── mobcent_version.php │ ├── constant.php │ └── main_include.php ├── modules │ └── admin │ │ ├── views │ │ └── uidiy │ │ │ ├── component_mobile_ui │ │ │ ├── sign.php │ │ │ ├── search.php │ │ │ ├── weather.php │ │ │ ├── fasttext.php │ │ │ ├── postlist.php │ │ │ ├── userinfo.php │ │ │ ├── fastaudio.php │ │ │ ├── fastcamera.php │ │ │ ├── fastimage.php │ │ │ ├── messagelist.php │ │ │ ├── moduleRef.php │ │ │ ├── surroudingPostlist.php │ │ │ ├── webapp.php │ │ │ ├── userlist.php │ │ │ ├── about.php │ │ │ └── recommendUserlist.php │ │ │ ├── module_mobile_ui │ │ │ ├── full.php │ │ │ ├── news.php │ │ │ └── subnav.php │ │ │ └── component_mobile_ui.php │ │ ├── components │ │ └── AdminController.php │ │ ├── AdminModule.php │ │ └── models │ │ └── AppbymeWshDiyModel.php ├── views │ └── test │ │ └── debug.php ├── controllers │ ├── IndexController.php │ ├── forum │ │ └── RateListViewAction.php │ ├── portal │ │ └── ModuleListAction.php │ ├── MiscController.php │ ├── SquareController.php │ ├── user │ │ ├── QQLoginAction.php │ │ ├── SettingAction.php │ │ ├── LocationAction.php │ │ ├── RegisterAction.php │ │ └── SaveAlbumAction.php │ ├── AppController.php │ ├── MessageController.php │ ├── app │ │ ├── ModuleConfigAction.php │ │ ├── InitUIAction.php │ │ └── ServerUploadAction.php │ └── PortalController.php ├── extensions │ └── mobcent │ │ └── components │ │ ├── utils │ │ ├── SystemUtils.php │ │ ├── ArrayUtils.php │ │ └── CountTimer.php │ │ └── web │ │ ├── MobileDetectUtils.php │ │ └── UploadUtils.php └── models │ ├── DzCommonSession.php │ ├── AppbymePoralModule.php │ ├── DzForumActivity.php │ ├── DzForumAnnouncement.php │ ├── DzCommonMember.php │ ├── DzCommonPlugin.php │ └── DzCommonUserGroup.php ├── framework ├── .htaccess └── mobcent │ ├── web │ ├── widgets │ │ ├── captcha │ │ │ ├── SpicyRice.ttf │ │ │ └── SpicyRice.md │ │ ├── pagers │ │ │ └── pager.css │ │ └── CClipWidget.php │ ├── COutputEvent.php │ ├── helpers │ │ └── CJavaScriptExpression.php │ ├── auth │ │ ├── schema-mssql.sql │ │ ├── schema-oci.sql │ │ ├── schema-pgsql.sql │ │ ├── schema-sqlite.sql │ │ └── schema-mysql.sql │ └── actions │ │ └── CInlineAction.php │ ├── views │ ├── zh_cn │ │ ├── profile-callstack-firebug.php │ │ ├── log-firebug.php │ │ ├── profile-summary-firebug.php │ │ ├── profile-callstack.php │ │ ├── error503.php │ │ ├── log.php │ │ ├── error403.php │ │ ├── error400.php │ │ ├── error500.php │ │ ├── error404.php │ │ ├── error.php │ │ └── profile-summary.php │ ├── profile-callstack-firebug.php │ ├── log-firebug.php │ ├── profile-summary-firebug.php │ ├── profile-callstack.php │ ├── error503.php │ ├── log.php │ ├── error403.php │ ├── error500.php │ ├── error400.php │ ├── error404.php │ ├── profile-summary.php │ └── error.php │ ├── base │ ├── CException.php │ ├── CExceptionEvent.php │ ├── CModelEvent.php │ ├── CHttpException.php │ └── CErrorEvent.php │ ├── db │ ├── schema │ │ ├── pgsql │ │ │ ├── CPgsqlTableSchema.php │ │ │ └── CPgsqlCommandBuilder.php │ │ ├── oci │ │ │ └── COciTableSchema.php │ │ ├── mysql │ │ │ ├── CMysqlTableSchema.php │ │ │ └── CMysqlCommandBuilder.php │ │ ├── mssql │ │ │ ├── CMssqlTableSchema.php │ │ │ └── CMssqlSqlsrvPdoAdapter.php │ │ └── sqlite │ │ │ └── CSqliteColumnSchema.php │ └── CDbException.php │ ├── yii.php │ ├── validators │ ├── CSafeValidator.php │ └── CUnsafeValidator.php │ ├── i18n │ └── gettext │ │ └── CGettextFile.php │ ├── logging │ └── CChainedLogFilter.php │ └── collections │ ├── CTypedMap.php │ └── CTypedList.php ├── requirements ├── views │ └── .htaccess └── messages │ ├── .htaccess │ └── config.php ├── static └── images │ └── head_bg.jpg ├── docs └── readme.php ├── discuz_plugin └── appbyme_app │ ├── template │ └── images │ │ ├── d_1.png │ │ ├── d_2.png │ │ ├── d_3.png │ │ ├── d_4.png │ │ ├── d_5.png │ │ ├── d_6.png │ │ ├── d_7.png │ │ ├── adorn_weixin.png │ │ ├── android_download.png │ │ └── iphone_download.png │ ├── check.php │ ├── plugin.inc.php │ ├── uninstall.php │ └── download.inc.php ├── README.md ├── tool └── constants.php ├── publishpoll ├── abstractPublishPoll.php └── PublishPoll.php ├── Discuz-Update-2015-02-06.txt ├── download └── down.php ├── Config ├── platSystem.php └── dynamicobject.php └── model └── table └── x25 ├── table_common_member.php └── table_forum_typeoption.php /install.lock: -------------------------------------------------------------------------------- 1 | 请不要删除此文件!!! -------------------------------------------------------------------------------- /app/data/schema.mysql.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /framework/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /requirements/views/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /requirements/messages/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /app/web/themes/classic/views/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /app/components/discuz/discuz.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/data/phiz/default/00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/00.png -------------------------------------------------------------------------------- /app/data/phiz/default/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/01.png -------------------------------------------------------------------------------- /app/data/phiz/default/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/02.png -------------------------------------------------------------------------------- /app/data/phiz/default/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/03.png -------------------------------------------------------------------------------- /app/data/phiz/default/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/04.png -------------------------------------------------------------------------------- /app/data/phiz/default/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/05.png -------------------------------------------------------------------------------- /app/data/phiz/default/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/06.png -------------------------------------------------------------------------------- /app/data/phiz/default/07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/07.png -------------------------------------------------------------------------------- /app/data/phiz/default/08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/08.png -------------------------------------------------------------------------------- /app/data/phiz/default/09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/09.png -------------------------------------------------------------------------------- /app/data/phiz/default/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/10.png -------------------------------------------------------------------------------- /app/data/phiz/default/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/11.png -------------------------------------------------------------------------------- /app/data/phiz/default/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/12.png -------------------------------------------------------------------------------- /app/data/phiz/default/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/13.png -------------------------------------------------------------------------------- /app/data/phiz/default/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/14.png -------------------------------------------------------------------------------- /app/data/phiz/default/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/15.png -------------------------------------------------------------------------------- /app/data/phiz/default/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/16.png -------------------------------------------------------------------------------- /app/data/phiz/default/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/17.png -------------------------------------------------------------------------------- /app/data/phiz/default/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/18.png -------------------------------------------------------------------------------- /app/data/phiz/default/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/19.png -------------------------------------------------------------------------------- /app/data/phiz/default/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/20.png -------------------------------------------------------------------------------- /app/data/phiz/default/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/21.png -------------------------------------------------------------------------------- /app/data/phiz/default/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/22.png -------------------------------------------------------------------------------- /app/data/phiz/default/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/23.png -------------------------------------------------------------------------------- /app/data/phiz/default/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/24.png -------------------------------------------------------------------------------- /app/data/phiz/default/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/25.png -------------------------------------------------------------------------------- /app/data/phiz/default/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/26.png -------------------------------------------------------------------------------- /app/data/phiz/default/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/27.png -------------------------------------------------------------------------------- /app/data/phiz/default/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/28.png -------------------------------------------------------------------------------- /app/data/phiz/default/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/29.png -------------------------------------------------------------------------------- /app/data/phiz/default/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/30.png -------------------------------------------------------------------------------- /app/data/phiz/default/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/31.png -------------------------------------------------------------------------------- /app/data/phiz/default/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/32.png -------------------------------------------------------------------------------- /app/data/phiz/default/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/33.png -------------------------------------------------------------------------------- /app/data/phiz/default/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/34.png -------------------------------------------------------------------------------- /app/data/phiz/default/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/35.png -------------------------------------------------------------------------------- /app/data/phiz/default/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/36.png -------------------------------------------------------------------------------- /app/data/phiz/default/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/37.png -------------------------------------------------------------------------------- /app/data/phiz/default/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/38.png -------------------------------------------------------------------------------- /app/data/phiz/default/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/39.png -------------------------------------------------------------------------------- /app/data/phiz/default/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/40.png -------------------------------------------------------------------------------- /app/data/phiz/default/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/41.png -------------------------------------------------------------------------------- /app/data/phiz/default/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/42.png -------------------------------------------------------------------------------- /app/data/phiz/default/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/43.png -------------------------------------------------------------------------------- /app/data/phiz/default/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/44.png -------------------------------------------------------------------------------- /app/data/phiz/default/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/45.png -------------------------------------------------------------------------------- /app/data/phiz/default/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/46.png -------------------------------------------------------------------------------- /app/data/phiz/default/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/47.png -------------------------------------------------------------------------------- /app/data/phiz/default/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/48.png -------------------------------------------------------------------------------- /app/data/phiz/default/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/49.png -------------------------------------------------------------------------------- /app/data/phiz/default/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/50.png -------------------------------------------------------------------------------- /app/data/phiz/default/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/51.png -------------------------------------------------------------------------------- /app/data/phiz/default/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/52.png -------------------------------------------------------------------------------- /app/data/phiz/default/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/53.png -------------------------------------------------------------------------------- /app/data/phiz/default/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/54.png -------------------------------------------------------------------------------- /app/data/phiz/default/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/55.png -------------------------------------------------------------------------------- /app/data/phiz/default/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/56.png -------------------------------------------------------------------------------- /app/data/phiz/default/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/57.png -------------------------------------------------------------------------------- /app/data/phiz/default/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/58.png -------------------------------------------------------------------------------- /app/data/phiz/default/59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/59.png -------------------------------------------------------------------------------- /app/data/phiz/default/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/60.png -------------------------------------------------------------------------------- /app/data/phiz/default/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/61.png -------------------------------------------------------------------------------- /app/data/phiz/default/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/62.png -------------------------------------------------------------------------------- /app/data/phiz/default/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/63.png -------------------------------------------------------------------------------- /app/data/phiz/default/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/64.png -------------------------------------------------------------------------------- /app/data/phiz/default/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/65.png -------------------------------------------------------------------------------- /app/data/phiz/default/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/66.png -------------------------------------------------------------------------------- /app/data/phiz/default/67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/67.png -------------------------------------------------------------------------------- /app/data/phiz/default/68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/68.png -------------------------------------------------------------------------------- /app/data/phiz/default/69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/69.png -------------------------------------------------------------------------------- /app/data/phiz/default/70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/70.png -------------------------------------------------------------------------------- /app/data/phiz/default/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/71.png -------------------------------------------------------------------------------- /app/data/phiz/default/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/72.png -------------------------------------------------------------------------------- /app/data/phiz/default/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/73.png -------------------------------------------------------------------------------- /app/data/phiz/default/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/74.png -------------------------------------------------------------------------------- /app/data/phiz/default/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/75.png -------------------------------------------------------------------------------- /app/data/phiz/default/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/76.png -------------------------------------------------------------------------------- /app/data/phiz/default/77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/77.png -------------------------------------------------------------------------------- /app/data/phiz/default/78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/78.png -------------------------------------------------------------------------------- /app/data/phiz/default/79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/79.png -------------------------------------------------------------------------------- /app/data/phiz/default/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/80.png -------------------------------------------------------------------------------- /app/data/phiz/default/81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/81.png -------------------------------------------------------------------------------- /app/data/phiz/default/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/82.png -------------------------------------------------------------------------------- /app/data/phiz/default/83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/83.png -------------------------------------------------------------------------------- /app/data/phiz/default/84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/84.png -------------------------------------------------------------------------------- /app/data/phiz/default/85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/85.png -------------------------------------------------------------------------------- /app/data/phiz/default/86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/data/phiz/default/86.png -------------------------------------------------------------------------------- /app/web/images/admin/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appbyme/mobcent-discuz/HEAD/app/web/images/admin/login.png -------------------------------------------------------------------------------- /app/components/discuz/source/class/discuz/discuz_upload.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /publishpoll/abstractPublishPoll.php: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /app/config/mobcent_version.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/search.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/weather.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/module_mobile_ui/full.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | $component = $module['componentList'][0]; 11 | $this->renderPartial('component_mobile_ui', array( 12 | 'component' => $component, 13 | )); -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/fasttext.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/postlist.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/userinfo.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/fastaudio.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/fastcamera.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/fastimage.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/messagelist.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/moduleRef.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | ?> 11 | 12 | -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/surroudingPostlist.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
-------------------------------------------------------------------------------- /publishpoll/PublishPoll.php: -------------------------------------------------------------------------------- 1 | newInstance(); 7 | $retObj = $obj->getPublishPollObj(); 8 | $obj->transfer($retObj); 9 | ?> -------------------------------------------------------------------------------- /app/config/constant.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class DiscuzAR extends MobcentAR { 15 | 16 | public function getDbConnection() { 17 | return Yii::app()->dbDz; 18 | } 19 | } -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | $this->renderPartial('component_mobile_ui/' . $component['type'], array( 15 | 'component' => $component, 16 | )); -------------------------------------------------------------------------------- /app/components/db/DiscuzUCenterAR.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class DiscuzUCenterAR extends MobcentAR { 15 | 16 | public function getDbConnection() { 17 | return Yii::app()->dbDzUc; 18 | } 19 | } -------------------------------------------------------------------------------- /Discuz-Update-2015-02-06.txt: -------------------------------------------------------------------------------- 1 | 2015年2月6日Discuz!转换更新说明: 2 | 3 | version 2.4.0.2 4 | 1. 兼容老ios客户端不支持新样式的bug 5 | 6 | version 2.4.0.1 7 | 1. 修复需点击同步按钮才更新列表自动样式在bug 8 | 3. 修复好友通知中去除已经是好友却还有确认按钮 9 | 4. 添加删除好友私信消息功能 10 | 5. 添加门户列表自动更新缓存功能(仅对应fid的情况) 11 | 6. 管理后台中 列表组件 支持设置标题, 摘要长度, 以及图片的位置, 添加贴吧, 类网易新闻样式, 新增图片墙风格; 12 | 7. 管理后台中 简版列表组件 添加最新, 精华, 置顶过滤, 主题分类过滤, 置顶帖配置 13 | 8. 管理后台中 自定义添加单拦低, 版块列表可设置帖子列表,详情的样式 14 | 9. 管理后台中 添加微生活管理 15 | 10. 新增个人资料编辑接口,收藏版块功能 16 | 11. 添加微信登陆功能 -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/webapp.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | ?> 11 | 18 | 19 | -------------------------------------------------------------------------------- /app/views/test/debug.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ', 12 | WebUtils::createUrl_oldVersion($api['route'], array_merge($api['params'], $_GET)), 13 | $api['title'] 14 | ); 15 | } 16 | ?> 17 |
%s
18 | 19 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/profile-callstack-firebug.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /framework/mobcent/views/profile-callstack-firebug.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/userlist.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | $imgUrl = $this->rootUrl . '/images/admin/tmp/' . ($component['extParams']['orderby'] == AppbymeUIDiyModel::USERLIST_ORDERBY_DISTANCE ? 'surroundinguser' : 'recommenduserlist') . '.png'; 11 | ?> 12 | 13 |
14 | 15 |
-------------------------------------------------------------------------------- /framework/mobcent/base/CException.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CException represents a generic exception for all purposes. 13 | * 14 | * @author Qiang Xue 15 | * @package system.base 16 | * @since 1.0 17 | */ 18 | class CException extends Exception 19 | { 20 | } 21 | 22 | -------------------------------------------------------------------------------- /discuz_plugin/appbyme_app/check.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | * @license http://opensource.org/licenses/LGPL-3.0 9 | */ 10 | 11 | if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { 12 | exit('Access Denied'); 13 | } 14 | 15 | $operation = preg_replace('/[^\[A-Za-z0-9_\]]/', '', getgpc('operation')); 16 | 17 | if ($operation == 'import' || $operation == 'upgrade') { 18 | // !is_writable(DISCUZ_ROOT.'/mobcent') && cpmsg('请先去官网下载通过验证后', '', 'error'); 19 | } -------------------------------------------------------------------------------- /app/components/db/MobcentAR.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class MobcentAR extends CActiveRecord { 15 | 16 | protected function testDbConnection($db) { 17 | if ($db instanceof CDbConnection) { 18 | return true; 19 | } else { 20 | throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /download/down.php: -------------------------------------------------------------------------------- 1 | init(); 15 | $_SERVER['REQUEST_METHOD'] = $tempMethod; 16 | 17 | $_G['siteurl'] = substr($_G['siteurl'], 0, -18); 18 | $url = $_G['siteurl'].'/plugin.php?id=appbyme_app:download'; 19 | header('Location: '.$url); 20 | ?> 21 | -------------------------------------------------------------------------------- /framework/mobcent/web/widgets/captcha/SpicyRice.md: -------------------------------------------------------------------------------- 1 | ## Spicy Rice font 2 | 3 | * **Author:** Brian J. Bonislawsky, Astigmatic (AOETI, Astigmatic One Eye Typographic Institute) 4 | * **License:** SIL Open Font License (OFL), version 1.1, [notes and FAQ](http://scripts.sil.org/OFL) 5 | 6 | ## Links 7 | 8 | * [Astigmatic](http://www.astigmatic.com/) 9 | * [Google WebFonts](http://www.google.com/webfonts/specimen/Spicy+Rice) 10 | * [fontsquirrel.com](http://www.fontsquirrel.com/fonts/spicy-rice) 11 | * [fontspace.com](http://www.fontspace.com/astigmatic-one-eye-typographic-institute/spicy-rice) 12 | -------------------------------------------------------------------------------- /Config/platSystem.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements/messages/config.php: -------------------------------------------------------------------------------- 1 | dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 8 | 'messagePath'=>dirname(__FILE__), 9 | 'languages'=>array('zh_cn','zh_tw','de','es','el','sv','he','nl','pt','ru','it','fr','ja','pl','hu','ro','id','vi','bg','uk','cs'), 10 | 'fileTypes'=>array('php'), 11 | 'overwrite'=>true, 12 | 'translator'=>'t', 13 | 'exclude'=>array( 14 | '.gitignore', 15 | '/messages', 16 | '/views', 17 | ), 18 | ); 19 | -------------------------------------------------------------------------------- /app/controllers/IndexController.php: -------------------------------------------------------------------------------- 1 | 5 | * @copyright 2012-2014 Appbyme 6 | */ 7 | 8 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 9 | exit('Access Denied'); 10 | } 11 | 12 | class IndexController extends Controller { 13 | 14 | public function actionIndex() { 15 | echo 'welcome mobcent'; 16 | } 17 | 18 | public function actionError() { 19 | if ($error = Yii::app()->errorHandler->error) { 20 | echo $error['message']; 21 | } 22 | } 23 | 24 | public function actionReturnMobileView() { 25 | echo 'redirect to mobile view'; 26 | } 27 | } -------------------------------------------------------------------------------- /framework/mobcent/db/schema/pgsql/CPgsqlTableSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CPgsqlTable represents the metadata for a PostgreSQL table. 13 | * 14 | * @author Qiang Xue 15 | * @package system.db.schema.pgsql 16 | * @since 1.0 17 | */ 18 | class CPgsqlTableSchema extends CDbTableSchema 19 | { 20 | /** 21 | * @var string name of the schema that this table belongs to. 22 | */ 23 | public $schemaName; 24 | } 25 | -------------------------------------------------------------------------------- /app/extensions/mobcent/components/utils/SystemUtils.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class SystemUtils { 15 | 16 | /** 17 | * 后台执行命令 18 | * 19 | * @param string $cmd 20 | */ 21 | public static function execInBackground($cmd) { 22 | if (substr(php_uname(), 0, 7) == 'Windows') { 23 | pclose(popen('start /B '. $cmd, 'r')); 24 | } else { 25 | exec($cmd . ' > /dev/null &'); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/log-firebug.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/profile-summary-firebug.php: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /framework/mobcent/views/log-firebug.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /framework/mobcent/views/profile-summary-firebug.php: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /app/controllers/forum/RateListViewAction.php: -------------------------------------------------------------------------------- 1 | getController()->renderPartial( 21 | 'rateListView', 22 | array( 23 | 'loglist' => $res['loglist'], 24 | 'logcount' => $res['logcount'] 25 | ) 26 | ); 27 | } 28 | } -------------------------------------------------------------------------------- /app/controllers/portal/ModuleListAction.php: -------------------------------------------------------------------------------- 1 | _getModuleList(); 19 | echo WebUtils::outputWebApi($res, '', false); 20 | } 21 | 22 | // 获取门户资讯列表 23 | private function _getModuleList() { 24 | // 封装:PortalUtils.php,6:截取的数组长度 Date:2014/11/4 25 | return PortalUtils::getModuleList(6); 26 | } 27 | } -------------------------------------------------------------------------------- /app/controllers/MiscController.php: -------------------------------------------------------------------------------- 1 | 5 | * @copyright 2012-2014 Appbyme 6 | */ 7 | 8 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 9 | exit('Access Denied'); 10 | } 11 | 12 | // Mobcent::setErrors(); 13 | class MiscController extends MobcentController { 14 | 15 | public function actions() { 16 | return array( 17 | ); 18 | } 19 | 20 | protected function mobcentAccessRules() { 21 | return array( 22 | 'download' => false, 23 | ); 24 | } 25 | 26 | public function actionDownload() 27 | { 28 | $this->redirect($this->dzRootUrl.'/plugin.php?id='.MOBCENT_DZ_PLUGIN_ID.':download'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /framework/mobcent/db/schema/oci/COciTableSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * COciTableSchema represents the metadata for an Oracle table. 13 | * 14 | * @author Ricardo Grana 15 | * @package system.db.schema.oci 16 | */ 17 | class COciTableSchema extends CDbTableSchema 18 | { 19 | /** 20 | * @var string name of the schema (database) that this table belongs to. 21 | * Defaults to null, meaning no schema (or the current database). 22 | */ 23 | public $schemaName; 24 | } 25 | -------------------------------------------------------------------------------- /app/controllers/SquareController.php: -------------------------------------------------------------------------------- 1 | 4 | * @copyright 2012-2014 Appbyme 5 | */ 6 | 7 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 8 | exit('Access Denied'); 9 | } 10 | 11 | class SquareController extends MobcentController { 12 | 13 | public function actions() { 14 | return array( 15 | 'surrounding' => 'application.controllers.square.SurroundingAction', 16 | 'share' => 'application.controllers.square.ShareAction', 17 | ); 18 | } 19 | 20 | protected function mobcentAccessRules() { 21 | return array( 22 | 'surrounding' => $_GET['poi'] != 'topic', 23 | 'share' => false, 24 | ); 25 | } 26 | } -------------------------------------------------------------------------------- /model/table/x25/table_common_member.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/extensions/mobcent/components/utils/ArrayUtils.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class ArrayUtils { 15 | 16 | /** 17 | * 变量转换为数组 18 | * 19 | * @param string|array $string 20 | * @param string $delimiter 21 | * 22 | * @return array 23 | */ 24 | public static function explode($string, $delimiter=',') { 25 | $res = $string; 26 | if (!is_array($res)) { 27 | $res = explode($delimiter, (string)$res); 28 | !is_array($res) && $res = array(); 29 | } 30 | return $res; 31 | } 32 | } -------------------------------------------------------------------------------- /framework/mobcent/db/schema/mysql/CMysqlTableSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CMysqlTableSchema represents the metadata for a MySQL table. 13 | * 14 | * @author Qiang Xue 15 | * @package system.db.schema.mysql 16 | * @since 1.0 17 | */ 18 | class CMysqlTableSchema extends CDbTableSchema 19 | { 20 | /** 21 | * @var string name of the schema (database) that this table belongs to. 22 | * Defaults to null, meaning no schema (or the current database). 23 | */ 24 | public $schemaName; 25 | } 26 | -------------------------------------------------------------------------------- /framework/mobcent/yii.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | * @package system 10 | * @since 1.0 11 | */ 12 | 13 | require(dirname(__FILE__).'/YiiBase.php'); 14 | 15 | /** 16 | * Yii is a helper class serving common framework functionalities. 17 | * 18 | * It encapsulates {@link YiiBase} which provides the actual implementation. 19 | * By writing your own Yii class, you can customize some functionalities of YiiBase. 20 | * 21 | * @author Qiang Xue 22 | * @package system 23 | * @since 1.0 24 | */ 25 | class Yii extends YiiBase 26 | { 27 | } 28 | -------------------------------------------------------------------------------- /app/config/main_include.php: -------------------------------------------------------------------------------- 1 | 8 | * @copyright 2012-2014 Appbyme 9 | */ 10 | 11 | class DiscuzDbCacheDependency extends CCacheDependency { 12 | 13 | public $reuseDependentData = true; 14 | 15 | public $sql; 16 | public $params; 17 | 18 | public function __construct($sql, $params) { 19 | $this->sql = $sql; 20 | $this->params = $params; 21 | } 22 | 23 | protected function generateDependentData() { 24 | if ($this->sql != '') { 25 | return DbUtils::getDzDbUtils(true)->queryRow($this->sql, $this->params); 26 | } 27 | else { 28 | throw new CException(Yii::t('yii','CDbCacheDependency.sql cannot be empty.')); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /app/extensions/mobcent/components/utils/CountTimer.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | class CountTimer { 11 | 12 | private $startTime; 13 | private $stopTime; 14 | 15 | public function __construct($autoStart = true) { 16 | if ($autoStart) { 17 | $this->start(); 18 | } 19 | } 20 | 21 | public function start() { 22 | $this->startTime = $this->_microtimeFloat(); 23 | } 24 | 25 | public function stop() { 26 | $this->stopTime = $this->_microtimeFloat(); 27 | return $this->stopTime - $this->startTime; 28 | } 29 | 30 | private function _microtimeFloat() { 31 | list($usec, $sec) = explode(" ", microtime()); 32 | return ((float)$usec + (float)$sec); 33 | } 34 | } -------------------------------------------------------------------------------- /app/extensions/mobcent/components/web/MobileDetectUtils.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class MobileDetectUtils { 15 | 16 | private static $_mobileDetect = null; 17 | 18 | private static function _createDetect() { 19 | !self::$_mobileDetect && self::$_mobileDetect = new Mobile_Detect; 20 | return self::$_mobileDetect; 21 | } 22 | 23 | public static function isMobile() { 24 | $detect = self::_createDetect(); 25 | return $detect->isMobile(); 26 | } 27 | 28 | public static function isMicroMessenger() { 29 | $detect = self::_createDetect(); 30 | return $detect->isMobile() && $detect->version('MicroMessenger'); 31 | } 32 | } -------------------------------------------------------------------------------- /app/modules/admin/components/AdminController.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class AdminController extends Controller 15 | { 16 | public $rootUrl = ''; 17 | public $dzRootUrl = ''; 18 | 19 | public function init() 20 | { 21 | parent::init(); 22 | 23 | global $_G; 24 | $_G['siteurl'] = substr($_G['siteurl'], 0, -16); 25 | $_G['siteroot'] = substr($_G['siteroot'], 0, -16); 26 | 27 | $this->rootUrl = Yii::app()->getBaseUrl(true); 28 | $this->dzRootUrl = substr($this->rootUrl, 0, -16); 29 | 30 | loadcache('plugin'); 31 | loadcache(MOBCENT_DZ_PLUGIN_ID); 32 | 33 | DbUtils::init(false); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /framework/mobcent/validators/CSafeValidator.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CSafeValidator marks the associated attributes to be safe for massive assignments. 13 | * 14 | * @author Qiang Xue 15 | * @package system.validators 16 | * @since 1.1 17 | */ 18 | class CSafeValidator extends CValidator 19 | { 20 | /** 21 | * Validates the attribute of the object. 22 | * If there is any error, the error message is added to the object. 23 | * @param CModel $object the object being validated 24 | * @param string $attribute the attribute being validated 25 | */ 26 | protected function validateAttribute($object,$attribute) 27 | { 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /discuz_plugin/appbyme_app/plugin.inc.php: -------------------------------------------------------------------------------- 1 | > 安米手机客户端 >> 转换接口包管理 5 | * 6 | * @author 谢建平 7 | * @copyright 2012-2014 Appbyme 8 | * @license http://opensource.org/licenses/LGPL-3.0 9 | */ 10 | 11 | if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { 12 | exit('Access Denied'); 13 | } 14 | 15 | require_once dirname(__FILE__) . '/appbyme.class.php'; 16 | Appbyme::init(); 17 | 18 | $mobcentInfo = Appbyme::getVersion(); 19 | 20 | showtagheader('div', 'forum_stype', true); 21 | showtableheader(Appbyme::lang('mobcent_infomation_appbyme')); 22 | showtablerow('', array(), array( 23 | sprintf('%s: %s', Appbyme::lang('mobcent_version_user'), $mobcentInfo['user_version']), 24 | )); 25 | showtablerow('', array(), array( 26 | sprintf('%s: %s', Appbyme::lang('mobcent_version_appbyme'), $mobcentInfo['mobcent_version']), 27 | )); 28 | showtablefooter(); 29 | showtagfooter('div'); -------------------------------------------------------------------------------- /app/controllers/user/QQLoginAction.php: -------------------------------------------------------------------------------- 1 | 4 | * @copyright 2012-2014 Appbyme 5 | */ 6 | 7 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 8 | exit('Access Denied'); 9 | } 10 | 11 | // Mobcent::setErrors(); 12 | class QQLoginAction extends CAction { 13 | 14 | public function run() { 15 | if (MobcentDiscuz::getDiscuzVersion() >= 'X3.1') { 16 | $this->_run_x31(); 17 | } else { 18 | $this->_run(); 19 | } 20 | } 21 | 22 | private function _run() { 23 | $path = Yii::getPathOfAlias('application.components.discuz.qqconnect'); 24 | require_once($path . '/connect_login_x25.php'); 25 | } 26 | 27 | private function _run_x31() { 28 | $path = Yii::getPathOfAlias('application.components.discuz.qqconnect'); 29 | require_once($path . '/connect_login_x31.php'); 30 | } 31 | } -------------------------------------------------------------------------------- /framework/mobcent/views/profile-callstack.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | $entry) 14 | { 15 | $color=($index%2)?'#F5F5F5':'#FFFFFF'; 16 | list($proc,$time,$level)=$entry; 17 | $proc=CHtml::encode($proc); 18 | $time=sprintf('%0.5f',$time); 19 | $spaces=str_repeat(' ',$level*8); 20 | 21 | echo << 23 | 24 | 25 | 26 | EOD; 27 | } 28 | ?> 29 |
5 | Profiling Callstack Report 6 |
ProcedureTime (s)
{$spaces}{$proc}{$time}
30 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/profile-callstack.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | $entry ) { 13 | $color = ($index % 2) ? '#F5F5F5' : '#FFFFFF'; 14 | list ( $proc, $time, $level ) = $entry; 15 | $proc = CHtml::encode ( $proc ); 16 | $time = sprintf ( '%0.5f', $time ); 17 | $spaces = str_repeat ( ' ', $level * 8 ); 18 | 19 | echo << 21 | 22 | 23 | 24 | EOD; 25 | } 26 | ?> 27 |
程序概要分析 - 堆栈调用报告
步骤时间 (秒)
{$spaces}{$proc}{$time}
28 | -------------------------------------------------------------------------------- /framework/mobcent/base/CExceptionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CExceptionEvent represents the parameter for the {@link CApplication::onException onException} event. 13 | * 14 | * @author Qiang Xue 15 | * @package system.base 16 | * @since 1.0 17 | */ 18 | class CExceptionEvent extends CEvent 19 | { 20 | /** 21 | * @var CException the exception that this event is about. 22 | */ 23 | public $exception; 24 | 25 | /** 26 | * Constructor. 27 | * @param mixed $sender sender of the event 28 | * @param CException $exception the exception 29 | */ 30 | public function __construct($sender,$exception) 31 | { 32 | $this->exception=$exception; 33 | parent::__construct($sender); 34 | } 35 | } -------------------------------------------------------------------------------- /framework/mobcent/db/schema/pgsql/CPgsqlCommandBuilder.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CPgsqlCommandBuilder provides basic methods to create query commands for tables. 13 | * 14 | * @author Timur Ruziev 15 | * @package system.db.schema.pgsql 16 | * @since 1.1.14 17 | */ 18 | class CPgsqlCommandBuilder extends CDbCommandBuilder 19 | { 20 | /** 21 | * Returns default value of the integer/serial primary key. Default value means that the next 22 | * autoincrement/sequence value would be used. 23 | * @return string default value of the integer/serial primary key. 24 | * @since 1.1.14 25 | */ 26 | protected function getIntegerPrimaryKeyDefaultValue() 27 | { 28 | return 'DEFAULT'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/controllers/user/SettingAction.php: -------------------------------------------------------------------------------- 1 | 5 | * @copyright 2012-2014 Appbyme 6 | */ 7 | 8 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 9 | exit('Access Denied'); 10 | } 11 | 12 | class SettingAction extends MobcentAction { 13 | 14 | public function run($setting) { 15 | $res = $this->initWebApiArray(); 16 | 17 | $uid = $this->getController()->uid; 18 | 19 | // test 20 | // $setting ='{"head": {"errCode": 0, "errInfo": ""}, "body": {"settingInfo": {"hidden": 0}, "externInfo": {}}}'; 21 | $settings = rawurldecode($setting); 22 | $settings = WebUtils::jsonDecode($settings); 23 | $settings = !empty($settings) ? $settings['body']['settingInfo'] : array(); 24 | 25 | // insert or update new settings 26 | AppbymeUserSetting::saveNewSettings($uid, $settings); 27 | 28 | echo WebUtils::outputWebApi($res, '', false); 29 | } 30 | } -------------------------------------------------------------------------------- /app/controllers/user/LocationAction.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class LocationAction extends MobcentAction { 15 | 16 | public function run($longitude, $latitude, $location) { 17 | $res = $res = $this->initWebApiArray(); 18 | 19 | // $longitude='116.3093650';$latitude='40.0611250';$location='北京市海淀区上地东路xxx'; 20 | $location = WebUtils::t(rawurldecode($location)); 21 | $this->_getSaveUserLocation($longitude, $latitude, $location); 22 | 23 | echo WebUtils::outputWebApi($res, '', false); 24 | } 25 | 26 | private function _getSaveUserLocation($longitude, $latitude, $location) { 27 | global $_G; 28 | $uid = $_G['uid']; 29 | 30 | SurroundingInfo::saveUserLocation($uid, $longitude, $latitude, $location); 31 | } 32 | } -------------------------------------------------------------------------------- /app/controllers/AppController.php: -------------------------------------------------------------------------------- 1 | 5 | * @copyright 2012-2014 Appbyme 6 | */ 7 | 8 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 9 | exit('Access Denied'); 10 | } 11 | 12 | class AppController extends MobcentController 13 | { 14 | public function actions() 15 | { 16 | return array( 17 | 'initui' => 'application.controllers.app.InitUIAction', 18 | 'moduleconfig' => 'application.controllers.app.ModuleConfigAction', 19 | 'servernotify' => 'application.controllers.app.ServerNotifyAction', 20 | 'serverupload' => 'application.controllers.app.ServerUploadAction', 21 | ); 22 | } 23 | 24 | protected function mobcentAccessRules() 25 | { 26 | return array( 27 | 'initui' => false, 28 | 'moduleconfig' => false, 29 | 'servernotify' => false, 30 | 'serverupload' => false, 31 | ); 32 | } 33 | } -------------------------------------------------------------------------------- /app/web/index.php: -------------------------------------------------------------------------------- 1 | run(); -------------------------------------------------------------------------------- /app/controllers/MessageController.php: -------------------------------------------------------------------------------- 1 | 5 | * @copyright 2012-2014 Appbyme 6 | */ 7 | 8 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 9 | exit('Access Denied'); 10 | } 11 | 12 | class MessageController extends MobcentController { 13 | 14 | public function actions() { 15 | return array( 16 | 'heart' => 'application.controllers.message.HeartAction', 17 | 'pmlist' => 'application.controllers.message.PMListAction', 18 | 'pmadmin' => 'application.controllers.message.PMAdminAction', 19 | 'pmsessionlist' => 'application.controllers.message.PMSessionListAction', 20 | 'notifylist' => 'application.controllers.message.NotifyListAction', 21 | ); 22 | } 23 | 24 | protected function mobcentAccessRules() { 25 | return array( 26 | 'heart' => true, 27 | 'pmlist' => true, 28 | 'pmsessionlist' => true, 29 | 'pmadmin' => true, 30 | 'notifylist' => true, 31 | ); 32 | } 33 | } -------------------------------------------------------------------------------- /app/controllers/app/ModuleConfigAction.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class ModuleConfigAction extends MobcentAction { 15 | 16 | public function run($moduleId) { 17 | $res = $this->initWebApiArray(); 18 | $res['body'] = $this->_getModuleconfig($moduleId); 19 | $res['head']['errInfo'] = ''; 20 | echo WebUtils::outputWebApi($res, 'utf-8', false); 21 | } 22 | 23 | private function _getModuleconfig($moduleId) { 24 | $module = array('padding' => ''); 25 | foreach (AppbymeUIDiyModel::getModules() as $tmpModule) { 26 | if ($tmpModule['id'] == $moduleId) { 27 | $module = AppUtils::filterModule($tmpModule); 28 | break; 29 | } 30 | } 31 | return array( 32 | 'module' => $module, 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /framework/mobcent/db/schema/mssql/CMssqlTableSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Christophe Boulain 7 | * @link http://www.yiiframework.com/ 8 | * @copyright 2008-2013 Yii Software LLC 9 | * @license http://www.yiiframework.com/license/ 10 | */ 11 | 12 | /** 13 | * CMssqlTableSchema represents the metadata for a MSSQL table. 14 | * 15 | * @author Qiang Xue 16 | * @author Christophe Boulain 17 | * @package system.db.schema.mssql 18 | */ 19 | class CMssqlTableSchema extends CDbTableSchema 20 | { 21 | /** 22 | * @var string name of the catalog (database) that this table belongs to. 23 | * Defaults to null, meaning no schema (or the current database). 24 | */ 25 | public $catalogName; 26 | /** 27 | * @var string name of the schema that this table belongs to. 28 | * Defaults to null, meaning no schema (or the current database owner). 29 | */ 30 | public $schemaName; 31 | } 32 | -------------------------------------------------------------------------------- /framework/mobcent/web/COutputEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * COutputEvent represents the parameter for events related with output handling. 13 | * 14 | * An event handler may retrieve the captured {@link output} for further processing. 15 | * 16 | * @author Qiang Xue 17 | * @package system.web 18 | * @since 1.0 19 | */ 20 | class COutputEvent extends CEvent 21 | { 22 | /** 23 | * @var string the output to be processed. The processed output should be stored back to this property. 24 | */ 25 | public $output; 26 | 27 | /** 28 | * Constructor. 29 | * @param mixed $sender sender of the event 30 | * @param string $output the output to be processed 31 | */ 32 | public function __construct($sender,$output) 33 | { 34 | parent::__construct($sender); 35 | $this->output=$output; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /discuz_plugin/appbyme_app/uninstall.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | * @license http://opensource.org/licenses/LGPL-3.0 9 | */ 10 | 11 | if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { 12 | exit('Access Denied'); 13 | } 14 | 15 | $sql = << 5 | * @copyright 2012-2014 Appbyme 6 | */ 7 | 8 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 9 | exit('Access Denied'); 10 | } 11 | 12 | class PortalController extends MobcentController { 13 | 14 | public function actions() { 15 | return array( 16 | 'commentlist' => 'application.controllers.portal.CommentListAction', 17 | 'commentadmin' => 'application.controllers.portal.CommentAdminAction', 18 | 'modulelist' => 'application.controllers.portal.ModuleListAction', 19 | 'newslist' => 'application.controllers.portal.NewsListAction', 20 | 'newsview' => 'application.controllers.portal.NewsViewAction', 21 | ); 22 | } 23 | 24 | protected function mobcentAccessRules() { 25 | return array( 26 | 'commentlist' => false, 27 | 'commentadmin' => true, 28 | 'modulelist' => false, 29 | 'newslist' => false, 30 | 'newsview' => false, 31 | ); 32 | } 33 | } -------------------------------------------------------------------------------- /app/components/Controller.php: -------------------------------------------------------------------------------- 1 | 4 | * @copyright 2012-2014 Appbyme 5 | */ 6 | 7 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 8 | exit('Access Denied'); 9 | } 10 | 11 | /** 12 | * Controller is the customized base controller class. 13 | * All controller classes for this application should extend from this base class. 14 | */ 15 | class Controller extends CController 16 | { 17 | /** 18 | * @var string the default layout for the controller view. Defaults to '//layouts/column1', 19 | * meaning using a single column layout. See 'protected/views/layouts/column1.php'. 20 | */ 21 | public $layout='//layouts/column1'; 22 | /** 23 | * @var array context menu items. This property will be assigned to {@link CMenu::items}. 24 | */ 25 | public $menu=array(); 26 | /** 27 | * @var array the breadcrumbs of the current page. The value of this property will 28 | * be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links} 29 | * for more details on how to specify this property. 30 | */ 31 | public $breadcrumbs=array(); 32 | } -------------------------------------------------------------------------------- /framework/mobcent/db/CDbException.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CDbException represents an exception that is caused by some DB-related operations. 13 | * 14 | * @author Qiang Xue 15 | * @package system.db 16 | * @since 1.0 17 | */ 18 | class CDbException extends CException 19 | { 20 | /** 21 | * @var mixed the error info provided by a PDO exception. This is the same as returned 22 | * by {@link http://www.php.net/manual/en/pdo.errorinfo.php PDO::errorInfo}. 23 | * @since 1.1.4 24 | */ 25 | public $errorInfo; 26 | 27 | /** 28 | * Constructor. 29 | * @param string $message PDO error message 30 | * @param integer $code PDO error code 31 | * @param mixed $errorInfo PDO error info 32 | */ 33 | public function __construct($message,$code=0,$errorInfo=null) 34 | { 35 | $this->errorInfo=$errorInfo; 36 | parent::__construct($message,$code); 37 | } 38 | } -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/error503.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 目前服务不可用 8 | 18 | 19 | 20 |

目前服务不可用

21 |

22 | 系统目前正在维护中,请稍候再试. 23 |

24 |

25 | 对此带来的不便,深感歉意. 26 |

27 |
28 | 29 |
30 | 31 | -------------------------------------------------------------------------------- /framework/mobcent/base/CModelEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | 12 | /** 13 | * CModelEvent class. 14 | * 15 | * CModelEvent represents the event parameters needed by events raised by a model. 16 | * 17 | * @author Qiang Xue 18 | * @package system.base 19 | * @since 1.0 20 | */ 21 | class CModelEvent extends CEvent 22 | { 23 | /** 24 | * @var boolean whether the model is in valid status and should continue its normal method execution cycles. Defaults to true. 25 | * For example, when this event is raised in a {@link CFormModel} object that is executing {@link CModel::beforeValidate}, 26 | * if this property is set false by the event handler, the {@link CModel::validate} method will quit after handling this event. 27 | * If true, the normal execution cycles will continue, including performing the real validations and calling 28 | * {@link CModel::afterValidate}. 29 | */ 30 | public $isValid=true; 31 | } 32 | -------------------------------------------------------------------------------- /app/controllers/app/InitUIAction.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class InitUIAction extends MobcentAction { 15 | 16 | public function run($custom=0) { 17 | $res = $this->initWebApiArray(); 18 | $res['body'] = $this->_getUIconfig($custom); 19 | $res['head']['errInfo'] = ''; 20 | echo WebUtils::outputWebApi($res, 'utf-8', false); 21 | } 22 | 23 | private function _getUIconfig($custom) { 24 | $moduleList = array(); 25 | foreach (AppbymeUIDiyModel::getModules() as $module) { 26 | if (!$custom && $module['type'] == AppbymeUIDiyModel::MODULE_TYPE_CUSTOM) { 27 | $module['componentList'] = array(); 28 | } 29 | $moduleList[] = AppUtils::filterModule($module); 30 | } 31 | 32 | return array( 33 | 'navigation' => AppbymeUIDiyModel::getNavigationInfo(), 34 | 'moduleList' => $moduleList, 35 | ); 36 | } 37 | } -------------------------------------------------------------------------------- /framework/mobcent/validators/CUnsafeValidator.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CUnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned. 13 | * 14 | * @author Qiang Xue 15 | * @package system.validators 16 | * @since 1.0 17 | */ 18 | class CUnsafeValidator extends CValidator 19 | { 20 | /** 21 | * @var boolean whether attributes listed with this validator should be considered safe for massive assignment. 22 | * Defaults to false. 23 | * @since 1.1.4 24 | */ 25 | public $safe=false; 26 | /** 27 | * Validates the attribute of the object. 28 | * This validator does not do any validation as it is meant 29 | * to only mark attributes as unsafe. 30 | * @param CModel $object the object being validated 31 | * @param string $attribute the attribute being validated 32 | */ 33 | protected function validateAttribute($object,$attribute) 34 | { 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /framework/mobcent/base/CHttpException.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CHttpException represents an exception caused by invalid operations of end-users. 13 | * 14 | * The HTTP error code can be obtained via {@link statusCode}. 15 | * Error handlers may use this status code to decide how to format the error page. 16 | * 17 | * @author Qiang Xue 18 | * @package system.base 19 | * @since 1.0 20 | */ 21 | class CHttpException extends CException 22 | { 23 | /** 24 | * @var integer HTTP status code, such as 403, 404, 500, etc. 25 | */ 26 | public $statusCode; 27 | 28 | /** 29 | * Constructor. 30 | * @param integer $status HTTP status code, such as 404, 500, etc. 31 | * @param string $message error message 32 | * @param integer $code error code 33 | */ 34 | public function __construct($status,$message=null,$code=0) 35 | { 36 | $this->statusCode=$status; 37 | parent::__construct($message,$code); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /framework/mobcent/i18n/gettext/CGettextFile.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CGettextFile is the base class for representing a Gettext message file. 13 | * 14 | * @author Qiang Xue 15 | * @package system.i18n.gettext 16 | * @since 1.0 17 | */ 18 | abstract class CGettextFile extends CComponent 19 | { 20 | /** 21 | * Loads messages from a file. 22 | * @param string $file file path 23 | * @param string $context message context 24 | * @return array message translations (source message => translated message) 25 | */ 26 | abstract public function load($file,$context); 27 | /** 28 | * Saves messages to a file. 29 | * @param string $file file path 30 | * @param array $messages message translations (message id => translated message). 31 | * Note if the message has a context, the message id must be prefixed with 32 | * the context with chr(4) as the separator. 33 | */ 34 | abstract public function save($file,$messages); 35 | } 36 | -------------------------------------------------------------------------------- /framework/mobcent/views/error503.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Service Unavailable 8 | 18 | 19 | 20 |

Service Unavailable

21 |

22 | Our system is currently under maintenance. Please come back later. 23 |

24 |

25 | Thank you. 26 |

27 |
28 | 29 |
30 | 31 | -------------------------------------------------------------------------------- /Config/dynamicobject.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/log.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | '#DFFFE0', 17 | CLogger::LEVEL_INFO=>'#FFFFDF', 18 | CLogger::LEVEL_WARNING=>'#FFDFE5', 19 | CLogger::LEVEL_ERROR=>'#FFC0CB', 20 | ); 21 | foreach($data as $index=>$log) 22 | { 23 | $color=($index%2)?'#F5F5F5':'#FFFFFF'; 24 | if(isset($colors[$log[1]])) 25 | $color=$colors[$log[1]]; 26 | $message='
'.CHtml::encode(wordwrap($log[0])).'
'; 27 | $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000); 28 | 29 | echo << 31 | 32 | 33 | 34 | 35 | 36 | EOD; 37 | } 38 | ?> 39 |
5 | 程序日志 6 |
时间等级类别信息
{$time}{$log[1]}{$log[2]}{$message}
40 | -------------------------------------------------------------------------------- /model/table/x25/table_forum_typeoption.php: -------------------------------------------------------------------------------- 1 | _table = 'forum_typeoption'; 12 | $this->_pk = 'typeid'; 13 | 14 | parent::__construct(); 15 | } 16 | 17 | 18 | public function fetch_all_by_classid($classid,$order = 'asc') { 19 | $result=DB::fetch_all('SELECT optionid, classid as classifiedTopId,title as classifiedTitle,identifier as classifiedName,type as classifiedType,rules as classifiedRules FROM %t WHERE '.DB::field('classid', $classid).($order ? 'ORDER BY '.DB::order('displayorder', $order) : ''), 20 | array($this->_table)); 21 | return $result; 22 | } 23 | 24 | 25 | function fetch_info_by_classid($sortid){ 26 | $sql = "SELECT a.optionid,a.classid as classifiedTopId,a.title as classifiedTitle,a.identifier as classifiedName,a.type as classifiedType,a.rules as classifiedRules,b.* FROM %t as a left join %t as b on a.optionid=b.optionid WHERE b.sortid=".$sortid." order by b.displayorder asc"; 27 | $arr = array ('forum_typeoption','forum_typevar'); 28 | return DB::fetch_all($sql,$arr); 29 | } 30 | } 31 | 32 | ?> -------------------------------------------------------------------------------- /app/models/DzCommonSession.php: -------------------------------------------------------------------------------- 1 | queryRow(' 30 | SELECT * 31 | FROM %t 32 | WHERE uid=%d 33 | ', 34 | array('common_session', $uid) 35 | ); 36 | } 37 | 38 | public static function insertComSess($data) { 39 | return DbUtils::getDzDbUtils(true)->insert('common_session', $data); 40 | } 41 | 42 | public static function delComSess($uid) { 43 | return DbUtils::getDzDbUtils(true)->delete('common_session', array('uid'=> $uid)); 44 | } 45 | 46 | } -------------------------------------------------------------------------------- /app/modules/admin/AdminModule.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class AdminModule extends CWebModule 15 | { 16 | public $controllerMap = array( 17 | 'uidiy' => 'application.modules.admin.controllers.UIDiyController', 18 | 'wshdiy' => 'application.modules.admin.controllers.WshDiyController', 19 | ); 20 | 21 | public function init() 22 | { 23 | $this->setImport(array( 24 | // 'admin.models.*', 25 | 'admin.components.*', 26 | )); 27 | 28 | header("Content-Type: text/html; charset=utf-8"); 29 | header("Cache-Control: no-cache, must-revalidate"); 30 | header('Pragma: no-cache'); 31 | } 32 | 33 | public function beforeControllerAction($controller, $action) 34 | { 35 | if (!($controller->id == 'index' && $action->id == 'login') && !UserUtils::isInAppbymeAdminGroup()) { 36 | $controller->redirect(Yii::app()->createAbsoluteUrl('admin/index/login')); 37 | } 38 | return true; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/error403.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 未被授权 8 | 18 | 19 | 20 |

未被授权

21 |

22 |

23 | 你没有访问此页面的授权. 24 |

25 |

26 | 如果您认为此错误是服务器造成的,请与管理员联系 . 27 |

28 |
29 | 30 |
31 | 32 | -------------------------------------------------------------------------------- /framework/mobcent/web/widgets/pagers/pager.css: -------------------------------------------------------------------------------- 1 | /** 2 | * CSS styles for CLinkPager. 3 | * 4 | * @author Qiang Xue 5 | * @link http://www.yiiframework.com/ 6 | * @copyright 2008-2010 Yii Software LLC 7 | * @license http://www.yiiframework.com/license/ 8 | * @since 1.0 9 | */ 10 | 11 | ul.yiiPager 12 | { 13 | font-size:11px; 14 | border:0; 15 | margin:0; 16 | padding:0; 17 | line-height:100%; 18 | display:inline; 19 | } 20 | 21 | ul.yiiPager li 22 | { 23 | display:inline; 24 | } 25 | 26 | ul.yiiPager a:link, 27 | ul.yiiPager a:visited 28 | { 29 | border:solid 1px #9aafe5; 30 | font-weight:bold; 31 | color:#0e509e; 32 | padding:1px 6px; 33 | text-decoration:none; 34 | } 35 | 36 | ul.yiiPager .page a 37 | { 38 | font-weight:normal; 39 | } 40 | 41 | ul.yiiPager a:hover 42 | { 43 | border:solid 1px #0e509e; 44 | } 45 | 46 | ul.yiiPager .selected a 47 | { 48 | background:#2e6ab1; 49 | color:#FFFFFF; 50 | font-weight:bold; 51 | } 52 | 53 | ul.yiiPager .hidden a 54 | { 55 | border:solid 1px #DEDEDE; 56 | color:#888888; 57 | } 58 | 59 | /** 60 | * Hide first and last buttons by default. 61 | */ 62 | ul.yiiPager .first, 63 | ul.yiiPager .last 64 | { 65 | display:none; 66 | } -------------------------------------------------------------------------------- /app/models/AppbymePoralModule.php: -------------------------------------------------------------------------------- 1 | queryAll(' 31 | SELECT * 32 | FROM %t 33 | ORDER BY displayorder ASC 34 | ', 35 | array('appbyme_portal_module') 36 | ); 37 | } 38 | 39 | // 40 | public static function getModuleParam($mid) { 41 | return DbUtils::getDzDbUtils(true)->queryScalar(' 42 | SELECT param 43 | FROM %t 44 | WHERE mid=%d 45 | ', 46 | array('appbyme_portal_module', $mid) 47 | ); 48 | } 49 | 50 | } -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/error400.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 请求错误 8 | 18 | 19 | 20 |

请求错误

21 |

22 |

23 | 由于语法错误,服务器无法解析. 24 | 请修改请求后重试. 25 |

26 |

27 | 如果您认为此错误是服务器造成的,请与管理员联系 . 28 |

29 |
30 | 31 |
32 | 33 | -------------------------------------------------------------------------------- /framework/mobcent/db/schema/sqlite/CSqliteColumnSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CSqliteColumnSchema class describes the column meta data of a SQLite table. 13 | * 14 | * @author Qiang Xue 15 | * @package system.db.schema.sqlite 16 | * @since 1.0 17 | */ 18 | class CSqliteColumnSchema extends CDbColumnSchema 19 | { 20 | /** 21 | * Extracts the default value for the column. 22 | * The value is typecasted to correct PHP type. 23 | * @param mixed $defaultValue the default value obtained from metadata 24 | */ 25 | protected function extractDefault($defaultValue) 26 | { 27 | if($this->dbType==='timestamp' && $defaultValue==='CURRENT_TIMESTAMP') 28 | $this->defaultValue=null; 29 | else 30 | $this->defaultValue=$this->typecast(strcasecmp($defaultValue,'null') ? $defaultValue : null); 31 | 32 | if($this->type==='string' && $this->defaultValue!==null) // PHP 5.2.6 adds single quotes while 5.2.0 doesn't 33 | $this->defaultValue=trim($this->defaultValue,"'\""); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /framework/mobcent/views/log.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | '#DFFFE0', 17 | CLogger::LEVEL_INFO=>'#FFFFDF', 18 | CLogger::LEVEL_WARNING=>'#FFDFE5', 19 | CLogger::LEVEL_ERROR=>'#FFC0CB', 20 | ); 21 | foreach($data as $index=>$log) 22 | { 23 | $color=($index%2)?'#F5F5F5':'#FFFFFF'; 24 | if(isset($colors[$log[1]])) 25 | $color=$colors[$log[1]]; 26 | $message='
'.CHtml::encode(wordwrap($log[0])).'
'; 27 | $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000)); 28 | 29 | echo << 31 | 32 | 33 | 34 | 35 | 36 | EOD; 37 | } 38 | ?> 39 |
5 | Application Log 6 |
TimestampLevelCategoryMessage
{$time}{$log[1]}{$log[2]}{$message}
40 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/error500.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 服务器内部错误 8 | 9 | 19 | 20 | 21 | 22 |

服务器内部错误

23 |

24 |

25 | 当前网页服务器在处理您的请求时,发生了一个内部错误. 26 | 请将此问题报告给服务器管理员 . 27 |

28 |

29 | 谢谢. 30 |

31 |
32 | 33 |
34 | 35 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/error404.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 无法找到网页 8 | 18 | 19 | 20 |

无法找到网页

21 |

22 |

23 | 服务器无法找到请求的 URL 所对应的网页. 24 | 如果您是手动输入URL, 请检查是否拼写无误后重试. 25 |

26 |

27 | 如果您认为此错误是服务器造成的,请与管理员联系 . 28 |

29 |
30 | 31 |
32 | 33 | -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/module_mobile_ui/news.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | $title = $module['title']; 10 | $newInfo = $module['componentList']; 11 | ?> 12 | 13 |
14 |
15 | $component) { $icon = $component['icon']; ?> 16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 24 |
25 |
26 | 27 |
28 |
29 | -------------------------------------------------------------------------------- /app/controllers/user/RegisterAction.php: -------------------------------------------------------------------------------- 1 | initWebApiArray(); 21 | $res = $this->_register($res, $username, $password, $email); 22 | echo WebUtils::outputWebApi($res, '', false); 23 | } 24 | 25 | private function _register($res, $username, $password, $email) { 26 | $regInfo = UserUtils::register($username, $password, $email); 27 | if ($regInfo['errcode']) { 28 | return $this->makeErrorInfo($res, $regInfo['message']); 29 | } 30 | $userInfo = AppbymeUserAccess::registerProcess($regInfo['info']['uid'], $password); 31 | $res['token'] = (string)$userInfo['token']; 32 | $res['secret'] = (string)$userInfo['secret']; 33 | $res['uid'] = (int)$regInfo['info']['uid']; 34 | return $res; 35 | } 36 | } -------------------------------------------------------------------------------- /app/models/DzForumActivity.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class DzForumActivity extends DiscuzAR { 15 | 16 | public static function model($className=__CLASS__) { 17 | return parent::model($className); 18 | } 19 | 20 | public function tableName() { 21 | return '{{forum_activity}}'; 22 | } 23 | 24 | public function rules() { 25 | return array( 26 | ); 27 | } 28 | 29 | public static function getActivityByTid($tid) { 30 | return DbUtils::getDzDbUtils(true)->queryRow(' 31 | SELECT * 32 | FROM %t 33 | WHERE tid=%d 34 | ', 35 | array('forum_activity', $tid) 36 | ); 37 | } 38 | 39 | // 更新活动报名的人数 40 | public static function updateApplyNumberByTid($tid) { 41 | return DbUtils::getDzDbUtils(true)->query(' 42 | UPDATE %t 43 | SET applynumber=%d 44 | WHERE tid=%d 45 | ', 46 | array('forum_activity', DzForumActivityApply::getCountByTid($tid), $tid) 47 | ); 48 | } 49 | } -------------------------------------------------------------------------------- /framework/mobcent/views/error403.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Unauthorized 8 | 18 | 19 | 20 |

Unauthorized

21 |

22 |

23 | You do not have the proper credential to access this page. 24 |

25 |

26 | If you think this is a server error, please contact . 27 |

28 |
29 | 30 |
31 | 32 | -------------------------------------------------------------------------------- /app/controllers/user/SaveAlbumAction.php: -------------------------------------------------------------------------------- 1 | initWebApiArray(); 22 | $res = $this->_saveAlbum($ids, $picDesc, $albumId); 23 | echo WebUtils::outputWebApi($res, '', false); 24 | } 25 | 26 | private function _saveAlbum($ids, $picDesc, $albumId) { 27 | global $_G; 28 | $ids = rawurldecode($ids); 29 | $picDesc = WebUtils::t(rawurldecode($picDesc)); 30 | $pidIdArray = explode(',', $ids); 31 | 32 | foreach ($pidIdArray as $picid) { 33 | C::t('home_pic')->update_for_uid($_G['uid'], $picid, array('title' => $picDesc, 'albumid' => $albumId)); 34 | } 35 | 36 | require_once libfile('function/spacecp'); 37 | album_update_pic($albumId); 38 | return $this->makeErrorInfo($res, 'mobcent_save_album_success', array('noError' => 1, 'alert' => 1)); 39 | } 40 | } -------------------------------------------------------------------------------- /framework/mobcent/db/schema/mssql/CMssqlSqlsrvPdoAdapter.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * This is an extension of default PDO class for MSSQL SQLSRV driver only. 13 | * It provides workaround of the improperly implemented functionalities of PDO SQLSRV driver. 14 | * 15 | * @author Timur Ruziev 16 | * @package system.db.schema.mssql 17 | * @since 1.1.13 18 | */ 19 | class CMssqlSqlsrvPdoAdapter extends PDO 20 | { 21 | /** 22 | * Returns last inserted ID value. 23 | * SQLSRV driver supports PDO::lastInsertId() with one peculiarity: when $sequence's value is null or empty 24 | * string it returns empty string. But when parameter is not specified at all it's working as expected 25 | * and returns actual last inserted ID (like other PDO drivers). 26 | * 27 | * @param string|null $sequence the sequence name. Defaults to null. 28 | * @return integer last inserted ID value. 29 | */ 30 | public function lastInsertId($sequence=null) 31 | { 32 | if(!$sequence) 33 | return parent::lastInsertId(); 34 | return parent::lastInsertId($sequence); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/error.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 错误 <?php echo $data['code']; ?> 8 | 9 | 19 | 20 | 21 | 22 |

错误

23 |

24 |

25 | 当网页服务器处理您的请求时, 发生以上错误. 26 |

27 |

28 | 如果您认为此错误是服务器造成的,请与管理员联系 . 29 |

30 |

31 | 谢谢. 32 |

33 |
34 | 35 |
36 | 37 | -------------------------------------------------------------------------------- /framework/mobcent/base/CErrorEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CErrorEvent represents the parameter for the {@link CApplication::onError onError} event. 13 | * 14 | * @author Qiang Xue 15 | * @package system.base 16 | * @since 1.0 17 | */ 18 | class CErrorEvent extends CEvent 19 | { 20 | /** 21 | * @var string error code 22 | */ 23 | public $code; 24 | /** 25 | * @var string error message 26 | */ 27 | public $message; 28 | /** 29 | * @var string error message 30 | */ 31 | public $file; 32 | /** 33 | * @var string error file 34 | */ 35 | public $line; 36 | 37 | /** 38 | * Constructor. 39 | * @param mixed $sender sender of the event 40 | * @param string $code error code 41 | * @param string $message error message 42 | * @param string $file error file 43 | * @param integer $line error line 44 | */ 45 | public function __construct($sender,$code,$message,$file,$line) 46 | { 47 | $this->code=$code; 48 | $this->message=$message; 49 | $this->file=$file; 50 | $this->line=$line; 51 | parent::__construct($sender); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/about.php: -------------------------------------------------------------------------------- 1 | 9 |
10 |
    11 |
  • 应用介绍:这是一个神奇的APP,由安米全力打造免费提供给各位用户使用的APP

  • 12 |
  • 反馈邮箱:mobcetn@qq.com

  • 13 |
  • 官方网站:http://www.appbyme.com

  • 14 |
  • 新浪微博:http://weibo.com

  • 15 |
  • 腾讯微博:http://t.qq.com

  • 16 |
    17 | 18 |

    扫扫我

    19 |

    version 1.0.3 bulid 423e

    20 |

    扫描二维码即可下载该应用

    21 |
    22 |
23 |
-------------------------------------------------------------------------------- /framework/mobcent/views/error500.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Internal Server Error 8 | 9 | 19 | 20 | 21 | 22 |

Internal Server Error

23 |

24 |

25 | An internal error occurred while the Web server was processing your request. 26 | Please contact to report this problem. 27 |

28 |

29 | Thank you. 30 |

31 |
32 | 33 |
34 | 35 | -------------------------------------------------------------------------------- /app/models/DzForumAnnouncement.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class DzForumAnnouncement extends DiscuzAR { 15 | 16 | const TYPE_URL = 1; 17 | const TYPE_TEXT = 0; 18 | 19 | public static function model($className=__CLASS__) { 20 | return parent::model($className); 21 | } 22 | 23 | public function tableName() { 24 | return '{{forum_announcement}}'; 25 | } 26 | 27 | public function rules() { 28 | return array( 29 | ); 30 | } 31 | 32 | public static function getAnnouncements() { 33 | return DbUtils::getDzDbUtils(true)->queryAll(' 34 | SELECT * 35 | FROM %t 36 | WHERE endtime > %d 37 | ORDER BY displayorder DESC, starttime DESC 38 | ', 39 | array('forum_announcement', time()) 40 | ); 41 | } 42 | 43 | public static function getAnnouncementByUid($uid) { 44 | return DbUtils::getDzDbUtils(true)->queryRow(' 45 | SELECT * 46 | FROM %t 47 | WHERE id = %d 48 | ', 49 | array('forum_announcement', $uid) 50 | ); 51 | } 52 | } -------------------------------------------------------------------------------- /framework/mobcent/views/zh_cn/profile-summary.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | $entry) 20 | { 21 | $color=($index%2)?'#F5F5F5':'#FFFFFF'; 22 | $proc=CHtml::encode($entry[0]); 23 | $min=sprintf('%0.5f',$entry[2]); 24 | $max=sprintf('%0.5f',$entry[3]); 25 | $total=sprintf('%0.5f',$entry[4]); 26 | $average=sprintf('%0.5f',$entry[4]/$entry[1]); 27 | 28 | echo << 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | EOD; 38 | } 39 | ?> 40 |
5 | 程序概要分析 - 报告概述 6 | (时间: getExecutionTime()); ?> 秒, 7 | 内存: getMemoryUsage()/1024); ?>KB) 8 |
程序数量总计 (秒)平均 (秒)最小 (秒)最大 (秒)
{$proc}{$entry[1]}{$total}{$average}{$min}{$max}
41 | -------------------------------------------------------------------------------- /framework/mobcent/views/error400.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Bad Request 8 | 18 | 19 | 20 |

Bad Request

21 |

22 |

23 | The request could not be understood by the server due to malformed syntax. 24 | Please do not repeat the request without modifications. 25 |

26 |

27 | If you think this is a server error, please contact . 28 |

29 |
30 | 31 |
32 | 33 | -------------------------------------------------------------------------------- /framework/mobcent/views/error404.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Page Not Found 8 | 18 | 19 | 20 |

Page Not Found

21 |

22 |

23 | The requested URL was not found on this server. 24 | If you entered the URL manually please check your spelling and try again. 25 |

26 |

27 | If you think this is a server error, please contact . 28 |

29 |
30 | 31 |
32 | 33 | -------------------------------------------------------------------------------- /app/modules/admin/models/AppbymeWshDiyModel.php: -------------------------------------------------------------------------------- 1 | queryAll(' 21 | SELECT * 22 | FROM %t 23 | ', 24 | array('appbyme_service') 25 | ); 26 | } 27 | 28 | public static function getModuleById($id) { 29 | return DbUtils::getDzDbUtils(true)->queryRow(' 30 | SELECT * 31 | FROM %t 32 | WHERE id=%d 33 | ', 34 | array('appbyme_service', $id) 35 | ); 36 | } 37 | 38 | public static function insertModule($data) { 39 | return DbUtils::getDzDbUtils(true)->insert('appbyme_service', $data); 40 | } 41 | 42 | public static function updateModule($mid, $data) { 43 | return DbUtils::getDzDbUtils(true)->update('appbyme_service', $data, array('id' => $mid)); 44 | } 45 | 46 | public static function delModule($mid) { 47 | return DbUtils::getDzDbUtils(true)->delete('appbyme_service', array('id' => $mid)); 48 | } 49 | 50 | 51 | } -------------------------------------------------------------------------------- /framework/mobcent/views/profile-summary.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | $entry) 20 | { 21 | $color=($index%2)?'#F5F5F5':'#FFFFFF'; 22 | $proc=CHtml::encode($entry[0]); 23 | $min=sprintf('%0.5f',$entry[2]); 24 | $max=sprintf('%0.5f',$entry[3]); 25 | $total=sprintf('%0.5f',$entry[4]); 26 | $average=sprintf('%0.5f',$entry[4]/$entry[1]); 27 | 28 | echo << 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | EOD; 38 | } 39 | ?> 40 |
5 | Profiling Summary Report 6 | (Time: getExecutionTime()); ?>s, 7 | Memory: getMemoryUsage()/1024); ?>KB) 8 |
ProcedureCountTotal (s)Avg. (s)Min. (s)Max. (s)
{$proc}{$entry[1]}{$total}{$average}{$min}{$max}
41 | -------------------------------------------------------------------------------- /app/models/DzCommonMember.php: -------------------------------------------------------------------------------- 1 | queryRow(' 31 | SELECT * 32 | FROM %t 33 | WHERE username=%s 34 | ', 35 | array('common_member', $username) 36 | ); 37 | } 38 | 39 | public static function updateMember($data, $condition) { 40 | return DbUtils::getDzDbUtils(true)->update('common_member', $data, $condition); 41 | } 42 | 43 | public static function getInfoByAuthorid($authorid) { 44 | return DbUtils::getDzDbUtils(true)->queryRow(' 45 | SELECT * 46 | FROM %t 47 | WHERE uid=%d 48 | ', 49 | array('common_member', $authorid) 50 | ); 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /app/models/DzCommonPlugin.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class DzCommonPlugin extends DiscuzAR { 15 | 16 | public static function model($className=__CLASS__) { 17 | return parent::model($className); 18 | } 19 | 20 | public function tableName() { 21 | return '{{common_plugin}}'; 22 | } 23 | 24 | public function rules() { 25 | return array( 26 | ); 27 | } 28 | 29 | public static function isQQConnectionAvailable() { 30 | $count = (int)DbUtils::getDzDbUtils(true)->queryScalar(' 31 | SELECT COUNT(*) 32 | FROM %t 33 | WHERE identifier=%s 34 | AND available=%d 35 | ', 36 | array('common_plugin', 'qqconnect', 1) 37 | ); 38 | return $count > 0; 39 | } 40 | 41 | public static function isDsuPaulsignAvailable() { 42 | $count = (int)DbUtils::getDzDbUtils(true)->queryScalar(' 43 | SELECT COUNT(*) 44 | FROM %t 45 | WHERE identifier=%s 46 | AND available=%d 47 | ', 48 | array('common_plugin', 'dsu_paulsign', 1) 49 | ); 50 | return $count > 0; 51 | } 52 | } -------------------------------------------------------------------------------- /framework/mobcent/views/error.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Error <?php echo $data['code']; ?> 8 | 9 | 19 | 20 | 21 | 22 |

Error

23 |

24 |

25 | The above error occurred when the Web server was processing your request. 26 |

27 |

28 | If you think this is a server error, please contact . 29 |

30 |

31 | Thank you. 32 |

33 |
34 | 35 |
36 | 37 | -------------------------------------------------------------------------------- /framework/mobcent/web/helpers/CJavaScriptExpression.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright Copyright © 2012 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CJavaScriptExpression represents a JavaScript expression that does not need escaping. 13 | * It can be passed to {@link CJavaScript::encode()} and the code will stay as is. 14 | * 15 | * @author Alexander Makarov 16 | * @package system.web.helpers 17 | * @since 1.1.11 18 | */ 19 | class CJavaScriptExpression 20 | { 21 | /** 22 | * @var string the javascript expression wrapped by this object 23 | */ 24 | public $code; 25 | 26 | /** 27 | * @param string $code a javascript expression that is to be wrapped by this object 28 | * @throws CException if argument is not a string 29 | */ 30 | public function __construct($code) 31 | { 32 | if(!is_string($code)) 33 | throw new CException('Value passed to CJavaScriptExpression should be a string.'); 34 | if(strpos($code, 'js:')===0) 35 | $code=substr($code,3); 36 | $this->code=$code; 37 | } 38 | 39 | /** 40 | * String magic method 41 | * @return string the javascript expression wrapped by this object 42 | */ 43 | public function __toString() 44 | { 45 | return $this->code; 46 | } 47 | } -------------------------------------------------------------------------------- /framework/mobcent/logging/CChainedLogFilter.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CChainedLogFilter allows you to attach multiple log filters to a log route (See {@link CLogRoute::$filter} for details). 13 | * 14 | * @author Carsten Brandt 15 | * @package system.logging 16 | * @since 1.1.13 17 | */ 18 | class CChainedLogFilter extends CComponent implements ILogFilter 19 | { 20 | /** 21 | * @var array list of filters to apply to the logs. 22 | * The value of each array element will be passed to {@link Yii::createComponent} to create 23 | * a log filter object. As a result, this can be either a string representing the 24 | * filter class name or an array representing the filter configuration. 25 | * In general, the log filter classes should implement {@link ILogFilter} interface. 26 | * Filters will be applied in the order they are defined. 27 | */ 28 | public $filters=array(); 29 | 30 | /** 31 | * Filters the given log messages by applying all filters configured by {@link filters}. 32 | * @param array $logs the log messages 33 | */ 34 | public function filter(&$logs) 35 | { 36 | foreach($this->filters as $filter) 37 | Yii::createComponent($filter)->filter($logs); 38 | } 39 | } -------------------------------------------------------------------------------- /app/components/MobcentAction.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class MobcentAction extends CAction { 15 | 16 | /** 17 | * runWithCache 18 | * 19 | * @param string $key 20 | * @param array $params 21 | */ 22 | protected function runWithCache($key, $params=array()) { 23 | $cache = $this->getCacheInfo(); 24 | 25 | $res = array(); 26 | if (!$cache['enable'] || ($res = Yii::app()->cache->get($key)) === false) { 27 | $res = WebUtils::outputWebApi($this->getResult($params), '', false); 28 | if ($cache['enable']) { 29 | Yii::app()->cache->set($key, $res, $cache['expire']); 30 | } 31 | } 32 | 33 | echo $res; 34 | } 35 | 36 | protected function getCacheInfo() { 37 | return array('enable' => 0, 'expire' => 60,); 38 | } 39 | 40 | protected function getResult($params=array()) { 41 | return array(); 42 | } 43 | 44 | protected function initWebApiArray() { 45 | return WebUtils::initWebApiArray_oldVersion(); 46 | } 47 | 48 | protected function makeErrorInfo($res, $message, $params=array()) { 49 | return WebUtils::makeErrorInfo_oldVersion($res, $message, $params); 50 | } 51 | } -------------------------------------------------------------------------------- /framework/mobcent/db/schema/mysql/CMysqlCommandBuilder.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CMysqlCommandBuilder provides basic methods to create query commands for tables. 13 | * 14 | * @author Carsten Brandt 15 | * @package system.db.schema.mysql 16 | * @since 1.1.13 17 | */ 18 | class CMysqlCommandBuilder extends CDbCommandBuilder 19 | { 20 | /** 21 | * Alters the SQL to apply JOIN clause. 22 | * This method handles the mysql specific syntax where JOIN has to come before SET in UPDATE statement 23 | * and for DELETE where JOIN has to be after FROM part. 24 | * @param string $sql the SQL statement to be altered 25 | * @param string $join the JOIN clause (starting with join type, such as INNER JOIN) 26 | * @return string the altered SQL statement 27 | */ 28 | public function applyJoin($sql,$join) 29 | { 30 | if($join=='') 31 | return $sql; 32 | 33 | if(strpos($sql,'UPDATE')===0 && ($pos=strpos($sql,'SET'))!==false) 34 | return substr($sql,0,$pos).$join.' '.substr($sql,$pos); 35 | elseif(strpos($sql,'DELETE FROM ')===0) 36 | { 37 | $tableName=substr($sql,12); 38 | return "DELETE {$tableName} FROM {$tableName} ".$join; 39 | } 40 | else 41 | return $sql.' '.$join; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /framework/mobcent/web/auth/schema-mssql.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by CDbAuthManager. 3 | * 4 | * @author Qiang Xue 5 | * @link http://www.yiiframework.com/ 6 | * @copyright 2008 Yii Software LLC 7 | * @license http://www.yiiframework.com/license/ 8 | * @since 1.0 9 | */ 10 | 11 | drop table if exists [AuthAssignment]; 12 | drop table if exists [AuthItemChild]; 13 | drop table if exists [AuthItem]; 14 | 15 | create table [AuthItem] 16 | ( 17 | [name] varchar(64) not null, 18 | [type] integer not null, 19 | [description] text, 20 | [bizrule] text, 21 | [data] text, 22 | primary key ([name]) 23 | ); 24 | 25 | create table [AuthItemChild] 26 | ( 27 | [parent] varchar(64) not null, 28 | [child] varchar(64) not null, 29 | primary key ([parent],[child]), 30 | foreign key ([parent]) references [AuthItem] ([name]) on delete cascade on update cascade, 31 | foreign key ([child]) references [AuthItem] ([name]) on delete cascade on update cascade 32 | ); 33 | 34 | create table [AuthAssignment] 35 | ( 36 | [itemname] varchar(64) not null, 37 | [userid] varchar(64) not null, 38 | [bizrule] text, 39 | [data] text, 40 | primary key ([itemname],[userid]), 41 | foreign key ([itemname]) references [AuthItem] ([name]) on delete cascade on update cascade 42 | ); 43 | -------------------------------------------------------------------------------- /framework/mobcent/web/auth/schema-oci.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by CDbAuthManager. 3 | * 4 | * @author Qiang Xue 5 | * @link http://www.yiiframework.com/ 6 | * @copyright 2008 Yii Software LLC 7 | * @license http://www.yiiframework.com/license/ 8 | * @since 1.0 9 | */ 10 | 11 | drop table if exists "AuthAssignment"; 12 | drop table if exists "AuthItemChild"; 13 | drop table if exists "AuthItem"; 14 | 15 | create table "AuthItem" 16 | ( 17 | "name" varchar(64) not null, 18 | "type" integer not null, 19 | "description" text, 20 | "bizrule" text, 21 | "data" text, 22 | primary key ("name") 23 | ); 24 | 25 | create table "AuthItemChild" 26 | ( 27 | "parent" varchar(64) not null, 28 | "child" varchar(64) not null, 29 | primary key ("parent","child"), 30 | foreign key ("parent") references "AuthItem" ("name") on delete cascade on update cascade, 31 | foreign key ("child") references "AuthItem" ("name") on delete cascade on update cascade 32 | ); 33 | 34 | create table "AuthAssignment" 35 | ( 36 | "itemname" varchar(64) not null, 37 | "userid" varchar(64) not null, 38 | "bizrule" text, 39 | "data" text, 40 | primary key ("itemname","userid"), 41 | foreign key ("itemname") references "AuthItem" ("name") on delete cascade on update cascade 42 | ); 43 | -------------------------------------------------------------------------------- /framework/mobcent/web/auth/schema-pgsql.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by CDbAuthManager. 3 | * 4 | * @author Qiang Xue 5 | * @link http://www.yiiframework.com/ 6 | * @copyright 2008 Yii Software LLC 7 | * @license http://www.yiiframework.com/license/ 8 | * @since 1.0 9 | */ 10 | 11 | drop table if exists "AuthAssignment"; 12 | drop table if exists "AuthItemChild"; 13 | drop table if exists "AuthItem"; 14 | 15 | create table "AuthItem" 16 | ( 17 | "name" varchar(64) not null, 18 | "type" integer not null, 19 | "description" text, 20 | "bizrule" text, 21 | "data" text, 22 | primary key ("name") 23 | ); 24 | 25 | create table "AuthItemChild" 26 | ( 27 | "parent" varchar(64) not null, 28 | "child" varchar(64) not null, 29 | primary key ("parent","child"), 30 | foreign key ("parent") references "AuthItem" ("name") on delete cascade on update cascade, 31 | foreign key ("child") references "AuthItem" ("name") on delete cascade on update cascade 32 | ); 33 | 34 | create table "AuthAssignment" 35 | ( 36 | "itemname" varchar(64) not null, 37 | "userid" varchar(64) not null, 38 | "bizrule" text, 39 | "data" text, 40 | primary key ("itemname","userid"), 41 | foreign key ("itemname") references "AuthItem" ("name") on delete cascade on update cascade 42 | ); 43 | -------------------------------------------------------------------------------- /framework/mobcent/web/auth/schema-sqlite.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by CDbAuthManager. 3 | * 4 | * @author Qiang Xue 5 | * @link http://www.yiiframework.com/ 6 | * @copyright 2008 Yii Software LLC 7 | * @license http://www.yiiframework.com/license/ 8 | * @since 1.0 9 | */ 10 | 11 | drop table if exists 'AuthAssignment'; 12 | drop table if exists 'AuthItemChild'; 13 | drop table if exists 'AuthItem'; 14 | 15 | create table 'AuthItem' 16 | ( 17 | "name" varchar(64) not null, 18 | "type" integer not null, 19 | "description" text, 20 | "bizrule" text, 21 | "data" text, 22 | primary key ("name") 23 | ); 24 | 25 | create table 'AuthItemChild' 26 | ( 27 | "parent" varchar(64) not null, 28 | "child" varchar(64) not null, 29 | primary key ("parent","child"), 30 | foreign key ("parent") references 'AuthItem' ("name") on delete cascade on update cascade, 31 | foreign key ("child") references 'AuthItem' ("name") on delete cascade on update cascade 32 | ); 33 | 34 | create table 'AuthAssignment' 35 | ( 36 | "itemname" varchar(64) not null, 37 | "userid" varchar(64) not null, 38 | "bizrule" text, 39 | "data" text, 40 | primary key ("itemname","userid"), 41 | foreign key ("itemname") references 'AuthItem' ("name") on delete cascade on update cascade 42 | ); 43 | -------------------------------------------------------------------------------- /app/extensions/mobcent/components/web/UploadUtils.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class UploadUtils { 15 | 16 | public static function getTempAvatarPath() { 17 | return self::makeBasePath(MOBCENT_RUNTIME_PATH.'/avatar'); 18 | } 19 | 20 | public static function getUploadImageBasePath($suffixPath='') { 21 | $tempPath = $suffixPath != '' ? '/'.$suffixPath : ''; 22 | $basePath = sprintf('%s%s', MOBCENT_UPLOAD_PATH.'/image', $tempPath); 23 | return self::makeBasePath($basePath); 24 | } 25 | 26 | public static function getUploadImageBaseUrlPath() { 27 | return MOBCENT_UPLOAD_URL_PATH . '/image'; 28 | } 29 | 30 | public static function getUploadAudioBaseUrlPath() { 31 | return MOBCENT_UPLOAD_URL_PATH . '/audio'; 32 | } 33 | 34 | public static function getUploadAudioBasePath($suffixPath='') { 35 | $tempPath = $suffixPath != '' ? '/'.$suffixPath : ''; 36 | $basePath = sprintf('%s%s', MOBCENT_UPLOAD_PATH.'/audio', $tempPath); 37 | return self::makeBasePath($basePath); 38 | } 39 | 40 | public static function makeBasePath($path) { 41 | if (!is_dir($path)) { 42 | mkdir($path, 0777, true); 43 | } 44 | return is_writable($path) ? $path : ''; 45 | } 46 | } -------------------------------------------------------------------------------- /framework/mobcent/web/auth/schema-mysql.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by CDbAuthManager. 3 | * 4 | * @author Qiang Xue 5 | * @link http://www.yiiframework.com/ 6 | * @copyright 2008 Yii Software LLC 7 | * @license http://www.yiiframework.com/license/ 8 | * @since 1.0 9 | */ 10 | 11 | drop table if exists `AuthAssignment`; 12 | drop table if exists `AuthItemChild`; 13 | drop table if exists `AuthItem`; 14 | 15 | create table `AuthItem` 16 | ( 17 | `name` varchar(64) not null, 18 | `type` integer not null, 19 | `description` text, 20 | `bizrule` text, 21 | `data` text, 22 | primary key (`name`) 23 | ) engine InnoDB; 24 | 25 | create table `AuthItemChild` 26 | ( 27 | `parent` varchar(64) not null, 28 | `child` varchar(64) not null, 29 | primary key (`parent`,`child`), 30 | foreign key (`parent`) references `AuthItem` (`name`) on delete cascade on update cascade, 31 | foreign key (`child`) references `AuthItem` (`name`) on delete cascade on update cascade 32 | ) engine InnoDB; 33 | 34 | create table `AuthAssignment` 35 | ( 36 | `itemname` varchar(64) not null, 37 | `userid` varchar(64) not null, 38 | `bizrule` text, 39 | `data` text, 40 | primary key (`itemname`,`userid`), 41 | foreign key (`itemname`) references `AuthItem` (`name`) on delete cascade on update cascade 42 | ) engine InnoDB; 43 | -------------------------------------------------------------------------------- /framework/mobcent/web/widgets/CClipWidget.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CClipWidget records its content and makes it available elsewhere. 13 | * 14 | * Content rendered between its {@link init()} and {@link run()} calls are saved 15 | * as a clip in the controller. The clip is named after the widget ID. 16 | * 17 | * See {@link CBaseController::beginClip} and {@link CBaseController::endClip} 18 | * for a shortcut usage of CClipWidget. 19 | * 20 | * @author Qiang Xue 21 | * @package system.web.widgets 22 | * @since 1.0 23 | */ 24 | class CClipWidget extends CWidget 25 | { 26 | /** 27 | * @var boolean whether to render the clip content in place. Defaults to false, 28 | * meaning the captured clip will not be displayed. 29 | */ 30 | public $renderClip=false; 31 | 32 | /** 33 | * Starts recording a clip. 34 | */ 35 | public function init() 36 | { 37 | ob_start(); 38 | ob_implicit_flush(false); 39 | } 40 | 41 | /** 42 | * Ends recording a clip. 43 | * This method stops output buffering and saves the rendering result as a named clip in the controller. 44 | */ 45 | public function run() 46 | { 47 | $clip=ob_get_clean(); 48 | if($this->renderClip) 49 | echo $clip; 50 | $this->getController()->getClips()->add($this->getId(),$clip); 51 | } 52 | } -------------------------------------------------------------------------------- /app/models/DzCommonUserGroup.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class DzCommonUserGroup extends DiscuzAR { 15 | 16 | public static function model($className=__CLASS__) { 17 | return parent::model($className); 18 | } 19 | 20 | public function tableName() { 21 | return '{{common_usergroup}}'; 22 | } 23 | 24 | public function rules() { 25 | return array( 26 | ); 27 | } 28 | 29 | public static function getAllowVisitGids() { 30 | return DbUtils::getDzDbUtils(true)->queryColumn(' 31 | SELECT groupid 32 | FROM %t 33 | WHERE allowvisit>0', 34 | array('common_usergroup') 35 | ); 36 | } 37 | 38 | public static function getUserGroupsByGids($gids) { 39 | $gids = ArrayUtils::explode($gids); 40 | $usergroupCacheNames = array(); 41 | foreach ($gids as $gid) { 42 | $usergroupCacheNames[$gid] = 'usergroup_'.$gid; 43 | } 44 | loadcache($usergroupCacheNames); 45 | 46 | $usergroups = array(); 47 | global $_G; 48 | foreach ($usergroupCacheNames as $gid => $usergroup) { 49 | $usergroups[$gid] = is_array($_G['cache'][$usergroup]) ? $_G['cache'][$usergroup] : array(); 50 | } 51 | return $usergroups; 52 | } 53 | } -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/component_mobile_ui/recommendUserlist.php: -------------------------------------------------------------------------------- 1 | rootUrl."/index.php?r=user/userlist&type=recommend&pageSize=10&page=1&accessToken=8d5478c77477933169ab8cfde10b5&accessSecret=a57002aab240f3ff831d868b623ff"; 9 | $info = WebUtils::httpRequest($url, 30); 10 | $info = WebUtils::jsondecode($info);*/ 11 | ?> 12 |
13 | 14 |
15 | -------------------------------------------------------------------------------- /framework/mobcent/collections/CTypedMap.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CTypedMap represents a map whose items are of the certain type. 13 | * 14 | * CTypedMap extends {@link CMap} by making sure that the elements to be 15 | * added to the list is of certain class type. 16 | * 17 | * @author Qiang Xue 18 | * @package system.collections 19 | * @since 1.0 20 | */ 21 | class CTypedMap extends CMap 22 | { 23 | private $_type; 24 | 25 | /** 26 | * Constructor. 27 | * @param string $type class type 28 | */ 29 | public function __construct($type) 30 | { 31 | $this->_type=$type; 32 | } 33 | 34 | /** 35 | * Adds an item into the map. 36 | * This method overrides the parent implementation by 37 | * checking the item to be inserted is of certain type. 38 | * @param integer $index the specified position. 39 | * @param mixed $item new item 40 | * @throws CException If the index specified exceeds the bound, 41 | * the map is read-only or the element is not of the expected type. 42 | */ 43 | public function add($index,$item) 44 | { 45 | if($item instanceof $this->_type) 46 | parent::add($index,$item); 47 | else 48 | throw new CException(Yii::t('yii','CTypedMap<{type}> can only hold objects of {type} class.', 49 | array('{type}'=>$this->_type))); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /app/modules/admin/views/uidiy/module_mobile_ui/subnav.php: -------------------------------------------------------------------------------- 1 | $v){ 11 | if(!$v['title']){ 12 | unset($module['componentList'][$k]); 13 | } 14 | } 15 | $subnavInfo = $module['componentList']; 16 | $j = $module['select'] ? intval($module['select']) : 0; 17 | if(!empty($subnavInfo)){ 18 | ?> 19 |
20 | 27 | renderPartial('component_mobile_ui', array( 28 | 'component' => $subnavInfo[$j], 29 | )); 30 | ?> 31 |
32 | 33 | -------------------------------------------------------------------------------- /framework/mobcent/collections/CTypedList.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | /** 12 | * CTypedList represents a list whose items are of the certain type. 13 | * 14 | * CTypedList extends {@link CList} by making sure that the elements to be 15 | * added to the list is of certain class type. 16 | * 17 | * @author Qiang Xue 18 | * @package system.collections 19 | * @since 1.0 20 | */ 21 | class CTypedList extends CList 22 | { 23 | private $_type; 24 | 25 | /** 26 | * Constructor. 27 | * @param string $type class type 28 | */ 29 | public function __construct($type) 30 | { 31 | $this->_type=$type; 32 | } 33 | 34 | /** 35 | * Inserts an item at the specified position. 36 | * This method overrides the parent implementation by 37 | * checking the item to be inserted is of certain type. 38 | * @param integer $index the specified position. 39 | * @param mixed $item new item 40 | * @throws CException If the index specified exceeds the bound, 41 | * the list is read-only or the element is not of the expected type. 42 | */ 43 | public function insertAt($index,$item) 44 | { 45 | if($item instanceof $this->_type) 46 | parent::insertAt($index,$item); 47 | else 48 | throw new CException(Yii::t('yii','CTypedList<{type}> can only hold objects of {type} class.', 49 | array('{type}'=>$this->_type))); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /framework/mobcent/web/actions/CInlineAction.php: -------------------------------------------------------------------------------- 1 | 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008-2013 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | */ 10 | 11 | 12 | /** 13 | * CInlineAction represents an action that is defined as a controller method. 14 | * 15 | * The method name is like 'actionXYZ' where 'XYZ' stands for the action name. 16 | * 17 | * @author Qiang Xue 18 | * @package system.web.actions 19 | * @since 1.0 20 | */ 21 | class CInlineAction extends CAction 22 | { 23 | /** 24 | * Runs the action. 25 | * The action method defined in the controller is invoked. 26 | * This method is required by {@link CAction}. 27 | */ 28 | public function run() 29 | { 30 | $method='action'.$this->getId(); 31 | $this->getController()->$method(); 32 | } 33 | 34 | /** 35 | * Runs the action with the supplied request parameters. 36 | * This method is internally called by {@link CController::runAction()}. 37 | * @param array $params the request parameters (name=>value) 38 | * @return boolean whether the request parameters are valid 39 | * @since 1.1.7 40 | */ 41 | public function runWithParams($params) 42 | { 43 | $methodName='action'.$this->getId(); 44 | $controller=$this->getController(); 45 | $method=new ReflectionMethod($controller, $methodName); 46 | if($method->getNumberOfParameters()>0) 47 | return $this->runWithParamsInternal($controller, $method, $params); 48 | else 49 | return $controller->$methodName(); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /app/controllers/app/ServerUploadAction.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2012-2014 Appbyme 8 | */ 9 | 10 | if (!defined('IN_DISCUZ') || !defined('IN_APPBYME')) { 11 | exit('Access Denied'); 12 | } 13 | 14 | class ServerUploadAction extends MobcentAction 15 | { 16 | public function run($type='add_certfile_apns') 17 | { 18 | $res = $this->initWebApiArray(); 19 | 20 | $res = $this->_doUpload($res, $type); 21 | 22 | echo WebUtils::outputWebApi($res, '', false); 23 | } 24 | 25 | private function _doUpload($res, $type) 26 | { 27 | $config = WebUtils::getMobcentConfig('misc'); 28 | $path = $config['apnsCertfilePath']; 29 | $certfileAPNs = $path.'/'.$config['apnsCertfileName']; 30 | 31 | if ($type == 'add_certfile_apns') { 32 | $password = (string)$_POST['passphrase']; 33 | 34 | if (UploadUtils::makeBasePath($path)) { 35 | if (!empty($_FILES) && count($_FILES) && is_uploaded_file($_FILES['file']['tmp_name']) && !$_FILES['file']['error']) { 36 | FileUtils::saveFile($certfileAPNs, file_get_contents($_FILES['file']['tmp_name'])); 37 | AppbymeConfig::setAPNsCertfilePassword($password); 38 | } else { 39 | $res = $this->makeErrorInfo($res, WebUtils::t('上传失败')); 40 | } 41 | } 42 | } else if ($type == 'del_certfile_apns') { 43 | FileUtils::safeDeleteFile($certfileAPNs); 44 | } 45 | 46 | return $res; 47 | } 48 | } -------------------------------------------------------------------------------- /discuz_plugin/appbyme_app/download.inc.php: -------------------------------------------------------------------------------- 1 | > 安米手机客户端 >> 下载页面 5 | * 6 | * @author 谢建平 7 | * @copyright 2012-2014 Appbyme 8 | * @license http://opensource.org/licenses/LGPL-3.0 9 | */ 10 | 11 | if (!defined('IN_DISCUZ')) { 12 | exit('Access Denied'); 13 | } 14 | 15 | require_once dirname(__FILE__) . '/appbyme.class.php'; 16 | Appbyme::init(); 17 | 18 | global $_G; 19 | $_G['disabledwidthauto'] = 1; 20 | $appInfo = Appbyme::getAppbymeConfig('app_download_options'); 21 | !empty($appInfo['cvalue']) && $appInfo = unserialize($appInfo['cvalue']); 22 | $appName = $appInfo['appName']; 23 | $appImage = $appInfo['appImage']; 24 | $appIcon = $appInfo['appIcon']; 25 | $appDescribe = $appInfo['appDescribe']; 26 | $androidDownloadUrl = $appInfo['appDownloadUrl']['android']; 27 | $appleDownloadUrl = $appInfo['appDownloadUrl']['apple']; 28 | $appleMobileDownloadUrl = $appInfo['appDownloadUrl']['appleMobile']; 29 | $androidQRCode = $appInfo['appQRCode']['android']; 30 | $appleQRCode = $appInfo['appQRCode']['apple']; 31 | $assetsBaseUrlPath = $_G['siteurl'].'/source/plugin/'.Appbyme::PLUGIN_ID.'/template'; 32 | 33 | list($navtitle, $metadescription, $metakeywords) = Appbyme::getSeoSetting('download'); 34 | if(!$navtitle) { 35 | $navtitle = Appbyme::lang('appbyme_seo_title_download'); 36 | $nobbname = false; 37 | } else { 38 | $nobbname = true; 39 | } 40 | !$metadescription && $metadescription = $navtitle; 41 | !$metakeywords && $metakeywords = $navtitle; 42 | 43 | $isFromWeixin = strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false; 44 | 45 | include template('appbyme_app:download'); 46 | -------------------------------------------------------------------------------- /app/web/index-test.php: -------------------------------------------------------------------------------- 1 | run(); 30 | 31 | // var_dump(xdebug_time_index()); 32 | // var_dump(xhprof_sample_disable()); 33 | // $xhprof_data = xhprof_disable(); 34 | 35 | // $XHPROF_ROOT = '/home/xjp/projects/web/xhprof'; 36 | 37 | // include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_lib.php"; 38 | // include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_runs.php"; 39 | 40 | // $xhprof_runs = new XHProfRuns_Default(); 41 | // $run_id = $xhprof_runs->save_run($xhprof_data, "xhprof_testing"); 42 | 43 | // echo "http://localhost/xhprof/xhprof_html/index.php?run={$run_id}&source=xhprof_testing\n"; 44 | --------------------------------------------------------------------------------