├── README.md ├── connect └── config.php ├── public ├── css │ ├── main.css │ ├── fonts │ │ ├── icons.eot │ │ ├── icons.ttf │ │ ├── icons.woff │ │ └── icons.woff2 │ ├── page.css │ └── login.css ├── images │ ├── line.png │ ├── avatar.jpg │ ├── face │ │ ├── 1.gif │ │ ├── 2.gif │ │ ├── 3.gif │ │ ├── 4.gif │ │ ├── 5.gif │ │ ├── 6.gif │ │ ├── 7.gif │ │ ├── 8.gif │ │ ├── 9.gif │ │ ├── 10.gif │ │ ├── 11.gif │ │ ├── 12.gif │ │ ├── 13.gif │ │ ├── 14.gif │ │ ├── 15.gif │ │ ├── 16.gif │ │ ├── 17.gif │ │ ├── 18.gif │ │ ├── 19.gif │ │ ├── 20.gif │ │ ├── 21.gif │ │ ├── 22.gif │ │ ├── 23.gif │ │ ├── 24.gif │ │ ├── 25.gif │ │ ├── 26.gif │ │ ├── 27.gif │ │ ├── 28.gif │ │ ├── 29.gif │ │ ├── 30.gif │ │ ├── 31.gif │ │ ├── 32.gif │ │ ├── 33.gif │ │ ├── 34.gif │ │ ├── 35.gif │ │ ├── 36.gif │ │ ├── 37.gif │ │ ├── 38.gif │ │ ├── 39.gif │ │ ├── 40.gif │ │ ├── 41.gif │ │ ├── 42.gif │ │ ├── 43.gif │ │ ├── 44.gif │ │ ├── 45.gif │ │ ├── 46.gif │ │ ├── 47.gif │ │ ├── 48.gif │ │ ├── 49.gif │ │ ├── 50.gif │ │ ├── 51.gif │ │ ├── 52.gif │ │ ├── 53.gif │ │ ├── 54.gif │ │ ├── 55.gif │ │ ├── 56.gif │ │ ├── 57.gif │ │ ├── 58.gif │ │ ├── 59.gif │ │ ├── 60.gif │ │ ├── 61.gif │ │ ├── 62.gif │ │ ├── 63.gif │ │ ├── 64.gif │ │ ├── 65.gif │ │ ├── 66.gif │ │ ├── 67.gif │ │ ├── 68.gif │ │ ├── 69.gif │ │ ├── 70.gif │ │ ├── 71.gif │ │ ├── 72.gif │ │ ├── 73.gif │ │ ├── 74.gif │ │ └── 75.gif │ ├── header.jpg │ ├── my_bg.jpg │ ├── my_bg.png │ ├── my_bg1.png │ ├── steve.jpg │ ├── body_bg.png │ ├── ico_layer.png │ ├── login_bg.jpg │ ├── login_bg.png │ ├── my_bg01.png │ ├── my_bg05.png │ ├── steve_01.png │ ├── steve_02.png │ ├── steve_03.png │ ├── steve_04.png │ ├── steve_05.png │ ├── steve_06.png │ ├── steve_07.png │ ├── steve_08.png │ ├── steve_09.png │ ├── icon_photo.png │ ├── login_logo.png │ ├── mr_book_PHP.png │ ├── my_bg_other.png │ ├── my_info_bg.png │ ├── search_btn.png │ ├── search_btn2.png │ ├── search_btn3.png │ ├── weibo_show.png │ ├── local_upload.png │ ├── login_banner.png │ ├── mr_book_JAVA.png │ ├── weibo_banner.png │ ├── weibo_show_on.png │ ├── mr_book_Android.png │ ├── local_upload_close.png │ ├── upload │ │ ├── head_image │ │ │ ├── steve.jpg │ │ │ ├── 57b6b3eac095f.jpg │ │ │ ├── 57b8171dc4cbd.jpg │ │ │ ├── 57b817afba239.jpg │ │ │ ├── 57ba9968667a8.jpg │ │ │ ├── 57bc22cd3ac3f.jpg │ │ │ ├── 57bc230da3e9d.jpg │ │ │ ├── 57bc2370de2f1.jpg │ │ │ ├── 57bc2420db06b.jpg │ │ │ ├── 57c77af929ac2.jpg │ │ │ ├── 57c77b1964b76.jpg │ │ │ ├── 57c7b5e5b00f5.jpg │ │ │ ├── 57e0ee0036e0d.jpg │ │ │ ├── 57e0ee10c62d1.jpg │ │ │ ├── 57e9d70b8e596.jpg │ │ │ ├── 57e9d72fa64a7.jpg │ │ │ ├── 57e9d73b5a484.jpg │ │ │ ├── 57e9dafa93ddd.jpg │ │ │ ├── 57e9dc396f8c2.jpg │ │ │ ├── 57e9e3e35a5c1.jpg │ │ │ ├── 57e9e596e8eab.jpg │ │ │ ├── 57e9e5d58090e.jpg │ │ │ ├── 57e9e685f29a3.jpg │ │ │ ├── 57e9e78962081.jpg │ │ │ ├── 57ea2089c9470.jpg │ │ │ ├── 57ecd1df6bba3.jpg │ │ │ ├── 580dbd55a7a22.jpg │ │ │ ├── 5810149cdccf6.jpg │ │ │ └── 58116c953aaf5.jpg │ │ └── post │ │ │ ├── 147505143936869.jpg │ │ │ ├── 147505143939542.jpg │ │ │ ├── 147505143948820.jpg │ │ │ ├── 147505143950718.jpg │ │ │ ├── 147505143950874.jpg │ │ │ ├── 147505143979213.jpg │ │ │ ├── 147511605024977.jpg │ │ │ ├── 147744737234884.png │ │ │ ├── 147744737397481.jpg │ │ │ ├── 147745077724589.jpg │ │ │ ├── 147745077725652.jpg │ │ │ ├── 147745077757658.jpg │ │ │ ├── 147745077772652.jpg │ │ │ ├── 147745077773786.jpg │ │ │ ├── 147745077777898.jpg │ │ │ ├── 147745077785912.jpg │ │ │ ├── 147745077797160.jpg │ │ │ ├── 147745079614199.jpg │ │ │ ├── 147745079616122.jpg │ │ │ ├── 147745079621802.jpg │ │ │ ├── 147745079627748.jpg │ │ │ ├── 147745079652835.jpg │ │ │ ├── 147745079661196.jpg │ │ │ ├── 147745079668796.jpg │ │ │ ├── 147745079678560.jpg │ │ │ ├── 147745079684805.jpg │ │ │ ├── 147745079692125.jpg │ │ │ ├── 147745137517937.jpg │ │ │ ├── 147745137546227.jpg │ │ │ ├── 147745137597453.jpg │ │ │ ├── 147745137617544.jpg │ │ │ ├── 147745137691757.jpg │ │ │ ├── 147745160422716.jpg │ │ │ ├── 147745160434719.jpg │ │ │ ├── 147745160442415.jpg │ │ │ ├── 147745160453096.jpg │ │ │ ├── 147745160496618.jpg │ │ │ ├── 147745160498019.jpg │ │ │ └── 158873332125928.png │ └── weibo_list_bottom_message.png ├── static │ ├── plupload │ │ ├── Moxie.swf │ │ ├── Moxie.xap │ │ ├── jquery.plupload.queue │ │ │ └── img │ │ │ │ ├── done.gif │ │ │ │ ├── delete.gif │ │ │ │ ├── error.gif │ │ │ │ ├── buttons.png │ │ │ │ ├── throbber.gif │ │ │ │ ├── transp50.png │ │ │ │ ├── backgrounds.gif │ │ │ │ └── buttons-disabled.png │ │ ├── jquery.ui.plupload │ │ │ └── img │ │ │ │ ├── loading.gif │ │ │ │ └── plupload.png │ │ └── i18n │ │ │ ├── mn.js │ │ │ ├── sr_RS.js │ │ │ ├── sq.js │ │ │ ├── zh_CN.js │ │ │ ├── zh_TW.js │ │ │ ├── ko.js │ │ │ ├── ja.js │ │ │ ├── he.js │ │ │ ├── hy.js │ │ │ ├── sr.js │ │ │ ├── sv.js │ │ │ ├── et.js │ │ │ ├── en.js │ │ │ ├── da.js │ │ │ ├── az.js │ │ │ ├── tr.js │ │ │ ├── cy.js │ │ │ ├── ar.js │ │ │ ├── th_TH.js │ │ │ ├── fa.js │ │ │ ├── lt.js │ │ │ ├── pl.js │ │ │ ├── ms.js │ │ │ ├── it.js │ │ │ ├── ka.js │ │ │ ├── kk.js │ │ │ ├── km.js │ │ │ ├── cs.js │ │ │ ├── sk.js │ │ │ ├── fi.js │ │ │ ├── es.js │ │ │ ├── id.js │ │ │ ├── bs.js │ │ │ ├── hu.js │ │ │ ├── de.js │ │ │ ├── hr.js │ │ │ ├── ro.js │ │ │ ├── pt_BR.js │ │ │ ├── nl.js │ │ │ ├── lv.js │ │ │ ├── ru.js │ │ │ ├── el.js │ │ │ ├── uk_UA.js │ │ │ └── fr.js │ ├── highslide │ │ ├── graphics │ │ │ ├── close.png │ │ │ ├── icon.gif │ │ │ ├── closeX.png │ │ │ ├── loader.gif │ │ │ ├── resize.gif │ │ │ ├── zoomin.cur │ │ │ ├── zoomout.cur │ │ │ ├── fullexpand.gif │ │ │ ├── controlbar2.gif │ │ │ ├── controlbar3.gif │ │ │ ├── controlbar4.gif │ │ │ ├── geckodimmer.png │ │ │ ├── loader.white.gif │ │ │ ├── scrollarrows.png │ │ │ ├── controlbar-white.gif │ │ │ ├── controlbar4-hover.gif │ │ │ ├── outlines │ │ │ │ ├── Outlines.psd │ │ │ │ ├── beveled.png │ │ │ │ ├── drop-shadow.png │ │ │ │ ├── glossy-dark.png │ │ │ │ ├── outer-glow.png │ │ │ │ ├── rounded-black.png │ │ │ │ └── rounded-white.png │ │ │ ├── controlbar-white-small.gif │ │ │ ├── controlbar-black-border.gif │ │ │ └── controlbar-text-buttons.png │ │ └── highslide-ie6.css │ └── layer │ │ └── skin │ │ ├── default │ │ ├── icon.png │ │ ├── icon-ext.png │ │ ├── loading-0.gif │ │ ├── loading-1.gif │ │ └── loading-2.gif │ │ └── layer.ext.css └── js │ ├── meitu.js │ └── textarea.js ├── 效果图 ├── 2018-04-12_101819.png └── 2018-04-12_101855.png ├── deletePic.php ├── view ├── common │ ├── footer.php │ ├── page.php │ ├── reply-weibo.php │ ├── header.html │ ├── head.html │ └── profile.php ├── at-me.php ├── mypraise-list.php ├── search-list.php ├── mypost-list.php ├── index-list.php ├── friends-list.php ├── myfans-list.php ├── homepage-list.php ├── forward-list.php └── forward-layer.php ├── library ├── logs │ ├── 2016-10-24.txt │ ├── 2016-12-28.txt │ ├── 2016-09-26.txt │ ├── 2016-10-27.txt │ └── 2016-11-24.txt └── Log.class.php ├── logout.php ├── setting.php ├── ajaxCheckLogin.php ├── getForward.php ├── ajaxRegister.php ├── getComment.php ├── saveSetting.php ├── changePassword.php ├── praise.php ├── upload.php ├── myFans.php ├── friends.php ├── collect.php ├── message.php ├── imageUploadForm.php ├── atMe.php ├── follow.php ├── index.php ├── forward.php ├── myPraise.php ├── comment.php ├── myPost.php ├── search.php ├── homepage.php ├── myCollect.php └── ajaxAction.php /README.md: -------------------------------------------------------------------------------- 1 | ## 歆语微博 2 | 3 | 一个简单微博项目,php+mysql+apache开发,个人购买资料的项目练习,适合新手练习。 4 | -------------------------------------------------------------------------------- /connect/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/connect/config.php -------------------------------------------------------------------------------- /public/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/css/main.css -------------------------------------------------------------------------------- /public/images/line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/line.png -------------------------------------------------------------------------------- /public/images/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/avatar.jpg -------------------------------------------------------------------------------- /public/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/1.gif -------------------------------------------------------------------------------- /public/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/2.gif -------------------------------------------------------------------------------- /public/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/3.gif -------------------------------------------------------------------------------- /public/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/4.gif -------------------------------------------------------------------------------- /public/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/5.gif -------------------------------------------------------------------------------- /public/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/6.gif -------------------------------------------------------------------------------- /public/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/7.gif -------------------------------------------------------------------------------- /public/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/8.gif -------------------------------------------------------------------------------- /public/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/9.gif -------------------------------------------------------------------------------- /public/images/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/header.jpg -------------------------------------------------------------------------------- /public/images/my_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_bg.jpg -------------------------------------------------------------------------------- /public/images/my_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_bg.png -------------------------------------------------------------------------------- /public/images/my_bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_bg1.png -------------------------------------------------------------------------------- /public/images/steve.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve.jpg -------------------------------------------------------------------------------- /public/css/fonts/icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/css/fonts/icons.eot -------------------------------------------------------------------------------- /public/css/fonts/icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/css/fonts/icons.ttf -------------------------------------------------------------------------------- /public/css/fonts/icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/css/fonts/icons.woff -------------------------------------------------------------------------------- /public/images/body_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/body_bg.png -------------------------------------------------------------------------------- /public/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/10.gif -------------------------------------------------------------------------------- /public/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/11.gif -------------------------------------------------------------------------------- /public/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/12.gif -------------------------------------------------------------------------------- /public/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/13.gif -------------------------------------------------------------------------------- /public/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/14.gif -------------------------------------------------------------------------------- /public/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/15.gif -------------------------------------------------------------------------------- /public/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/16.gif -------------------------------------------------------------------------------- /public/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/17.gif -------------------------------------------------------------------------------- /public/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/18.gif -------------------------------------------------------------------------------- /public/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/19.gif -------------------------------------------------------------------------------- /public/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/20.gif -------------------------------------------------------------------------------- /public/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/21.gif -------------------------------------------------------------------------------- /public/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/22.gif -------------------------------------------------------------------------------- /public/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/23.gif -------------------------------------------------------------------------------- /public/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/24.gif -------------------------------------------------------------------------------- /public/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/25.gif -------------------------------------------------------------------------------- /public/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/26.gif -------------------------------------------------------------------------------- /public/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/27.gif -------------------------------------------------------------------------------- /public/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/28.gif -------------------------------------------------------------------------------- /public/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/29.gif -------------------------------------------------------------------------------- /public/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/30.gif -------------------------------------------------------------------------------- /public/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/31.gif -------------------------------------------------------------------------------- /public/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/32.gif -------------------------------------------------------------------------------- /public/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/33.gif -------------------------------------------------------------------------------- /public/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/34.gif -------------------------------------------------------------------------------- /public/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/35.gif -------------------------------------------------------------------------------- /public/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/36.gif -------------------------------------------------------------------------------- /public/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/37.gif -------------------------------------------------------------------------------- /public/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/38.gif -------------------------------------------------------------------------------- /public/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/39.gif -------------------------------------------------------------------------------- /public/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/40.gif -------------------------------------------------------------------------------- /public/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/41.gif -------------------------------------------------------------------------------- /public/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/42.gif -------------------------------------------------------------------------------- /public/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/43.gif -------------------------------------------------------------------------------- /public/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/44.gif -------------------------------------------------------------------------------- /public/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/45.gif -------------------------------------------------------------------------------- /public/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/46.gif -------------------------------------------------------------------------------- /public/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/47.gif -------------------------------------------------------------------------------- /public/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/48.gif -------------------------------------------------------------------------------- /public/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/49.gif -------------------------------------------------------------------------------- /public/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/50.gif -------------------------------------------------------------------------------- /public/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/51.gif -------------------------------------------------------------------------------- /public/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/52.gif -------------------------------------------------------------------------------- /public/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/53.gif -------------------------------------------------------------------------------- /public/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/54.gif -------------------------------------------------------------------------------- /public/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/55.gif -------------------------------------------------------------------------------- /public/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/56.gif -------------------------------------------------------------------------------- /public/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/57.gif -------------------------------------------------------------------------------- /public/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/58.gif -------------------------------------------------------------------------------- /public/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/59.gif -------------------------------------------------------------------------------- /public/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/60.gif -------------------------------------------------------------------------------- /public/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/61.gif -------------------------------------------------------------------------------- /public/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/62.gif -------------------------------------------------------------------------------- /public/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/63.gif -------------------------------------------------------------------------------- /public/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/64.gif -------------------------------------------------------------------------------- /public/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/65.gif -------------------------------------------------------------------------------- /public/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/66.gif -------------------------------------------------------------------------------- /public/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/67.gif -------------------------------------------------------------------------------- /public/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/68.gif -------------------------------------------------------------------------------- /public/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/69.gif -------------------------------------------------------------------------------- /public/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/70.gif -------------------------------------------------------------------------------- /public/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/71.gif -------------------------------------------------------------------------------- /public/images/face/72.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/72.gif -------------------------------------------------------------------------------- /public/images/face/73.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/73.gif -------------------------------------------------------------------------------- /public/images/face/74.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/74.gif -------------------------------------------------------------------------------- /public/images/face/75.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/face/75.gif -------------------------------------------------------------------------------- /public/images/ico_layer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/ico_layer.png -------------------------------------------------------------------------------- /public/images/login_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/login_bg.jpg -------------------------------------------------------------------------------- /public/images/login_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/login_bg.png -------------------------------------------------------------------------------- /public/images/my_bg01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_bg01.png -------------------------------------------------------------------------------- /public/images/my_bg05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_bg05.png -------------------------------------------------------------------------------- /public/images/steve_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_01.png -------------------------------------------------------------------------------- /public/images/steve_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_02.png -------------------------------------------------------------------------------- /public/images/steve_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_03.png -------------------------------------------------------------------------------- /public/images/steve_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_04.png -------------------------------------------------------------------------------- /public/images/steve_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_05.png -------------------------------------------------------------------------------- /public/images/steve_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_06.png -------------------------------------------------------------------------------- /public/images/steve_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_07.png -------------------------------------------------------------------------------- /public/images/steve_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_08.png -------------------------------------------------------------------------------- /public/images/steve_09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/steve_09.png -------------------------------------------------------------------------------- /效果图/2018-04-12_101819.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/效果图/2018-04-12_101819.png -------------------------------------------------------------------------------- /效果图/2018-04-12_101855.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/效果图/2018-04-12_101855.png -------------------------------------------------------------------------------- /public/css/fonts/icons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/css/fonts/icons.woff2 -------------------------------------------------------------------------------- /public/images/icon_photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/icon_photo.png -------------------------------------------------------------------------------- /public/images/login_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/login_logo.png -------------------------------------------------------------------------------- /public/images/mr_book_PHP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/mr_book_PHP.png -------------------------------------------------------------------------------- /public/images/my_bg_other.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_bg_other.png -------------------------------------------------------------------------------- /public/images/my_info_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/my_info_bg.png -------------------------------------------------------------------------------- /public/images/search_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/search_btn.png -------------------------------------------------------------------------------- /public/images/search_btn2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/search_btn2.png -------------------------------------------------------------------------------- /public/images/search_btn3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/search_btn3.png -------------------------------------------------------------------------------- /public/images/weibo_show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/images/weibo_show.png -------------------------------------------------------------------------------- /deletePic.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |

歆语科技 吉ICP证 07500273号

4 |

Copyright@2016四川省歆语科技有限公司

5 |
6 | -------------------------------------------------------------------------------- /public/static/highslide/graphics/controlbar-black-border.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/highslide/graphics/controlbar-black-border.gif -------------------------------------------------------------------------------- /public/static/highslide/graphics/controlbar-text-buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/highslide/graphics/controlbar-text-buttons.png -------------------------------------------------------------------------------- /public/static/plupload/jquery.plupload.queue/img/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/plupload/jquery.plupload.queue/img/buttons.png -------------------------------------------------------------------------------- /public/static/plupload/jquery.plupload.queue/img/throbber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/plupload/jquery.plupload.queue/img/throbber.gif -------------------------------------------------------------------------------- /public/static/plupload/jquery.plupload.queue/img/transp50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/plupload/jquery.plupload.queue/img/transp50.png -------------------------------------------------------------------------------- /public/static/plupload/jquery.plupload.queue/img/backgrounds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/plupload/jquery.plupload.queue/img/backgrounds.gif -------------------------------------------------------------------------------- /public/static/plupload/jquery.plupload.queue/img/buttons-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DickyQie/php-weibo/HEAD/public/static/plupload/jquery.plupload.queue/img/buttons-disabled.png -------------------------------------------------------------------------------- /view/common/page.php: -------------------------------------------------------------------------------- 1 |
2 | myde_write(); 5 | ?> 6 |
7 |
8 | -------------------------------------------------------------------------------- /library/logs/2016-10-24.txt: -------------------------------------------------------------------------------- 1 | Time : 09:38:41 2 | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 3 | Raw SQL : select count(*) from mr_post where post_type = 2 and pid = 4 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | window.location.href='login.php'"; 9 | }else{ 10 | echo "退出失败"; 11 | } 12 | 13 | ?> 14 | 15 | -------------------------------------------------------------------------------- /setting.php: -------------------------------------------------------------------------------- 1 | row("select * from mr_user where id = :user_id",array('user_id'=>$user_id)); 8 | include 'view/setting-list.php'; 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /library/logs/2016-12-28.txt: -------------------------------------------------------------------------------- 1 | Time : 03:11:53 2 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 3 | 4 | Time : 03:11:39 5 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 6 | 7 | Time : 03:11:37 8 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 9 | 10 | Time : 03:11:33 11 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 12 | 13 | Time : 03:11:24 14 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 15 | -------------------------------------------------------------------------------- /ajaxCheckLogin.php: -------------------------------------------------------------------------------- 1 | row($sql,array('username'=>$username,'password'=>md5($password))); 15 | 16 | if($user){ 17 | $_SESSION['user'] = $user; 18 | echo 1; 19 | }else{ 20 | echo -1; 21 | } 22 | -------------------------------------------------------------------------------- /view/at-me.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 |

@我的微博

9 | 10 |
还没有人@你哦!
11 | 17 |
18 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /getForward.php: -------------------------------------------------------------------------------- 1 | query($sql,array('pid'=>$pid)); 11 | foreach($post as $vo){ 12 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 13 | $lists[] = $vo; 14 | } 15 | 16 | /**转发总数**/ 17 | $total_forword = $db->single('select count(*) from mr_post where post_type = 2 and pid = :pid',array('pid'=>$pid)); 18 | include 'view/forward-layer.php'; 19 | 20 | -------------------------------------------------------------------------------- /view/common/reply-weibo.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | 6 |
7 |
8 |
9 |
10 | 11 | 评论~~~ 12 | 13 | 14 |
15 | 还可输入140 16 | 17 |
18 |
19 |
20 | 21 | -------------------------------------------------------------------------------- /ajaxRegister.php: -------------------------------------------------------------------------------- 1 | row($sql,array('username'=>$username)); 9 | if($name){ 10 | echo -1; 11 | exit; 12 | } 13 | $addtime = time();//当前时间戳 14 | //写入user表 15 | $insert_sql = "insert into mr_user (username, password,addtime ) VALUE (:username ,:password ,$addtime)"; 16 | $insert_id = $db->query($insert_sql,array('username'=>$username,'password'=>md5($password))); 17 | if($insert_id){ 18 | echo 1; 19 | }else{ 20 | echo 0; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /library/logs/2016-09-26.txt: -------------------------------------------------------------------------------- 1 | Time : 07:06:35 2 | SQLSTATE[HY093]: Invalid parameter number: parameter was not defined 3 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:username ,1474866395) 4 | 5 | Time : 07:04:42 6 | SQLSTATE[HY093]: Invalid parameter number: parameter was not defined 7 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:username ,:addtime) 8 | 9 | Time : 07:00:19 10 | SQLSTATE[HY000]: General error: 2031 11 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:username ,:addtime) 12 | 13 | Time : 07:00:11 14 | SQLSTATE[HY000]: General error: 2031 15 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:username ,:addtime) 16 | -------------------------------------------------------------------------------- /getComment.php: -------------------------------------------------------------------------------- 1 | query($sql);//筛选出该条微博的所有评论 10 | 11 | foreach($post as $vo){ 12 | $vo['addtime'] = tranTime($vo['addtime']); //转换日期 13 | //获取用户头像 14 | $avatar = $db->single('select avatar from mr_user where id = :user_id', 15 | array('user_id'=>$vo['user_id'])); 16 | $vo['avatar'] = get_cover_path($avatar);//获取头像路径 17 | $lists[] = $vo; 18 | } 19 | 20 | $jsdata=json_encode($lists); 21 | echo $jsdata; 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/mn.js: -------------------------------------------------------------------------------- 1 | // Mongolian (mn) 2 | plupload.addI18n({"Stop Upload":"","Upload URL might be wrong or doesn't exist.":"","tb":"","Size":"","Close":"","Init error.":"","Add files to the upload queue and click the start button.":"","Filename":"","Image format either wrong or not supported.":"","Status":"","HTTP Error.":"","Start Upload":"","mb":"","kb":"","Duplicate file error.":"","File size error.":"","N/A":"","gb":"","Error: Invalid file extension:":"","Select files":"","%s already present in the queue.":"","File: %s":"","b":"","Uploaded %d/%d files":"","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"","%d files queued":"","File: %s, size: %d, max file size: %d":"","Drag files here.":"","Runtime ran out of available memory.":"","File count error.":"","File extension error.":"","Error: File too large:":"","Add Files":""}); -------------------------------------------------------------------------------- /view/mypraise-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 |
10 |

点赞的微博

11 | 12 |
13 |

还没有点赞哦!

14 |
15 | 21 |
22 | 23 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/sr_RS.js: -------------------------------------------------------------------------------- 1 | // Serbian (Serbia) (sr_RS) 2 | plupload.addI18n({"Stop Upload":"","Upload URL might be wrong or doesn't exist.":"","tb":"","Size":"","Close":"","Init error.":"","Add files to the upload queue and click the start button.":"","Filename":"","Image format either wrong or not supported.":"","Status":"","HTTP Error.":"","Start Upload":"","mb":"","kb":"","Duplicate file error.":"","File size error.":"","N/A":"","gb":"","Error: Invalid file extension:":"","Select files":"","%s already present in the queue.":"","File: %s":"","b":"","Uploaded %d/%d files":"","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"","%d files queued":"","File: %s, size: %d, max file size: %d":"","Drag files here.":"","Runtime ran out of available memory.":"","File count error.":"","File extension error.":"","Error: File too large:":"","Add Files":""}); -------------------------------------------------------------------------------- /saveSetting.php: -------------------------------------------------------------------------------- 1 | query($sql,array("user_id"=>$user_id,"sex"=>$sex,"qq"=>$qq,"email"=>$email)); 12 | if($update !== false){ 13 | echo ""; 14 | echo ""; 15 | }else{ 16 | echo ""; 17 | echo ""; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /view/search-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
10 |

搜索结果:所有包含“ 11 | 12 | ”的微博 13 |

14 | 15 |
16 | 17 |
18 | 22 |
23 | 24 |
25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /changePassword.php: -------------------------------------------------------------------------------- 1 | single("select password from mr_user where id = :user_id",array("user_id"=>$user_id)); 13 | 14 | //更新密码 15 | if($old_password == $password){ //判断输入两次新密码是否一致 16 | $sql = "update mr_user set password = :newPassword where Id = :userid"; 17 | $update = $db->query($sql,array("newPassword"=>$new_password,"userid"=>$user_id)); 18 | if($update){ 19 | echo 1; 20 | }else{ 21 | echo 0; 22 | } 23 | }else{ 24 | echo -1; 25 | } 26 | -------------------------------------------------------------------------------- /view/mypost-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 |
9 | 10 | 11 | 12 |

我的微博

13 | 14 |
15 |

您还没有微博哦!

16 |
17 | 23 |
24 | 25 | 26 |
27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /view/common/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 歆语微博 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /praise.php: -------------------------------------------------------------------------------- 1 | row('select * from mr_praise where user_id = :user_id and post_id = :post_id', 12 | array('user_id'=>$user_id,'post_id'=>$post_id)); 13 | if(!$praise){ //没有点赞 14 | $sql = 'insert into mr_praise (user_id,post_id) value (:user_id,:post_id)'; 15 | $insert = $db->query($sql,array("user_id"=>$user_id,"post_id"=>$post_id)); 16 | //微博点赞数加1 17 | $db->query('update mr_post set praise_num = praise_num + 1 where id = :post_id',array('post_id'=>$post_id)); 18 | echo 1; 19 | }else{ //已经点赞 20 | echo 0; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/sq.js: -------------------------------------------------------------------------------- 1 | // Albanian (sq) 2 | plupload.addI18n({"Stop Upload":"","Upload URL might be wrong or doesn't exist.":"","tb":"TB","Size":"","Close":"","Init error.":"Init gabim.","Add files to the upload queue and click the start button.":"","Filename":"","Image format either wrong or not supported.":"","Status":"","HTTP Error.":"HTTP Gabim.","Start Upload":"","mb":"MB","kb":"KB","Duplicate file error.":"Gabim i dublikatës të dosjes.","File size error.":"Gabim i madhësisë së dosjes.","N/A":"Nuk është në dispozicion","gb":"GB","Error: Invalid file extension:":"","Select files":"Zhgjidhni dosjet.","%s already present in the queue.":"","File: %s":"","b":"B","Uploaded %d/%d files":"","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"","%d files queued":"","File: %s, size: %d, max file size: %d":"","Drag files here.":"","Runtime ran out of available memory.":"","File count error.":"","File extension error.":"Gabim i zgerimit të dosjes.","Error: File too large:":"","Add Files":""}); -------------------------------------------------------------------------------- /public/js/meitu.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | window.onload=function(){ 3 | var old_avatar = "http://open.web.meitu.com/sources/images/1.jpg"; 4 | var avatar = $('.my_head_img img').attr('value'); 5 | var avatar_url = "http://localhost/weibo/public/images/upload/head_image/"+avatar; 6 | if(!avatar_url){ 7 | avatar_url = old_avatar; 8 | } 9 | 10 | /*第1个参数是加载编辑器div容器,第2个参数是编辑器类型,第3个参数是div容器宽,第4个参数是div容器高*/ 11 | xiuxiu.embedSWF("altContent",5,"100%","100%"); 12 | //修改为您自己的图片上传接口 13 | xiuxiu.setUploadURL("http://localhost/weibo/imageUploadForm.php"); 14 | xiuxiu.setUploadType(2); 15 | xiuxiu.setUploadDataFieldName("Filedata"); 16 | xiuxiu.onInit = function () 17 | { 18 | xiuxiu.loadPhoto(avatar_url);//修改为要处理的图片url 19 | }; 20 | xiuxiu.onUploadResponse = function (data) 21 | { 22 | alert("上传成功"); 23 | window.location.reload(); 24 | } 25 | } 26 | }); 27 | 28 | -------------------------------------------------------------------------------- /public/css/page.css: -------------------------------------------------------------------------------- 1 | p{margin:0} 2 | #page{ 3 | } 4 | #page a{ 5 | display:block; 6 | float:left; 7 | margin-right:10px; 8 | padding:6px 12px; 9 | border:1px #cccccc solid; 10 | background:#fff; 11 | text-decoration:none; 12 | color:#808080; 13 | font-size:12px; 14 | } 15 | #page a:hover{ 16 | color:#85c0e1; 17 | border:1px #85c0e1 solid; 18 | } 19 | #page a.cur{ 20 | border:none; 21 | background:#85c0e1; 22 | border:1px #85c0e1 solid; 23 | color:#fff; 24 | } 25 | #page p{ 26 | float:left; 27 | padding:6px 12px; 28 | font-size:12px; 29 | color:#bbb; 30 | border:1px #ccc solid; 31 | background:#fcfcfc; 32 | margin-right:8px; 33 | 34 | } 35 | #page p.pageRemark{ 36 | border-style:none; 37 | background:none; 38 | margin-right:0px; 39 | padding:4px 0px; 40 | color:#666; 41 | } 42 | #page p.pageRemark b{ 43 | color:#85c0e1; 44 | margin: 0 4px; 45 | } 46 | #page p.pageEllipsis{ 47 | border-style:none; 48 | background:none; 49 | padding:6px 0px; 50 | color:#808080; 51 | } -------------------------------------------------------------------------------- /view/index-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 |
9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 |
17 | 18 |

全部微博

19 | 20 |
21 |

还没有微博哦!

22 |
23 | 29 |
30 | 31 | 32 |
33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/zh_CN.js: -------------------------------------------------------------------------------- 1 | // Chinese (China) (zh_CN) 2 | plupload.addI18n({"Stop Upload":"停止上传","Upload URL might be wrong or doesn't exist.":"上传的URL可能是错误的或不存在。","tb":"tb","Size":"大小","Close":"关闭","Init error.":"初始化错误。","Add files to the upload queue and click the start button.":"将文件添加到上传队列,然后点击”开始上传“按钮。","Filename":"文件名","Image format either wrong or not supported.":"图片格式错误或者不支持。","Status":"状态","HTTP Error.":"HTTP 错误。","Start Upload":"开始上传","mb":"mb","kb":"kb","Duplicate file error.":"重复文件错误。","File size error.":"文件大小错误。","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"错误:无效的文件扩展名:","Select files":"选择文件","%s already present in the queue.":"%s 已经在当前队列里。","File: %s":"文件: %s","b":"b","Uploaded %d/%d files":"已上传 %d/%d 个文件","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"每次只接受同时上传 %d 个文件,多余的文件将会被删除。","%d files queued":"%d 个文件加入到队列","File: %s, size: %d, max file size: %d":"文件: %s, 大小: %d, 最大文件大小: %d","Drag files here.":"把文件拖到这里。","Runtime ran out of available memory.":"运行时已消耗所有可用内存。","File count error.":"文件数量错误。","File extension error.":"文件扩展名错误。","Error: File too large:":"错误: 文件太大:","Add Files":"增加文件"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/zh_TW.js: -------------------------------------------------------------------------------- 1 | // Chinese (Taiwan) (zh_TW) 2 | plupload.addI18n({"Stop Upload":"停止上傳","Upload URL might be wrong or doesn't exist.":"檔案URL可能有誤或者不存在。","tb":"tb","Size":"大小","Close":"關閉","Init error.":"初始化錯誤。","Add files to the upload queue and click the start button.":"將檔案加入上傳序列,然後點選”開始上傳“按鈕。","Filename":"檔案名稱","Image format either wrong or not supported.":"圖片格式錯誤或者不支援。","Status":"狀態","HTTP Error.":"HTTP 錯誤。","Start Upload":"開始上傳","mb":"mb","kb":"kb","Duplicate file error.":"錯誤:檔案重複。","File size error.":"錯誤:檔案大小超過限制。","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"錯誤:不接受的檔案格式:","Select files":"選擇檔案","%s already present in the queue.":"%s 已經存在目前的檔案序列。","File: %s":"檔案: %s","b":"b","Uploaded %d/%d files":"已上傳 %d/%d 個文件","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"每次只能上傳 %d 個檔案,超過限制數量的檔案將被忽略。","%d files queued":"%d 個檔案加入到序列","File: %s, size: %d, max file size: %d":"檔案: %s, 大小: %d, 檔案大小上限: %d","Drag files here.":"把檔案拖曳到這裡。","Runtime ran out of available memory.":"執行時耗盡了所有可用的記憶體。","File count error.":"檔案數量錯誤。","File extension error.":"檔案副檔名錯誤。","Error: File too large:":"錯誤: 檔案大小太大:","Add Files":"增加檔案"}); -------------------------------------------------------------------------------- /upload.php: -------------------------------------------------------------------------------- 1 | "您还未选择图片")); 12 | exit; 13 | } 14 | $type = strtolower(substr(strrchr($name, '.'), 1)); //获取文件类型 15 | 16 | if (!in_array($type, $typeArr)) { 17 | echo json_encode(array("error" => "请上传jpg,png或gif类型的图片!")); 18 | exit; 19 | } 20 | if ($size > (50000 * 1024)) { //上传大小 21 | echo json_encode(array("error" => "图片大小已超过50000KB!")); 22 | exit; 23 | } 24 | 25 | $pic_name = time() . rand(10000, 99999) . "." . $type; //图片名称 26 | $pic_url = $path . $pic_name; //上传后图片路径+名称 27 | if (move_uploaded_file($name_tmp, $pic_url)) { //临时文件转移到目标文件夹 28 | echo json_encode(array("error" => "0", "pic" => $pic_url, "name" => $pic_name)); 29 | } else { 30 | echo json_encode(array("error" => "上传有误,清检查服务器配置!")); 31 | } 32 | } 33 | ?> -------------------------------------------------------------------------------- /myFans.php: -------------------------------------------------------------------------------- 1 | single('select count(*) from mr_friends where friend_id = :user_id and status =1 ',array('user_id'=>$user_id)); 14 | 15 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 16 | $curpage = ceil($total / $showrow); //当前页数大于最后页数,取最后一页 17 | } 18 | 19 | //获取数据 20 | $sql = 'select * from mr_friends where friend_id = :user_id and status = 1 order by addtime desc'; 21 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 22 | $friends = $db->query($sql,array('user_id'=>$user_id)); 23 | 24 | if(isset($friends)){ 25 | foreach($friends as $vo){ 26 | $data = $db->row('select * from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 27 | $lists[] = $data; 28 | } 29 | } 30 | include 'view/myfans-list.php'; -------------------------------------------------------------------------------- /public/static/plupload/i18n/ko.js: -------------------------------------------------------------------------------- 1 | // Korean (ko) 2 | plupload.addI18n({"Stop Upload":"업로드 중지","Upload URL might be wrong or doesn't exist.":"업로드할 URL이 존재하지 않습니다.","tb":"tb","Size":"크기","Close":"닫기","Init error.":"초기화 오류.","Add files to the upload queue and click the start button.":"파일을 업로드 큐에 추가한 후 시작 버튼을 클릭하십시오.","Filename":"파일명","Image format either wrong or not supported.":"지원되지 않는 이미지 형식입니다.","Status":"상태","HTTP Error.":"HTTP 오류.","Start Upload":"업로드 시작","mb":"mb","kb":"kb","Duplicate file error.":"파일 중복 오류.","File size error.":"파일 크기 오류.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"오류: 허용되지 않은 확장자입니다.","Select files":"파일 선택","%s already present in the queue.":"%s 파일이 이미 대기열에 존재합니다.","File: %s":"파일: %s","b":"b","Uploaded %d/%d files":"%d / %d 파일 업로드 완료","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"업로드 가능한 파일의 수는 %d 입니다. 불필요한 파일은 삭제되었습니다.","%d files queued":"%d 파일이 추가됨","File: %s, size: %d, max file size: %d":"파일: %s, 크기: %d, 최대 파일 크기: %d","Drag files here.":"이곳에 파일을 드래그 하세요.","Runtime ran out of available memory.":"런타임 메모리가 부족합니다.","File count error.":"파일 갯수 오류.","File extension error.":"파일 확장자 오류.","Error: File too large:":"오류: 파일 크기가 너무 큽니다.","Add Files":"파일 추가"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/ja.js: -------------------------------------------------------------------------------- 1 | // Japanese (ja) 2 | plupload.addI18n({"Stop Upload":"アップロード停止","Upload URL might be wrong or doesn't exist.":"アップロード先の URL が存在しません","tb":"TB","Size":"サイズ","Close":"閉じる","Init error.":"イニシャライズエラー","Add files to the upload queue and click the start button.":"ファイルをアップロードキューに追加してスタートボタンをクリックしてください","Filename":"ファイル名","Image format either wrong or not supported.":"画像形式が間違っているかサポートされていません","Status":"ステータス","HTTP Error.":"HTTP エラー","Start Upload":"アップロード開始","mb":"MB","kb":"KB","Duplicate file error.":"重複ファイルエラー","File size error.":"ファイルサイズエラー","N/A":"N/A","gb":"GB","Error: Invalid file extension:":"エラー: ファイルの拡張子が無効です:","Select files":"ファイル選択","%s already present in the queue.":"%s 既にキューに存在しています","File: %s":"ファイル: %s","b":"B","Uploaded %d/%d files":"アップロード中 %d/%d ファイル","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"アップロード可能なファイル数は %d です 余分なファイルは削除されました","%d files queued":"%d ファイルが追加されました","File: %s, size: %d, max file size: %d":"ファイル: %s, サイズ: %d, 最大ファイルサイズ: %d","Drag files here.":"ここにファイルをドラッグ","Runtime ran out of available memory.":"ランタイムが使用するメモリが不足しました","File count error.":"ファイル数エラー","File extension error.":"ファイル拡張子エラー","Error: File too large:":"エラー: ファイルが大きすぎます:","Add Files":"ファイルを追加"}); -------------------------------------------------------------------------------- /view/common/head.html: -------------------------------------------------------------------------------- 1 | 2 | 37 | 38 | -------------------------------------------------------------------------------- /friends.php: -------------------------------------------------------------------------------- 1 | single('select count(*) from mr_friends where user_id = :user_id and status =1 ',array('user_id'=>$user_id)); 14 | 15 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 16 | $curpage = ceil($total / $showrow); //当前页数大于最后页数,取最后一页 17 | } 18 | 19 | //获取数据 20 | $sql = 'select * from mr_friends where user_id = :user_id and status = 1 order by addtime desc'; 21 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 22 | $friends = $db->query($sql,array('user_id'=>$user_id)); 23 | 24 | if(isset($friends)){ 25 | foreach($friends as $vo){ 26 | $data = $db->row('select * from mr_user where id = :user_id',array('user_id'=>$vo['friend_id'])); 27 | $lists[] = $data; 28 | } 29 | } 30 | include "view/friends-list.php"; -------------------------------------------------------------------------------- /public/static/plupload/i18n/he.js: -------------------------------------------------------------------------------- 1 | // Hebrew (he) 2 | plupload.addI18n({"Stop Upload":"בטל העלאה","Upload URL might be wrong or doesn't exist.":"כתובת URL שגויה או לא קיימת.","tb":"tb","Size":"גודל","Close":"סגור","Init error.":"שגיאת איתחול","Add files to the upload queue and click the start button.":"הוסף קבצים לרשימה ולחץ על כפתור שליחה להתחלת פעולות העלאה","Filename":"שם קובץ","Image format either wrong or not supported.":"תמונה פגומה או סוג תמונה לא נתמך","Status":"אחוז","HTTP Error.":"שגיאת פרוטוקול","Start Upload":"שליחה","mb":"MB","kb":"KB","Duplicate file error.":"קובץ כפול","File size error.":"גודל קובץ חורג מהמותר","N/A":"שגיאה","gb":"GB","Error: Invalid file extension:":"שגיאה: סוג קובץ לא נתמך:","Select files":"בחר קבצים","%s already present in the queue.":"%sקובץ נמצא כבר ברשימת הקבצים.","File: %s":"קובץ: %s","b":"B","Uploaded %d/%d files":"מעלה: %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"אלמנטי ההעלאה מקבלים רק %d קובץ(ים) בפעם אחת. קבצים נוספים הוסרו.","%d files queued":"%d קבצים נותרו","File: %s, size: %d, max file size: %d":"קובץ: %s, גודל: %d, גודל מקסימלי: %d","Drag files here.":"גרור קבצים לכאן","Runtime ran out of available memory.":"שגיאת מחסור בזיכרון","File count error.":"שגיאת מספר קבצים","File extension error.":"קובץ זה לא נתמך","Error: File too large:":"שגיאה: קובץ חורג מהגודל המותר:","Add Files":"הוסף קבצים"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/hy.js: -------------------------------------------------------------------------------- 1 | // Armenian (hy) 2 | plupload.addI18n({"Stop Upload":"Կանգնեցնել","Upload URL might be wrong or doesn't exist.":"Ավեցաված URL-ը սխալ է կամ գոյություն չունի։","tb":"տբ","Size":"Չափ","Close":"Փակել","Init error.":"Ստեղծման սխալ","Add files to the upload queue and click the start button.":"Ավելացրեք ֆայլեր ցուցակում և սեղմեք \"Վերբեռնել\"։","Filename":"Ֆայլի անուն","Image format either wrong or not supported.":"Նկարի ֆորմատը սխալ է կամ չի ընդունվում։","Status":"","HTTP Error.":"HTTP սխալ","Start Upload":"Վերբեռնել","mb":"մբ","kb":"կբ","Duplicate file error.":"Ֆայլի կրկնման սխալ","File size error.":"Ֆայլի չափի սխալ","N/A":"N/A","gb":"գբ","Error: Invalid file extension:":"Սխալ։ Ֆայլի ընդլայնումը սխալ է։","Select files":"Ընտրեք ֆայլերը","%s already present in the queue.":"%s ֆայլը արդեն ավելացված է ցուցակում.","File: %s":"Ֆայլ: %s","b":"բ","Uploaded %d/%d files":"Վերբեռնվել են %d/%d ֆայլերը","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"","%d files queued":"ցուցակում կա %d ֆայլ","File: %s, size: %d, max file size: %d":"Ֆայլ: %s, չափ: %d, ֆայլի մաքսիմում չափ: %d","Drag files here.":"Տեղափոխեք ֆայլերը այստեղ","Runtime ran out of available memory.":"","File count error.":"Ֆայլերի քանակի սխալ","File extension error.":"Ֆայլի ընդլայնման սխալ","Error: File too large:":"Սխալ։ Ֆայլի չափը մեծ է։","Add Files":"Ավելացնել ֆայլեր"}); -------------------------------------------------------------------------------- /collect.php: -------------------------------------------------------------------------------- 1 | row('select * from mr_collect where user_id = :user_id and post_id = :post_id', 11 | array('user_id'=>$user_id,'post_id'=>$post_id)); 12 | if(!$collect){ //未收藏,本次首测收藏,写入mr_collect表 13 | $sql = 'insert into mr_collect (user_id,post_id,status) value (:user_id,:post_id,1)'; 14 | $insert = $db->query($sql,array("user_id"=>$user_id,"post_id"=>$post_id)); 15 | echo 1; 16 | }else{ 17 | $sql = 'update mr_collect set status = :status where user_id = :user_id and post_id = :post_id'; 18 | if($collect['status'] == 0){ //之前已取消收藏,再次收藏,写入mr_collect表 19 | $db->query($sql,array('status'=>1,'user_id'=>$user_id,'post_id'=>$post_id)); 20 | echo 1; 21 | }else{ //已经收藏 22 | $sql = 'update mr_collect set status = 0 where id = :id'; 23 | $db->query($sql,array('id'=>$collect['id'])); 24 | echo 0; 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/sr.js: -------------------------------------------------------------------------------- 1 | // Serbian (sr) 2 | plupload.addI18n({"Stop Upload":"Stop Upload","Upload URL might be wrong or doesn't exist.":"Upload URL might be wrong or doesn't exist.","tb":"","Size":"Veličina","Close":"Close","Init error.":"Init error.","Add files to the upload queue and click the start button.":"Dodajte fajlove u listu i kliknite na dugme Start.","Filename":"Naziv fajla","Image format either wrong or not supported.":"Image format either wrong or not supported.","Status":"Status","HTTP Error.":"HTTP Error.","Start Upload":"Počni upload","mb":"","kb":"","Duplicate file error.":"","File size error.":"File size error.","N/A":"N/A","gb":"","Error: Invalid file extension:":"Error: Invalid file extension:","Select files":"Izaberite fajlove","%s already present in the queue.":"","File: %s":"File: %s","b":"","Uploaded %d/%d files":"Snimljeno %d/%d fajlova","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d files queued","File: %s, size: %d, max file size: %d":"","Drag files here.":"Prevucite fajlove ovde.","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"File count error.","File extension error.":"File extension error.","Error: File too large:":"Error: File too large:","Add Files":"Dodaj fajlove"}); -------------------------------------------------------------------------------- /public/js/textarea.js: -------------------------------------------------------------------------------- 1 | $.fn.extend({ 2 | CurPosition: function(id) { 3 | var val = $('#'+id).val().length; 4 | var e = $(this).get(0); 5 | this.focus(); 6 | if (val === undefined) { 7 | if (e.selectionStart) { //FF 8 | return e.selectionStart; 9 | } 10 | if (document.selection) { //IE 11 | var rngSel = document.selection.createRange(); //建立选择域 12 | var rngTxt = e.createTextRange(); //建立文本域 13 | var flag = rngSel.getBookmark(); //用选择域建立书签 14 | rngTxt.collapse(); //瓦解文本域到开始位,以便使标志位移动 15 | rngTxt.moveToBookmark(flag); //使文本域移动到书签位 16 | rngTxt.moveStart('character', -e.value.length); //获得文本域左侧文本 17 | str = rngTxt.text.replace(/\r\n/g, '\r'); //替换回车换行符 18 | return (str.length); 19 | } 20 | return e.value.length; 21 | } else { 22 | if (e.setSelectionRange) { 23 | e.setSelectionRange(val, val); 24 | } else if (e.createTextRange) { 25 | var range = e.createTextRange(); 26 | range.collapse(true); 27 | range.moveEnd('character', val); 28 | range.moveStart('character', val); 29 | range.select(); 30 | } 31 | } 32 | } 33 | }); -------------------------------------------------------------------------------- /public/static/plupload/i18n/sv.js: -------------------------------------------------------------------------------- 1 | // Swedish (sv) 2 | plupload.addI18n({"Stop Upload":"Avbryt","Upload URL might be wrong or doesn't exist.":"URL:en va fel eller existerar inte.","tb":"tb","Size":"Storlek","Close":"Stäng","Init error.":"Problem vid initialisering.","Add files to the upload queue and click the start button.":"Lägg till filer till kön och tryck på start.","Filename":"Filnamn","Image format either wrong or not supported.":"Bildformatet är fel eller så finns inte stöd för det.","Status":"Status","HTTP Error.":"HTTP problem.","Start Upload":"Starta","mb":"mb","kb":"kb","Duplicate file error.":"Problem med dubbla filer.","File size error.":"Problem med filstorlek.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Fel: Ej godkänd filändelse.","Select files":"Välj filer","%s already present in the queue.":"%s är redan tillagd.","File: %s":"Fil: %s","b":"b","Uploaded %d/%d files":"Laddade upp %d/%d filer","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Det går bara lägga till %d filer åt gången, allt utöver detta togs bort.","%d files queued":"%d filer i kö","File: %s, size: %d, max file size: %d":"Fil: %s, storlek: %d, max storlek: %d","Drag files here.":"Dra filer hit","Runtime ran out of available memory.":"Slut på minne.","File count error.":"Räknefel.","File extension error.":"Problem med filändelse.","Error: File too large:":"Fel: Filen är för stor:","Add Files":"Lägg till"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/et.js: -------------------------------------------------------------------------------- 1 | // Estonian (et) 2 | plupload.addI18n({"Stop Upload":"Stop Upload","Upload URL might be wrong or doesn't exist.":"Üleslaadimise URL võib olla vale või seda pole.","tb":"","Size":"Suurus","Close":"Sulge","Init error.":"Lähtestamise viga.","Add files to the upload queue and click the start button.":"Lisa failid üleslaadimise järjekorda ja klõpsa alustamise nupule.","Filename":"Failinimi","Image format either wrong or not supported.":"Image format either wrong or not supported.","Status":"Olek","HTTP Error.":"HTTP ühenduse viga.","Start Upload":"Start Upload","mb":"","kb":"","Duplicate file error.":"","File size error.":"Failisuuruse viga.","N/A":"N/A","gb":"","Error: Invalid file extension:":"Error: Invalid file extension:","Select files":"Vali faile","%s already present in the queue.":"","File: %s":"Fail: %s","b":"","Uploaded %d/%d files":"Üles laaditud %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Üleslaadimise element saab vastu võtta ainult %d faili ühe korraga. Ülejäänud failid jäetakse laadimata.","%d files queued":"Järjekorras on %d faili","File: %s, size: %d, max file size: %d":"","Drag files here.":"Lohista failid siia.","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"Failide arvu viga.","File extension error.":"Faililaiendi viga.","Error: File too large:":"Error: File too large:","Add Files":"Add Files"}); -------------------------------------------------------------------------------- /library/logs/2016-10-27.txt: -------------------------------------------------------------------------------- 1 | Time : 09:42:02 2 | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ': username and password = : password' at line 1 3 | Raw SQL : select * from mr_user where username = : username and password = : password 4 | 5 | Time : 09:41:58 6 | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ': username and password = : password' at line 1 7 | Raw SQL : select * from mr_user where username = : username and password = : password 8 | 9 | Time : 09:41:49 10 | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ': username and password = : password' at line 1 11 | Raw SQL : select * from mr_user where username = : username and password = : password 12 | 13 | Time : 09:41:46 14 | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ': username and password = : password' at line 1 15 | Raw SQL : select * from mr_user where username = : username and password = : password 16 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/en.js: -------------------------------------------------------------------------------- 1 | // English (en) 2 | plupload.addI18n({"Stop Upload":"Stop Upload","Upload URL might be wrong or doesn't exist.":"Upload URL might be wrong or doesn't exist.","tb":"tb","Size":"Size","Close":"Close","Init error.":"Init error.","Add files to the upload queue and click the start button.":"Add files to the upload queue and click the start button.","Filename":"Filename","Image format either wrong or not supported.":"Image format either wrong or not supported.","Status":"Status","HTTP Error.":"HTTP Error.","Start Upload":"Start Upload","mb":"mb","kb":"kb","Duplicate file error.":"Duplicate file error.","File size error.":"File size error.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Error: Invalid file extension:","Select files":"Select files","%s already present in the queue.":"%s already present in the queue.","File: %s":"File: %s","b":"b","Uploaded %d/%d files":"Uploaded %d/%d files","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d files queued","File: %s, size: %d, max file size: %d":"File: %s, size: %d, max file size: %d","Drag files here.":"Drag files here.","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"File count error.","File extension error.":"File extension error.","Error: File too large:":"Error: File too large:","Add Files":"Add Files"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/da.js: -------------------------------------------------------------------------------- 1 | // Danish (da) 2 | plupload.addI18n({"Stop Upload":"Stop upload","Upload URL might be wrong or doesn't exist.":"Upload URL kan være forkert eller ikke eksisterende.","tb":"tb","Size":"Størrelse","Close":"Luk","Init error.":"Opstarts fejl.","Add files to the upload queue and click the start button.":"Tilføj filer til køen og klik Start upload knappen.","Filename":"Filnavn","Image format either wrong or not supported.":"Billede format er enten forkert eller ikke understøttet.","Status":"Status","HTTP Error.":"HTTP fejl.","Start Upload":"Start upload","mb":"mb","kb":"kb","Duplicate file error.":"Filen findes allerede.","File size error.":"Filstørrelse fejl.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Fejl: Ugyldigt fil format:","Select files":"Vælg filer","%s already present in the queue.":"%s findes allerede i køen.","File: %s":"Fil: %s","b":"b","Uploaded %d/%d files":"Uploaded %d/%d filer","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload accepterer kun %d fil(er) af gangen. Ekstra filer blev skippet.","%d files queued":"%d filer i kø","File: %s, size: %d, max file size: %d":"Fil: %s, størrelse: %d, maks. filstørrelse: %d","Drag files here.":"Træk filer her.","Runtime ran out of available memory.":"Runtime mangler tilgængelige hukommelse.","File count error.":"Fil antal fejl.","File extension error.":"Fil format fejl.","Error: File too large:":"Fejl: Filen er for stor:","Add Files":"Tilføj filer"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/az.js: -------------------------------------------------------------------------------- 1 | // Azerbaijani (az) 2 | plupload.addI18n({"Stop Upload":"Yükləməni saxla","Upload URL might be wrong or doesn't exist.":"Yükləmə ünvanı səhvdir və ya mövcud deyil","tb":"tb","Size":"Həcm","Close":"Bağla","Init error.":"Init error.","Add files to the upload queue and click the start button.":"Faylları əlavə edin və yüklə düyməsinə klikləyin.","Filename":"Faylın adı","Image format either wrong or not supported.":"Şəklin formatı uyğun deyil və ya dəstəklənmir.","Status":"Status","HTTP Error.":"HTTP xətası.","Start Upload":"Yüklə","mb":"mb","kb":"kb","Duplicate file error.":"Bu fayl artıq növbədə var.","File size error.":"Fayl həcmi xətası.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Xəta: Yanlış fayl uzantısı:","Select files":"Faylları seçin","%s already present in the queue.":"%s artıq növbədə var.","File: %s":"Fayl: %s","b":"b","Uploaded %d/%d files":"%d/%d fayl yüklənib","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"Növbədə %d fayl var","File: %s, size: %d, max file size: %d":"Fayl: %s, həcm: %d, max fayl həcmi: %d","Drag files here.":"Faylları bura çəkin.","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"Fayl sayı çox böyükdür.","File extension error.":"Fayl uzantısı xətası.","Error: File too large:":"Xəta:Fayl həcmi çox böyükdür.","Add Files":"Fayl əlavə et"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/tr.js: -------------------------------------------------------------------------------- 1 | // Turkish (tr) 2 | plupload.addI18n({"Stop Upload":"Yüklemeyi durdur","Upload URL might be wrong or doesn't exist.":"URL yok ya da hatalı olabilir.","tb":"tb","Size":"Boyut","Close":"Kapat","Init error.":"Başlangıç hatası.","Add files to the upload queue and click the start button.":"Dosyaları kuyruğa ekleyin ve başlatma butonuna tıklayın.","Filename":"Dosya adı","Image format either wrong or not supported.":"Resim formatı yanlış ya da desteklenmiyor.","Status":"Durum","HTTP Error.":"HTTP hatası.","Start Upload":"Yüklemeyi başlat","mb":"mb","kb":"kb","Duplicate file error.":"Yinelenen dosya hatası.","File size error.":"Dosya boyutu hatası.","N/A":"-","gb":"gb","Error: Invalid file extension:":"Hata: Geçersiz dosya uzantısı:","Select files":"Dosyaları seç","%s already present in the queue.":"%s kuyrukta zaten mevcut.","File: %s":"Dosya: %s","b":"bayt","Uploaded %d/%d files":"%d/%d dosya yüklendi","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Yükleme elemanı aynı anda %d dosya kabul eder. Ekstra dosyalar işleme konulmaz.","%d files queued":"Kuyrukta %d dosya var.","File: %s, size: %d, max file size: %d":"Dosya: %s, boyut: %d, maksimum dosya boyutu: %d","Drag files here.":"Dosyaları buraya bırakın.","Runtime ran out of available memory.":"İşlem için yeterli bellek yok.","File count error.":"Dosya sayım hatası.","File extension error.":"Dosya uzantısı hatası.","Error: File too large:":"Hata: Dosya çok büyük:","Add Files":"Dosya ekle"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/cy.js: -------------------------------------------------------------------------------- 1 | // Welsh (cy) 2 | plupload.addI18n({"Stop Upload":"Atal Lanlwytho","Upload URL might be wrong or doesn't exist.":"URL y lanlwythiad ynb anghywir neu ddim yn bodoli.","tb":"tb","Size":"Maint","Close":"Cau","Init error.":"Gwall cych.","Add files to the upload queue and click the start button.":"Ychwanegwch ffeiliau i'r ciw lanlwytho a chlicio'r botwm dechrau.","Filename":"Enw'r ffeil","Image format either wrong or not supported.":"Fformat delwedd yn anghywir neu heb ei gynnal.","Status":"Statws","HTTP Error.":"Gwall HTTP.","Start Upload":"Dechrau Lanlwytho","mb":"mb","kb":"kb","Duplicate file error.":"Gwall ffeil ddyblyg.","File size error.":"Gwall maint ffeil.","N/A":"Dd/A","gb":"gb","Error: Invalid file extension:":"Gwall: estyniad ffeil annilys:","Select files":"Dewis ffeiliau","%s already present in the queue.":"%s yn y ciw yn barod.","File: %s":"Ffeil: %s","b":"b","Uploaded %d/%d files":"Lanlwythwyd %d/%d ffeil","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Mae'r elfen lanlwytho yn derbyn %d ffeil ar y tro. Caiff ffeiliau ychwanegol eu tynnu.","%d files queued":"%d ffeil mewn ciw","File: %s, size: %d, max file size: %d":"Ffeil: %s, maint: %d, maint mwyaf ffeil: %d","Drag files here.":"Llusgwch ffeiliau yma.","Runtime ran out of available memory.":"Allan o gof.","File count error.":"Gwall cyfri ffeiliau.","File extension error.":"Gwall estyniad ffeil.","Error: File too large:":"Gwall: Ffeil yn rhy fawr:","Add Files":"Ychwanegu Ffeiliau"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/ar.js: -------------------------------------------------------------------------------- 1 | // Arabic (ar) 2 | plupload.addI18n({"Stop Upload":"أيقاف التحميل","Upload URL might be wrong or doesn't exist.":"عنوان التحميل ربما يكون خاطئ أو غير متوفر","tb":"تيرابايت","Size":"الحجم","Close":"أغلاق","Init error.":"خطأ في تهيئة","Add files to the upload queue and click the start button.":"أضف ملفات إلى القائمة إنتظار التحميل ثم أضغط على زر البداية","Filename":"أسم الملف","Image format either wrong or not supported.":"صيغة الصورة أما خطاء أو غير مدعومه","Status":"الحالة","HTTP Error.":"خطأ في برتوكول نقل الملفات","Start Upload":"أبدا التحميل","mb":"ميجابايت","kb":"كيلوبايت","Duplicate file error.":"خطاء في تكرار الملف","File size error.":"خطأ في حجم الملف","N/A":"لا شي","gb":"جيجابايت","Error: Invalid file extension:":"خطاء : أمتداد الملف غير صالح :","Select files":"أختر الملفات","%s already present in the queue.":"%s الملف موجود بالفعل في قائمة الانتظار","File: %s":"ملف: %s","b":"بايت","Uploaded %d/%d files":"تحميل %d/%d ملف","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"العناصر المقبوله لتحميل هي %d ملف في هذا الوقت. الملفات الاضافية أزيلة.","%d files queued":"%d الملفات في قائمة الانتظار","File: %s, size: %d, max file size: %d":"ملف: %s, أقصى حجم للملف: %d, حجم: %d","Drag files here.":"سحب الملف هنا","Runtime ran out of available memory.":"الذاكرة المتوفره أنتهت لمدة التشغيل","File count error.":"خطاء في عد الملفات","File extension error.":"خطأ في أمتداد الملف","Error: File too large:":" خطاء : حجم الملف كبير :","Add Files":"أضف ملفات"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/th_TH.js: -------------------------------------------------------------------------------- 1 | // Thai (Thailand) (th_TH) 2 | plupload.addI18n({"Stop Upload":"หยุดอัพโหลด","Upload URL might be wrong or doesn't exist.":"URL ของการอัพโหลดอาจจะผิดหรือไม่มีอยู่","tb":"เทราไบต์","Size":"ขนาด","Close":"ปิด","Init error.":"Init เกิดข้อผิดพลาด","Add files to the upload queue and click the start button.":"เพิ่มไฟล์ไปยังคิวอัพโหลดและคลิกที่ปุ่มเริ่ม","Filename":"ชื่อไฟล์","Image format either wrong or not supported.":"รูปแบบรูปภาพทั้งสองผิดหรือไม่รองรับ","Status":"สถานะ","HTTP Error.":"HTTP เกิดข้อผิดพลาด","Start Upload":"เริ่มอัพโหลด","mb":"เมกะไบต์","kb":"กิโลไบต์","Duplicate file error.":"ไฟล์ที่ซ้ำกันเกิดข้อผิดพลาด","File size error.":"ขนาดไฟล์เกิดข้อผิดพลาด","N/A":"N/A","gb":"กิกะไบต์","Error: Invalid file extension:":"ข้อผิดพลาด: นามสกุลไฟล์ไม่ถูกต้อง:","Select files":"เลือกไฟล์","%s already present in the queue.":"%s อยู่ในคิวแล้ว","File: %s":"ไฟล์: %s","b":"ไบต์","Uploaded %d/%d files":"อัพโหลดแล้ว %d/%d ไฟล์","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"การอัพโหลดจะยอมรับเฉพาะ %d ไฟล์(s) ในช่วงเวลาเดียวกัน เมื่อไฟล์พิเศษถูกปลดออก","%d files queued":"%d ไฟล์ที่อยู่ในคิว","File: %s, size: %d, max file size: %d":"ไฟล์: %s, ขนาด: %d, ขนาดไฟล์สูงสุด: %d","Drag files here.":"ลากไฟล์มาที่นี่","Runtime ran out of available memory.":"รันไทม์วิ่งออกมาจากหน่วยความจำ","File count error.":"การนับไฟล์เกิดข้อผิดพลาด","File extension error.":"นามสกุลไฟล์เกิดข้อผิดพลาด","Error: File too large:":"ข้อผิดพลาด: ไฟล์ใหญ่เกินไป:","Add Files":"เพิ่มไฟล์"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/fa.js: -------------------------------------------------------------------------------- 1 | // Persian (fa) 2 | plupload.addI18n({"Stop Upload":"توقف انتقال","Upload URL might be wrong or doesn't exist.":"Upload URL might be wrong or doesn't exist.","tb":"ترابایت","Size":"سایز","Close":"بستن","Init error.":"خطا در استارت اسکریپت","Add files to the upload queue and click the start button.":"اضافه کنید فایل ها را به صف آپلود و دکمه شروع را کلیک کنید.","Filename":"نام فایل","Image format either wrong or not supported.":"Image format either wrong or not supported.","Status":"وضعیت","HTTP Error.":"HTTP خطای","Start Upload":"شروع انتقال","mb":"مگابایت","kb":"کیلوبایت","Duplicate file error.":"خطای فایل تکراری","File size error.":"خطای سایز فایل","N/A":"N/A","gb":"گیگابایت","Error: Invalid file extension:":"Error: Invalid file extension:","Select files":"انتخاب فایل","%s already present in the queue.":"%s در لیست آپلود وجود دارد.","File: %s":" فایل ها : %s","b":"بایت","Uploaded %d/%d files":"منتقل شد %d/%d از فایلها","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"عنصر بارگذار فقط %d فایل رو در یک زمان می پذیرد. سایر فایل ها مجرد از این موضوع هستند.","%d files queued":"%d فایل در صف","File: %s, size: %d, max file size: %d":"فایل: %s, اندازه: %d, محدودیت اندازه فایل: %d","Drag files here.":"بکشید فایل ها رو به اینجا","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"خطای تعداد فایل","File extension error.":"خطا پیشوند فایل","Error: File too large:":"Error: File too large:","Add Files":"افزودن فایل"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/lt.js: -------------------------------------------------------------------------------- 1 | // Lithuanian (lt) 2 | plupload.addI18n({"Stop Upload":"Stabdyti įkėlimą","Upload URL might be wrong or doesn't exist.":"Klaidinga arba neegzistuojanti įkėlimo nuoroda.","tb":"tb","Size":"Dydis","Close":"Uždaryti","Init error.":"Įkrovimo klaida.","Add files to the upload queue and click the start button.":"Pridėkite bylas į įkėlimo eilę ir paspauskite starto mygtuką.","Filename":"Bylos pavadinimas","Image format either wrong or not supported.":"Paveiksliuko formatas klaidingas arba nebepalaikomas.","Status":"Statusas","HTTP Error.":"HTTP klaida.","Start Upload":"Pradėti įkėlimą","mb":"mb","kb":"kb","Duplicate file error.":"Pasikartojanti byla.","File size error.":"Netinkamas bylos dydis.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Klaida: Netinkamas bylos plėtinys:","Select files":"Žymėti bylas","%s already present in the queue.":"%s jau yra eilėje.","File: %s":"Byla: %s","b":"b","Uploaded %d/%d files":"Įkelta bylų: %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Vienu metu galima įkelti tik %d bylas(ų). Papildomos bylos buvo pašalintos.","%d files queued":"%d bylų eilėje","File: %s, size: %d, max file size: %d":"Byla: %s, dydis: %d, galimas dydis: %d","Drag files here.":"Padėti bylas čia.","Runtime ran out of available memory.":"Išeikvota darbinė atmintis.","File count error.":"Netinkamas bylų kiekis.","File extension error.":"Netinkamas pletinys.","Error: File too large:":"Klaida: Byla per didelė:","Add Files":"Pridėti bylas"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/pl.js: -------------------------------------------------------------------------------- 1 | // Polish (pl) 2 | plupload.addI18n({"Stop Upload":"Przerwij transfer.","Upload URL might be wrong or doesn't exist.":"Adres URL moze bys nieprawidlowy lub moze nieistniec","tb":"tb","Size":"Rozmiar","Close":"Zamknij","Init error.":"Błąd inicjalizacji.","Add files to the upload queue and click the start button.":"Dodaj pliki i kliknij 'Rozpocznij transfer'.","Filename":"Nazwa pliku","Image format either wrong or not supported.":"Format zdjecia jest zly lub nieobslugiwany","Status":"Status","HTTP Error.":"Błąd HTTP.","Start Upload":"Wyslij","mb":"mb","kb":"kb","Duplicate file error.":"Blad: duplikacja pliku.","File size error.":"Plik jest zbyt duży.","N/A":"Nie dostępne","gb":"gb","Error: Invalid file extension:":"Blad: Nieprawidlowe rozszerzenie pliku:","Select files":"Wybierz pliki:","%s already present in the queue.":"%s juz wystepuje w kolejce.","File: %s":"Plik: %s","b":"b","Uploaded %d/%d files":"Wysłano %d/%d plików","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d plików w kolejce.","File: %s, size: %d, max file size: %d":"Plik: %s, rozmiar: %d, maksymalny rozmiar pliku: %d","Drag files here.":"Przeciągnij tu pliki","Runtime ran out of available memory.":"Wyczerpano pamiec RAM.","File count error.":"Blad liczenia pliku.","File extension error.":"Nieobsługiwany format pliku.","Error: File too large:":"Blad: Plik za duzy:","Add Files":"Dodaj pliki"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/ms.js: -------------------------------------------------------------------------------- 1 | // Malay (ms) 2 | plupload.addI18n({"Stop Upload":"Berhenti Muat naik","Upload URL might be wrong or doesn't exist.":"URL muat naik mungkin salah atau tidak wujud.","tb":"tb","Size":"saiz","Close":"Tutup","Init error.":"Ralat perlaksanaan.","Add files to the upload queue and click the start button.":"Tambah fail ke dalam giliran muat naik dan klik butang Muat Naik.","Filename":"Nama fail","Image format either wrong or not supported.":"Format imej sama ada salah atau tidak disokong.","Status":"Status","HTTP Error.":"Ralat HTTP.","Start Upload":"Muat Naik","mb":"mb","kb":"kb","Duplicate file error.":"Ralat menggandakan fail.","File size error.":"Ralat saiz fail.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Ralat: Sambungan fail tidak sah:","Select files":"Pilih fail","%s already present in the queue.":"%s telah ada dalam barisan.","File: %s":"Fail: %s","b":"b","Uploaded %d/%d files":"%d/%d telah dimuat naik","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Element muat naik hanya menerima %d fail(-fail) pada satu masa. Fail tambahan telah digugurkan.","%d files queued":"%d fail dalam barisan","File: %s, size: %d, max file size: %d":"Fail: %s, saiz: %d, saiz maks fail: %d","Drag files here.":"Seret fail ke sini.","Runtime ran out of available memory.":"Ruang ingatan masa larian tidak mencukupi.","File count error.":"Ralat bilangan fail.","File extension error.":"Ralat sambungan fail.","Error: File too large:":"Ralat: Fail terlalu bersar:","Add Files":"Tambah Fail"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/it.js: -------------------------------------------------------------------------------- 1 | // Italian (it) 2 | plupload.addI18n({"Stop Upload":"Ferma Upload","Upload URL might be wrong or doesn't exist.":"URL di Upload errata o non esistente","tb":"tb","Size":"Dimensione","Close":"Chiudi","Init error.":"Errore inizializzazione.","Add files to the upload queue and click the start button.":"Aggiungi i file alla coda di caricamento e clicca il pulsante di avvio.","Filename":"Nome file","Image format either wrong or not supported.":"Formato immagine errato o non supportato.","Status":"Stato","HTTP Error.":"Errore HTTP.","Start Upload":"Inizia Upload","mb":"mb","kb":"kb","Duplicate file error.":"Errore file duplicato.","File size error.":"Errore dimensione file.","N/A":"N/D","gb":"gb","Error: Invalid file extension:":"Errore: Estensione file non valida:","Select files":"Seleziona i files","%s already present in the queue.":"%s già presente nella coda.","File: %s":"File: %s","b":"byte","Uploaded %d/%d files":"Caricati %d/%d file","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d file in coda","File: %s, size: %d, max file size: %d":"File: %s, dimensione: %d, dimensione max file: %d","Drag files here.":"Trascina i files qui.","Runtime ran out of available memory.":"Runtime ha esaurito la memoria disponibile.","File count error.":"File count error.","File extension error.":"Errore estensione file.","Error: File too large:":"Errore: File troppo grande:","Add Files":"Aggiungi file"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/ka.js: -------------------------------------------------------------------------------- 1 | // Georgian (ka) 2 | plupload.addI18n({"Stop Upload":"ატვირთვის შეჩერება","Upload URL might be wrong or doesn't exist.":"ატვირთვის მისამართი არასწორია ან არ არსებობს.","tb":"ტბ","Size":"ზომა","Close":"დავხუროთ","Init error.":"ინიციალიზაციის შეცდომა.","Add files to the upload queue and click the start button.":"დაამატეთ ფაილები და დააჭირეთ ღილაკს - ატვირთვა.","Filename":"ფაილის სახელი","Image format either wrong or not supported.":"ფაილის ფორმატი არ არის მხარდაჭერილი ან არასწორია.","Status":"სტატუსი","HTTP Error.":"HTTP შეცდომა.","Start Upload":"ატვირთვა","mb":"მბ","kb":"კბ","Duplicate file error.":"ესეთი ფაილი უკვე დამატებულია.","File size error.":"ფაილის ზომა დაშვებულზე დიდია.","N/A":"N/A","gb":"გბ","Error: Invalid file extension:":"შეცდომა: ფაილს აქვს არასწორი გაფართოება.","Select files":"ფაილების მონიშვნა","%s already present in the queue.":"%s უკვე დამატებულია.","File: %s":"ფაილი: %s","b":"ბ","Uploaded %d/%d files":"ატვირთულია %d/%d ფაილი","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"ერთდროულად დაშვებულია მხოლოდ %d ფაილის დამატება.","%d files queued":"რიგშია %d ფაილი","File: %s, size: %d, max file size: %d":"ფაილი: %s, ზომა: %d, მაქსიმალური დაშვებული ზომა: %d","Drag files here.":"ჩააგდეთ ფაილები აქ.","Runtime ran out of available memory.":"ხელმისაწვდომი მეხსიერება გადაივსო.","File count error.":"აღმოჩენილია ზედმეტი ფაილები.","File extension error.":"ფაილის ფორმატი დაშვებული არ არის.","Error: File too large:":"შეცდომა: ფაილი ზედმეტად დიდია.","Add Files":"დაამატეთ ფაილები"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/kk.js: -------------------------------------------------------------------------------- 1 | // Kazakh (kk) 2 | plupload.addI18n({"Stop Upload":"Жүктеуді тоқтату","Upload URL might be wrong or doesn't exist.":"Жүктеуді қабылдаушы URL қате не мүлдем көрсетілмеген.","tb":"тб","Size":"Өлшемі","Close":"Жабу","Init error.":"Инициализация қатесі.","Add files to the upload queue and click the start button.":"Жүктеу кезегіне файлдар қосып, Бастау кнопкасын басыңыз.","Filename":"Файл аты","Image format either wrong or not supported.":"Сурет форматы қате немесе оның қолдауы жоқ.","Status":"Күйі","HTTP Error.":"HTTP қатесі.","Start Upload":"Жүктеуді бастау","mb":"мб","kb":"кб","Duplicate file error.":"Файл қайталамасының қатесі.","File size error.":"Файл өлшемінің қатесі.","N/A":"Қ/Ж","gb":"гб","Error: Invalid file extension:":"Қате: Файл кеңейтілуі қате:","Select files":"Файлдар таңдаңыз","%s already present in the queue.":"%s файлы кезекте бұрыннан бар.","File: %s":"Файл: %s","b":"б","Uploaded %d/%d files":"Жүктелген: %d/%d файл","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Жүктеу элементі бір кезде %d файл ғана жүктей алады. Артық файлдар жүктелмейді.","%d files queued":"%d файл кезекке қойылды","File: %s, size: %d, max file size: %d":"Файл: %s, өлшемі: %d, макс. файл өлшемі: %d","Drag files here.":"Файлдарды мына жерге тастаңыз.","Runtime ran out of available memory.":"Орындау кезінде жады жетпей қалды.","File count error.":"Файл санының қатесі.","File extension error.":"Файл кеңейтілуінің қатесі.","Error: File too large:":"Қате: Файл мөлшері тым үлкен:","Add Files":"Файл қосу"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/km.js: -------------------------------------------------------------------------------- 1 | // Khmer (km) 2 | plupload.addI18n({"Stop Upload":"បញ្ឈប់​ការ​ផ្ទុក​ឡើង","Upload URL might be wrong or doesn't exist.":"URL ផ្ទុក​ឡើង​អាច​ខុស ឬ​ក៏​គ្មាន។","tb":"tb","Size":"ទំហំ","Close":"បិទ","Init error.":"កំហុស Init។","Add files to the upload queue and click the start button.":"បន្ថែម​ឯកសារ​ទៅ​ក្នុង​ជួរ​លំដាប់​ផ្ទុក​ឡើង ហើយ​ចុច​ប៊ូតុង​ចាប់​ផ្ដើម។","Filename":"ឈ្មោះ​ឯកសារ","Image format either wrong or not supported.":"ទ្រង់​ទ្រាយ​រូបភាព​អាច​ខុស ឬ​ក៏​មិន​ស្គាល់​តែ​ម្ដង។","Status":"ស្ថានភាព","HTTP Error.":"កំហុស HTTP ។","Start Upload":"ចាប់​ផ្ដើម​ផ្ទុក​ឡើង","mb":"mb","kb":"kb","Duplicate file error.":"កំហុស​ឯកសារ​ស្ទួន​គ្នា។","File size error.":"កំហុស​ទំហំ​ឯកសារ។","N/A":"គ្មាន","gb":"gb","Error: Invalid file extension:":"កំហុស៖ កន្ទុយ​ឯកសារ​មិន​ត្រឹម​ត្រូវ៖","Select files":"ជ្រើស​ឯកសារ","%s already present in the queue.":"មាន %s នៅ​ក្នុង​ជួរ​លំដាប់​ហើយ។","File: %s":"ឯកសារ៖ %s","b":"b","Uploaded %d/%d files":"បាន​ផ្ទុក​ឡើង​ឯកសារ %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"ការ​ផ្ទុក​ឡើង​ទទួល​ឯកសារ​បាន​តែ %d ប៉ុណ្ណោះ​ក្នុង​ពេល​តែ​មួយ។ ឯកសារ​ផ្សេង​ទៀត​នឹង​ត្រូវ​ដក​ចេញ។","%d files queued":"បាន​ដាក់​ឯកសារ %d បន្ត​គ្នា","File: %s, size: %d, max file size: %d":"ឯកសារ៖ %s, size: %d, ទំហំ​ឯកសារ​អតិបរមា៖ %d","Drag files here.":"អូស​ឯកសារ​មក​ទីនេះ។","Runtime ran out of available memory.":"ពេល​ដំណើរ​ការ​អស់​អង្គ​ចងចាំ​ទំនេរ​ហើយ។","File count error.":"កំហុស​ការ​រាប់​ឯកសារ។","File extension error.":"កំហុស​កន្ទុយ​ឯកសារ។","Error: File too large:":"កំហុស៖ ឯកសារ​ធំ​ពេក៖","Add Files":"បន្ថែម​ឯកសារ"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/cs.js: -------------------------------------------------------------------------------- 1 | // Czech (cs) 2 | plupload.addI18n({"Stop Upload":"Zastavit nahrávání","Upload URL might be wrong or doesn't exist.":"URL uploadu je možná špatně, nebo neexistuje.","tb":"tb","Size":"Velikost","Close":"Zavřít","Init error.":"Chyba inicializace.","Add files to the upload queue and click the start button.":"Přidejte soubory do fronty a pak spusťte nahrávání.","Filename":"Název souboru","Image format either wrong or not supported.":"Špatný, nebo nepodporovaný formát obrázku.","Status":"Stav","HTTP Error.":"Chyba HTTP.","Start Upload":"Spustit nahrávání","mb":"mb","kb":"kb","Duplicate file error.":"Chyba - duplikovaný soubor.","File size error.":"Chyba velikosti souboru.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Chyba: Neplatná koncovka souboru:","Select files":"Vyberte soubory","%s already present in the queue.":"%s je již zařazen ve frontě.","File: %s":"Soubor: %s","b":"b","Uploaded %d/%d files":"Nahráno %d/%d souborů","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload akceptuje pouze %d soubor(ů) najednou. Další soubory byly odstraněny.","%d files queued":"%d souborů ve frontě","File: %s, size: %d, max file size: %d":"Soubor: %s, velikost: %d, maximální velikost souboru: %d","Drag files here.":"Sem přetáhněte soubory.","Runtime ran out of available memory.":"Běh skriptu přesáhl dostupnou paměť.","File count error.":"Chyba v počtu souborů.","File extension error.":"Chyba přípony souboru.","Error: File too large:":"Chyba: Soubor je příliš veliký:","Add Files":"Přidat soubory"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/sk.js: -------------------------------------------------------------------------------- 1 | // Slovak (sk) 2 | plupload.addI18n({"Stop Upload":"Zastaviť nahrávanie","Upload URL might be wrong or doesn't exist.":"URL pre nahratie nie je správna alebo neexistuje.","tb":"tb","Size":"Veľkosť","Close":"Zatvoriť","Init error.":"Chyba inicializácie.","Add files to the upload queue and click the start button.":"Pridajte súbory do zoznamu a potom spustite nahrávanie.","Filename":"Názov súboru","Image format either wrong or not supported.":"Formát obrázku je nesprávny alebo nie je podporovaný.","Status":"Stav","HTTP Error.":"HTTP Chyba.","Start Upload":"Spustiť nahrávanie","mb":"mb","kb":"kb","Duplicate file error.":"Duplicitný súbor.","File size error.":"Súbor je príliš veľký.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Error: Nesprávny typ súboru:","Select files":"Vyberte súbory","%s already present in the queue.":"%s sa už nachádza v zozname.","File: %s":"Súbor: %s","b":"b","Uploaded %d/%d files":"Nahraných %d/%d súborov","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d súborov pridaných do zoznamu","File: %s, size: %d, max file size: %d":"Súbor: %s, veľkosť: %d, max. veľkosť súboru: %d","Drag files here.":"Sem pretiahnite súbory.","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"Nesprávny počet súborov.","File extension error.":"Chybný typ súboru.","Error: File too large:":"Chyba: Súbor je príliš veľký:","Add Files":"Pridať súbory"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/fi.js: -------------------------------------------------------------------------------- 1 | // Finnish (fi) 2 | plupload.addI18n({"Stop Upload":"Pysäytä lähetys","Upload URL might be wrong or doesn't exist.":"Lähetyksen URL-osoite saattaa olla väärä tai sitä ei ole olemassa.","tb":"TB","Size":"Koko","Close":"Sulje","Init error.":"Init virhe.","Add files to the upload queue and click the start button.":"Lisää tiedostoja lähetysjonoon ja klikkaa aloita-nappia.","Filename":"Tiedostonimi","Image format either wrong or not supported.":"Kuvaformaatti on joko väärä tai ei tuettu.","Status":"Tila","HTTP Error.":"HTTP-virhe.","Start Upload":"Aloita lähetys","mb":"MB","kb":"kB","Duplicate file error.":"Tuplatiedostovirhe.","File size error.":"Tiedostokokovirhe.","N/A":"N/A","gb":"GB","Error: Invalid file extension:":"Virhe: Virheellinen tiedostopääte:","Select files":"Valitse tiedostoja","%s already present in the queue.":"%s on jo jonossa.","File: %s":"Tiedosto: %s","b":"B","Uploaded %d/%d files":"Lähetetty %d/%d tiedostoa","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Vain %d tiedosto(a) voidaan lähettää kerralla. Ylimääräiset tiedostot ohitettiin.","%d files queued":"%d tiedostoa jonossa","File: %s, size: %d, max file size: %d":"Tiedosto: %s, koko: %d, suurin sallittu tiedostokoko: %d","Drag files here.":"Raahaa tiedostot tähän.","Runtime ran out of available memory.":"Toiminnon käytettävissä oleva muisti loppui kesken.","File count error.":"Tiedostolaskentavirhe.","File extension error.":"Tiedostopäätevirhe.","Error: File too large:":"Virhe: Liian suuri tiedosto:","Add Files":"Lisää tiedostoja"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/es.js: -------------------------------------------------------------------------------- 1 | // Spanish (es) 2 | plupload.addI18n({"Stop Upload":"Detener Subida.","Upload URL might be wrong or doesn't exist.":"URL de carga inexistente.","tb":"TB","Size":"Tamaño","Close":"Cerrar","Init error.":"Error de inicialización.","Add files to the upload queue and click the start button.":"Agregue archivos a la lista de subida y pulse clic en el botón de Iniciar carga","Filename":"Nombre de archivo","Image format either wrong or not supported.":"Formato de imagen no soportada.","Status":"Estado","HTTP Error.":"Error de HTTP.","Start Upload":"Iniciar carga","mb":"MB","kb":"KB","Duplicate file error.":"Error, archivo duplicado","File size error.":"Error de tamaño de archivo.","N/A":"No disponible","gb":"GB","Error: Invalid file extension:":"Error: Extensión de archivo inválida:","Select files":"Elija archivos","%s already present in the queue.":"%s ya se encuentra en la lista.","File: %s":"Archivo: %s","b":"B","Uploaded %d/%d files":"Subidos %d/%d archivos","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Se aceptan sólo %d archivo(s) al tiempo. Más, no se tienen en cuenta.","%d files queued":"%d archivos en cola.","File: %s, size: %d, max file size: %d":"Archivo: %s, tamaño: %d, tamaño máximo de archivo: %d","Drag files here.":"Arrastre archivos aquí","Runtime ran out of available memory.":"No hay memoria disponible.","File count error.":"Error en contador de archivos.","File extension error.":"Error de extensión de archivo.","Error: File too large:":"Error: archivo demasiado grande:","Add Files":"Agregar archivos"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/id.js: -------------------------------------------------------------------------------- 1 | // Indonesian (id) 2 | plupload.addI18n({"Stop Upload":"Hentikan Upload","Upload URL might be wrong or doesn't exist.":"Alamat URL untuk upload tidak benar atau tidak ada","tb":"tb","Size":"Ukuran","Close":"Tutup","Init error.":"Kesalahan pada Init","Add files to the upload queue and click the start button.":"Tambahkan file kedalam antrian upload dan klik tombol Mulai","Filename":"Nama File","Image format either wrong or not supported.":"Kesalahan pada jenis gambar atau jenis file tidak didukung","Status":"Status","HTTP Error.":"HTTP Bermasalah","Start Upload":"Mulai Upload","mb":"mb","kb":"kb","Duplicate file error.":"Terjadi duplikasi file","File size error.":"Kesalahan pada ukuran file","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Kesalahan: Ekstensi file tidak dikenal","Select files":"Pilih file","%s already present in the queue.":"%s sudah ada dalam daftar antrian","File: %s":"File: %s","b":"b","Uploaded %d/%d files":"File terupload %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Tempat untuk upload hanya menerima %d file(s) dalam setiap upload. File lainnya tidak akan disertakan","%d files queued":"%d file dalam antrian","File: %s, size: %d, max file size: %d":"File: %s, ukuran: %d, maksimum ukuran file: %d","Drag files here.":"Tarik file kesini","Runtime ran out of available memory.":"Tidak cukup memori","File count error.":"Kesalahan pada jumlah file","File extension error.":"Kesalahan pada ekstensi file","Error: File too large:":"Kesalahan: File terlalu besar","Add Files":"Tambah File"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/bs.js: -------------------------------------------------------------------------------- 1 | // Bosnian (bs) 2 | plupload.addI18n({"Stop Upload":"Prekini dodavanje","Upload URL might be wrong or doesn't exist.":"URL za dodavanje je neispravan ili ne postoji.","tb":"tb","Size":"Veličina","Close":"Zatvori","Init error.":"Inicijalizacijska greška.","Add files to the upload queue and click the start button.":"Dodajte datoteke u red i kliknite na dugme za pokretanje.","Filename":"Naziv datoteke","Image format either wrong or not supported.":"Format slike je neispravan ili nije podržan.","Status":"Status","HTTP Error.":"HTTP greška.","Start Upload":"Započni dodavanje","mb":"mb","kb":"kb","Duplicate file error.":"Dupla datoteka.","File size error.":"Greška u veličini datoteke.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Greška! Neispravan ekstenzija datoteke:","Select files":"Odaberite datoteke","%s already present in the queue.":"%s se već nalazi u redu.","File: %s":"Datoteka: %s","b":"b","Uploaded %d/%d files":"Dodano %d/%d datoteka","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Dodavanje trenutno dozvoljava samo %d datoteka istovremeno. Dodatne datoteke su uklonjene.","%d files queued":"%d datoteka čeka","File: %s, size: %d, max file size: %d":"Datoteka: %s, veličina: %d, maksimalna veličina: %d","Drag files here.":"Dovucite datoteke ovdje.","Runtime ran out of available memory.":"Nema više dostupne memorije.","File count error.":"Greška u brojanju datoeka.","File extension error.":"Greška u ekstenziji datoteke.","Error: File too large:":"Greška! Datoteka je prevelika:","Add Files":"Dodaj datoteke"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/hu.js: -------------------------------------------------------------------------------- 1 | // Hungarian (hu) 2 | plupload.addI18n({"Stop Upload":"Feltöltés leállítása","Upload URL might be wrong or doesn't exist.":"A feltöltő URL hibás vagy nem létezik.","tb":"TB","Size":"Méret","Close":"Bezárás","Init error.":"Init hiba.","Add files to the upload queue and click the start button.":"A fájlok feltöltési sorhoz való hozzáadása után az Indítás gombra kell kattintani.","Filename":"Fájlnév","Image format either wrong or not supported.":"Rossz vagy nem támogatott képformátum.","Status":"Állapot","HTTP Error.":"HTTP-hiba.","Start Upload":"Feltöltés indítása","mb":"MB","kb":"kB","Duplicate file error.":"Duplikáltfájl-hiba.","File size error.":"Hibás fájlméret.","N/A":"Nem elérhető","gb":"GB","Error: Invalid file extension:":"Hiba: érvénytelen fájlkiterjesztés:","Select files":"Fájlok kiválasztása","%s already present in the queue.":"%s már szerepel a listában.","File: %s":"Fájl: %s","b":"b","Uploaded %d/%d files":"Feltöltött fájlok: %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"A feltöltés egyszerre csak %d fájlt fogad el, a többi fájl nem lesz feltöltve.","%d files queued":"%d fájl sorbaállítva","File: %s, size: %d, max file size: %d":"Fájl: %s, méret: %d, legnagyobb fájlméret: %d","Drag files here.":"Ide lehet húzni a fájlokat.","Runtime ran out of available memory.":"Futásidőben elfogyott a rendelkezésre álló memória.","File count error.":"A fájlok számával kapcsolatos hiba.","File extension error.":"Hibás fájlkiterjesztés.","Error: File too large:":"Hiba: a fájl túl nagy:","Add Files":"Fájlok hozzáadása"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/de.js: -------------------------------------------------------------------------------- 1 | // German (de) 2 | plupload.addI18n({"Stop Upload":"Hochladen stoppen","Upload URL might be wrong or doesn't exist.":"Upload-URL ist falsch oder existiert nicht.","tb":"TB","Size":"Größe","Close":"Schließen","Init error.":"Initialisierungsfehler","Add files to the upload queue and click the start button.":"Dateien hinzufügen und auf 'Hochladen' klicken.","Filename":"Dateiname","Image format either wrong or not supported.":"Bildformat falsch oder nicht unterstützt.","Status":"Status","HTTP Error.":"HTTP-Fehler","Start Upload":"Hochladen beginnen","mb":"MB","kb":"KB","Duplicate file error.":"Datei bereits hochgeladen","File size error.":"Fehler bei Dateigröße","N/A":"Nicht verfügbar","gb":"GB","Error: Invalid file extension:":"Fehler: Ungültige Dateiendung:","Select files":"Dateien auswählen","%s already present in the queue.":"%s ist bereits in der Warteschlange","File: %s":"Datei: %s","b":"B","Uploaded %d/%d files":"%d/%d Dateien wurden hochgeladen","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Pro Durchgang können nur %d Datei(en) akzeptiert werden. Überzählige Dateien wurden ignoriert.","%d files queued":"%d Dateien in der Warteschlange","File: %s, size: %d, max file size: %d":"Datei: %s, Größe: %d, maximale Dateigröße: %d","Drag files here.":"Dateien hier hin ziehen.","Runtime ran out of available memory.":"Nicht genügend Speicher verfügbar.","File count error.":"Fehlerhafte Dateianzahl.","File extension error.":"Fehler bei Dateiendung","Error: File too large:":"Fehler: Datei zu groß:","Add Files":"Dateien hinzufügen"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/hr.js: -------------------------------------------------------------------------------- 1 | // Croatian (hr) 2 | plupload.addI18n({"Stop Upload":"Zaustavi upload.","Upload URL might be wrong or doesn't exist.":"Upload URL might be wrong or doesn't exist.","tb":"tb","Size":"Veličina","Close":"Zatvori","Init error.":"Greška inicijalizacije.","Add files to the upload queue and click the start button.":"Dodajte datoteke u listu i kliknite Upload.","Filename":"Ime datoteke","Image format either wrong or not supported.":"Image format either wrong or not supported.","Status":"Status","HTTP Error.":"HTTP greška.","Start Upload":"Pokreni upload.","mb":"mb","kb":"kb","Duplicate file error.":"Pogreška dvostruke datoteke.","File size error.":"Greška veličine datoteke.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Pogreška: Nevažeći nastavak datoteke:","Select files":"Odaberite datoteke:","%s already present in the queue.":"%s je već prisutan u listi čekanja.","File: %s":"Datoteka: %s","b":"b","Uploaded %d/%d files":"Uploadano %d/%d datoteka","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d datoteka na čekanju.","File: %s, size: %d, max file size: %d":"Datoteka: %s, veličina: %d, maksimalna veličina: %d","Drag files here.":"Dovucite datoteke ovdje","Runtime ran out of available memory.":"Runtime aplikaciji je ponestalo memorije.","File count error.":"Pogreška u broju datoteka.","File extension error.":"Pogreška u nastavku datoteke.","Error: File too large:":"Pogreška: Datoteka je prevelika:","Add Files":"Dodaj datoteke"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/ro.js: -------------------------------------------------------------------------------- 1 | // Romanian (ro) 2 | plupload.addI18n({"Stop Upload":"Oprește încărcarea","Upload URL might be wrong or doesn't exist.":"Upload URL might be wrong or doesn't exist.","tb":"tb","Size":"Mărime","Close":"Închide","Init error.":"Eroare inițializare.","Add files to the upload queue and click the start button.":"Adaugă fișiere în lista apoi apasă butonul \"Începe încărcarea\".","Filename":"Nume fișier","Image format either wrong or not supported.":"Formatul de imagine ori este greșit ori nu este suportat.","Status":"Stare","HTTP Error.":"Eroare HTTP","Start Upload":"Începe încărcarea","mb":"mb","kb":"kb","Duplicate file error.":"Eroare duplicat fișier.","File size error.":"Eroare dimensiune fișier.","N/A":"N/A","gb":"gb","Error: Invalid file extension:":"Eroare: Extensia fișierului este invalidă:","Select files":"Selectează fișierele","%s already present in the queue.":"%s există deja în lista de așteptare.","File: %s":"Fișier: %s","b":"b","Uploaded %d/%d files":"Fișiere încărcate %d/%d","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload element accepts only %d file(s) at a time. Extra files were stripped.","%d files queued":"%d fișiere listate","File: %s, size: %d, max file size: %d":"Fișier: %s, mărime: %d, mărime maximă: %d","Drag files here.":"Trage aici fișierele.","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"Eroare numărare fișiere.","File extension error.":"Eroare extensie fișier.","Error: File too large:":"Eroare: Fișierul este prea mare:","Add Files":"Adaugă fișiere"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/pt_BR.js: -------------------------------------------------------------------------------- 1 | // Portuguese (Brazil) (pt_BR) 2 | plupload.addI18n({"Stop Upload":"Parar o envio","Upload URL might be wrong or doesn't exist.":"URL de envio está errada ou não existe","tb":"TB","Size":"Tamanho","Close":"Fechar","Init error.":"Erro inicializando.","Add files to the upload queue and click the start button.":"Adicione os arquivos abaixo e clique no botão \"Iniciar o envio\".","Filename":"Nome do arquivo","Image format either wrong or not supported.":"Image format either wrong or not supported.","Status":"Status","HTTP Error.":"Erro HTTP.","Start Upload":"Iniciar o envio","mb":"MB","kb":"KB","Duplicate file error.":"Erro: Arquivo duplicado.","File size error.":"Tamanho de arquivo não permitido.","N/A":"N/D","gb":"GB","Error: Invalid file extension:":"Error: Invalid file extension:","Select files":"Escolha os arquivos","%s already present in the queue.":"%s já presentes na fila.","File: %s":"Arquivo: %s","b":"Bytes","Uploaded %d/%d files":"Enviado(s) %d/%d arquivo(s)","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Só são aceitos %d arquivos por vez. O que passou disso foi descartado.","%d files queued":"%d arquivo(s)","File: %s, size: %d, max file size: %d":"Arquivo: %s, Tamanho: %d , Tamanho Máximo do Arquivo: %d","Drag files here.":"Arraste os arquivos pra cá","Runtime ran out of available memory.":"Runtime ran out of available memory.","File count error.":"Erro na contagem dos arquivos","File extension error.":"Tipo de arquivo não permitido.","Error: File too large:":"Error: File too large:","Add Files":"Adicionar arquivo(s)"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/nl.js: -------------------------------------------------------------------------------- 1 | // Dutch (nl) 2 | plupload.addI18n({"Stop Upload":"Stop Upload","Upload URL might be wrong or doesn't exist.":"Upload URL is verkeerd of bestaat niet.","tb":"tb","Size":"Grootte","Close":"Sluiten","Init error.":"Initialisatie error.","Add files to the upload queue and click the start button.":"Voeg bestanden toe aan de wachtrij en druk op 'Start'.","Filename":"Bestandsnaam","Image format either wrong or not supported.":"bestandsextensie is verkeerd of niet ondersteund.","Status":"Status","HTTP Error.":"HTTP Error.","Start Upload":"Start Upload","mb":"mb","kb":"kb","Duplicate file error.":"Bestand bestaat al.","File size error.":"Bestandsgrootte error.","N/A":"Niet beschikbaar","gb":"gb","Error: Invalid file extension:":"Error: Ongeldige bestandsextensie:","Select files":"Selecteer bestand(en):","%s already present in the queue.":"%s is al aan de wachtrij toegevoegd.","File: %s":"Bestand: %s","b":"b","Uploaded %d/%d files":"%d/%d bestanden ge-upload","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Upload accepteert alleen %d bestand(en) tegelijk. Extra bestanden zijn verwijderd.","%d files queued":"%d bestand(en) in de wachtrij","File: %s, size: %d, max file size: %d":"Bestand: %s, grootte: %d, maximale bestandsgrootte: %d","Drag files here.":"Sleep bestanden hierheen.","Runtime ran out of available memory.":"Het maximum bruikbare geheugen is overschreden.","File count error.":"Teveel bestand(en) error.","File extension error.":"Ongeldig bestandsextensie.","Error: File too large:":"Error: Bestand te groot:","Add Files":"Bestand(en) toevoegen"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/lv.js: -------------------------------------------------------------------------------- 1 | // Latvian (lv) 2 | plupload.addI18n({"Stop Upload":"Apturēt augšupielādi","Upload URL might be wrong or doesn't exist.":"Augšupielādes saite neeksistē vai ir nepareiza.","tb":"terrabaiti","Size":"Izmērs","Close":"Aizvērt","Init error.":"Inicializācijas kļūda.","Add files to the upload queue and click the start button.":"Pieveinojiet failus rindai un klikšķiniet uz pogu \"Sākt augšupielādi\".","Filename":"Faila nosaukums","Image format either wrong or not supported.":"Attēla formāts ir nepareizs vai arī netiek atbalstīts.","Status":"Statuss","HTTP Error.":"HTTP kļūda.","Start Upload":"Sākt augšupielādi","mb":"megabaiti","kb":"kilobaiti","Duplicate file error.":"Atkārtota faila kļūda","File size error.":"Faila izmēra kļūda.","N/A":"N/A","gb":"gigabaiti","Error: Invalid file extension:":"Kļūda: Nepareizs faila paplašinājums:","Select files":"Izvēlieties failus","%s already present in the queue.":"%s jau ir atrodams rindā.","File: %s":"Fails: %s","b":"baiti","Uploaded %d/%d files":"Augšupielādēti %d/%d faili","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Iespējams ielādēt tikai %d failus vienā reizē. Atlikušie faili netika pievienoti","%d files queued":"%d faili pievienoti rindai","File: %s, size: %d, max file size: %d":"Fails: %s, izmērs: %d, max faila izmērs: %d","Drag files here.":"Ievelciet failus šeit","Runtime ran out of available memory.":"Pietrūkst izmantojamās atmiņas.","File count error.":"Failu skaita kļūda","File extension error.":"Faila paplašinājuma kļūda.","Error: File too large:":"Kļūda: Fails pārāk liels:","Add Files":"Pievienot failus"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/ru.js: -------------------------------------------------------------------------------- 1 | // Russian (ru) 2 | plupload.addI18n({"Stop Upload":"Остановить Загрузку","Upload URL might be wrong or doesn't exist.":"Адрес заргузки неправильный или он не существует.","tb":"тб","Size":"Размер","Close":"Закрыть","Init error.":"Ошибка инициализации.","Add files to the upload queue and click the start button.":"Добавьте файлы в очередь и нажмите кнопку \"Загрузить файлы\".","Filename":"Имя файла","Image format either wrong or not supported.":"Формат картинки неправильный или он не поддерживается.","Status":"Статус","HTTP Error.":"Ошибка HTTP.","Start Upload":"Начать загрузку","mb":"мб","kb":"кб","Duplicate file error.":"Такой файл уже присутствует в очереди.","File size error.":"Неправильный размер файла.","N/A":"N/A","gb":"гб","Error: Invalid file extension:":"Ошибка: У файла неправильное расширение:","Select files":"Выберите файлы","%s already present in the queue.":"%s уже присутствует в очереди.","File: %s":"Файл: %s","b":"б","Uploaded %d/%d files":"Загружено %d/%d файлов","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Загрузочный элемент за раз принимает только %d файл(ов). Лишние файлы были отброшены.","%d files queued":"В очереди %d файл(ов)","File: %s, size: %d, max file size: %d":"Файл: %s, размер: %d, макс. размер файла: %d","Drag files here.":"Перетащите файлы сюда.","Runtime ran out of available memory.":"Рабочая среда превысила лимит достуной памяти.","File count error.":"Слишком много файлов.","File extension error.":"Неправильное расширение файла.","Error: File too large:":"Ошибка: Файл слишком большой:","Add Files":"Добавьте файлы"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/el.js: -------------------------------------------------------------------------------- 1 | // Greek (el) 2 | plupload.addI18n({"Stop Upload":"Ακύρωση Μεταφόρτωσης","Upload URL might be wrong or doesn't exist.":"Το URL μεταφόρτωσης είναι λάθος ή δεν υπάρχει.","tb":"tb","Size":"Μέγεθος","Close":"Κλείσιμο","Init error.":"Σφάλμα αρχικοποίησης.","Add files to the upload queue and click the start button.":"Προσθέστε αρχεία στην ουρά μεταφόρτωσης και πατήστε το κουμπί εκκίνησης.","Filename":"Όνομα Αρχείου","Image format either wrong or not supported.":"Ο τύπος εικόνας είναι λάθος ή δεν υποστηρίζεται.","Status":"Κατάσταση","HTTP Error.":"Σφάλμα HTTP.","Start Upload":"Εκκίνηση Μεταφόρτωσης","mb":"mb","kb":"kb","Duplicate file error.":"Το αρχείο έχει ξαναπροστεθεί.","File size error.":"Σφάλμα με το μέγεθος του αρχείου.","N/A":"Δεν ισχύει","gb":"gb","Error: Invalid file extension:":"Σφάλμα: Μη έγκυρος τύπος αρχείου:","Select files":"Επιλέξτε Αρχεία","%s already present in the queue.":"Το «%s» βρίσκεται ήδη στην ουρά.","File: %s":"Αρχείο: %s","b":"b","Uploaded %d/%d files":"Μεταφορτώθηκαν %d/%d αρχεία","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Μπορείτε να μεταφορτώσετε μεχρι και %d αρχείο/α κάθε φορά. Τα επιπλέον αρχεία αφαιρέθηκαν.","%d files queued":"%d αρχεία στην ουρά","File: %s, size: %d, max file size: %d":"Αρχείο: %s, μέγεθος: %d, μέγιστο μέγεθος αρχείου: %d","Drag files here.":"Σύρετε αρχεία εδώ","Runtime ran out of available memory.":"Δεν υπάρχει αρκετή διαθέσιμη μνήμη.","File count error.":"Σφάλμα με τον αριθμό αρχείων.","File extension error.":"Σφάλμα με τον τύπο αρχείου.","Error: File too large:":"Σφάλμα: Πολύ μεγάλο αρχείο:","Add Files":"Προσθέστε Αρχεία"}); -------------------------------------------------------------------------------- /public/static/plupload/i18n/uk_UA.js: -------------------------------------------------------------------------------- 1 | // Ukrainian (Ukraine) (uk_UA) 2 | plupload.addI18n({"Stop Upload":"Зупинити завантаження","Upload URL might be wrong or doesn't exist.":"Адреса завантаження неправильна або не існує.","tb":"тб","Size":"Розмір","Close":"Закрити","Init error.":"Помилка ініціалізації.","Add files to the upload queue and click the start button.":"Додайте файли в чергу та натисніть кнопку \"Завантажити файли\".","Filename":"Назва файлу","Image format either wrong or not supported.":"Формат картинки не правильний або не підтримується.","Status":"Статус","HTTP Error.":"Помилка HTTP.","Start Upload":"Почати завантаження","mb":"мб","kb":"кб","Duplicate file error.":"Такий файл вже присутній в черзі.","File size error.":"Неправильний розмір файлу.","N/A":"Н/Д","gb":"гб","Error: Invalid file extension:":"Помилка: У файлу неправильне розширення:","Select files":"Оберіть файли","%s already present in the queue.":"%s вже присутній у черзі.","File: %s":"Файл: %s","b":"б","Uploaded %d/%d files":"Завантажено %d/%d файлів","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Завантажувальний елемент приймає лише %d файл(ів) одночасно. Зайві файли було відкинуто.","%d files queued":"В черзі %d файл(ів)","File: %s, size: %d, max file size: %d":"Файл: %s, розмір: %d, макс. розмір файлу: %d","Drag files here.":"Перетягніть файли сюди.","Runtime ran out of available memory.":"Робоче середовище перевищило ліміт доступної пам'яті.","File count error.":"Занадто багато файлів.","File extension error.":"Неправильне розширення файлу.","Error: File too large:":"Помилка: Файл занадто великий:","Add Files":"Додати файли"}); -------------------------------------------------------------------------------- /message.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_post where parent_user_id = :user_id",array('user_id'=>$user_id)); 13 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 14 | $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 15 | } 16 | //获取数据 17 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 18 | $message = $db->query($sql,array('user_id'=>$user_id)); 19 | 20 | foreach($message as $vo){ 21 | $row = $db->row('select * from mr_post where id = :pid',array('pid'=>$vo['pid'])); 22 | //$row['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$row['user_id'])); 23 | //图片数据格式由字符串转化为数组 24 | if($row['pictures']){ 25 | $row['pictures'] = explode(',',$row['pictures']); 26 | } 27 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 28 | $vo['post'] = $row; 29 | $lists[] = $vo; 30 | } 31 | include 'view/message-list.php'; 32 | ?> 33 | 34 | -------------------------------------------------------------------------------- /public/static/plupload/i18n/fr.js: -------------------------------------------------------------------------------- 1 | // French (fr) 2 | plupload.addI18n({"Stop Upload":"Arrêter l'envoi.","Upload URL might be wrong or doesn't exist.":"L'URL d'envoi est soit erronée soit n'existe pas.","tb":"To","Size":"Taille","Close":"Fermer","Init error.":"Erreur d'initialisation.","Add files to the upload queue and click the start button.":"Ajoutez des fichiers à la file d'attente de téléchargement et appuyez sur le bouton 'Démarrer l'envoi'","Filename":"Nom du fichier","Image format either wrong or not supported.":"Le format d'image est soit erroné soit pas géré.","Status":"État","HTTP Error.":"Erreur HTTP.","Start Upload":"Démarrer l'envoi","mb":"Mo","kb":"Ko","Duplicate file error.":"Erreur: Fichier déjà sélectionné.","File size error.":"Erreur de taille de fichier.","N/A":"Non applicable","gb":"Go","Error: Invalid file extension:":"Erreur: Extension de fichier non valide:","Select files":"Sélectionnez les fichiers","%s already present in the queue.":"%s déjà présent dans la file d'attente.","File: %s":"Fichier: %s","b":"o","Uploaded %d/%d files":"%d fichiers sur %d ont été envoyés","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"Que %d fichier(s) peuvent être envoyé(s) à la fois. Les fichiers supplémentaires ont été ignorés.","%d files queued":"%d fichiers en attente","File: %s, size: %d, max file size: %d":"Fichier: %s, taille: %d, taille max. d'un fichier: %d","Drag files here.":"Déposez les fichiers ici.","Runtime ran out of available memory.":"Le traitement a manqué de mémoire disponible.","File count error.":"Erreur: Nombre de fichiers.","File extension error.":"Erreur d'extension de fichier","Error: File too large:":"Erreur: Fichier trop volumineux:","Add Files":"Ajouter des fichiers"}); -------------------------------------------------------------------------------- /view/friends-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 |
12 |

全部关注

13 |
14 | 18 |
19 | 20 |
    21 |
  • 22 |
  • 注册于: 23 | QQ: 24 |
  • 25 |
26 | 27 |
28 | 29 |
30 | $showrow) {//总记录数大于每页显示数,显示分页 32 | $page = new page($total, $showrow, $curpage, $url, 2); 33 | echo $page->myde_write(); 34 | } 35 | ?> 36 |
37 |
38 | 39 |
40 |
41 | 42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /imageUploadForm.php: -------------------------------------------------------------------------------- 1 | 0) { 7 | switch ($_FILES ['Filedata'] ['error']) { 8 | case 1 : 9 | $error_log = 'The file is bigger than this PHP installation allows'; 10 | break; 11 | case 2 : 12 | $error_log = 'The file is bigger than this form allows'; 13 | break; 14 | case 3 : 15 | $error_log = 'Only part of the file was uploaded'; 16 | break; 17 | case 4 : 18 | $error_log = 'No file was uploaded'; 19 | break; 20 | default : 21 | break; 22 | } 23 | die ( 'upload error:' . $error_log ); 24 | } else { 25 | $img_data = $_FILES['Filedata']['tmp_name']; 26 | $size = getimagesize($img_data); 27 | $file_type = $size['mime']; 28 | if (!in_array($file_type, array('image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/gif'))) { 29 | $error_log = 'only allow jpg,png,gif'; 30 | die ( 'upload error:' . $error_log ); 31 | } 32 | switch($file_type) { 33 | case 'image/jpg' : 34 | case 'image/jpeg' : 35 | case 'image/pjpeg' : 36 | $extension = 'jpg'; 37 | break; 38 | case 'image/png' : 39 | $extension = 'png'; 40 | break; 41 | case 'image/gif' : 42 | $extension = 'gif'; 43 | break; 44 | } 45 | } 46 | if (!is_file($img_data)) { 47 | die ( 'Image upload error!' ); 48 | } 49 | //图片保存路径,默认保存在该代码所在目录(可根据实际需求修改保存路径) 50 | $save_path = dirname( __FILE__ ).'/public/images/upload/head_image'; 51 | $uinqid = uniqid(); 52 | $filename = $save_path . '/' . $uinqid . '.' . $extension; 53 | $result = move_uploaded_file( $img_data, $filename ); 54 | if ( ! $result || ! is_file( $filename ) ) { 55 | die ( 'Image upload error!' ); 56 | } 57 | echo 'Image data save successed,file:' . $filename; 58 | 59 | require('library/Db.class.php');//连接数据库 60 | session_start();//开启session 61 | $user_id = $_SESSION['user']['id'];//获取登录用户id 62 | $db = new Db(); 63 | $head = $uinqid . '.' . $extension;//组装路径 64 | $sql = "UPDATE mr_user SET avatar = :head WHERE id = :user_id"; 65 | $res = $db->query($sql,array("user_id"=>$user_id,"head"=>$head));//更改头像 66 | $_SESSION['user']['avatar'] = $head;//更改头像session信息 67 | exit (); -------------------------------------------------------------------------------- /view/myfans-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 |
12 |

粉丝

13 |
14 | 18 |
19 | 20 |
    21 |
  • 22 |
  • 23 | 关注| 24 | 粉丝| 25 | 微博 26 |
  • 27 |
  • 注册于: 28 | QQ: 29 |
  • 30 |
31 |
32 | 33 | 34 |
35 | $showrow) {//总记录数大于每页显示数,显示分页 37 | $page = new page($total, $showrow, $curpage, $url, 2); 38 | echo $page->myde_write(); 39 | } 40 | ?> 41 |
42 |
43 | 44 | 45 |
46 |
47 | 48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /atMe.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_at where user_id = :user_id",array('user_id'=>$user_id));//记录总条数 13 | 14 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 15 | $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 16 | } 17 | $sql = "select * from mr_at where user_id = :user_id order by id desc"; 18 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 19 | $at_lists = $db->query($sql,array('user_id'=>$user_id)); 20 | if(isset($at_lists)){ 21 | //获取数据 22 | foreach($at_lists as $vo){ 23 | $post = $db->row('select * from mr_post where id = :id',array('id'=>$vo['post_id'])); 24 | $avatar = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$post['user_id'])); 25 | $post['avatar'] = $avatar; 26 | $status = $db->single('select status from mr_collect where user_id = :uid and post_id = :pid',array('uid'=>$vo['user_id'],'pid'=>$vo['post_id'])); 27 | $post['collect'] = $status ? $status : 0; 28 | 29 | //图片数据格式由字符串转化为数组 30 | if($post['pictures']){ 31 | $post['pictures'] = explode(',',$post['pictures']); 32 | } 33 | //转发数 34 | $post['forward_count'] = $db->single('select count(*) from mr_post where post_type = 2 and pid = '.$post['id']); 35 | 36 | //评论数量 37 | $post['comment_count'] = $db->single('select count(*) from mr_post where post_type = 1 and pid = '.$post['id']); 38 | 39 | //点赞数量 40 | $post['praise_count'] = $db->single('select count(*) from mr_praise where post_id = '.$post['id']); 41 | 42 | $lists[] = $post; 43 | } 44 | 45 | } 46 | 47 | include "view/at-me.php"; 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /view/common/profile.php: -------------------------------------------------------------------------------- 1 | row($sql,array('user_id'=>$_SESSION['user']['id'])); 4 | ?> 5 |
6 | 7 |
8 | 9 |

10 |
11 | 17 |
    18 | 24 |
      25 | 31 |
      32 |
      33 | 34 | 35 |
      36 |

      明日热销图书

      37 | 47 | 57 | 67 |
      68 | 69 |
      -------------------------------------------------------------------------------- /library/Log.class.php: -------------------------------------------------------------------------------- 1 | path = dirname(__FILE__) . $this->path; 17 | } 18 | 19 | /** 20 | * @void 21 | * Creates the log 22 | * 23 | * @param string $message the message which is written into the log. 24 | * @description: 25 | * 1. Checks if directory exists, if not, create one and call this method again. 26 | * 2. Checks if log already exists. 27 | * 3. If not, new log gets created. Log is written into the logs folder. 28 | * 4. Logname is current date(Year - Month - Day). 29 | * 5. If log exists, edit method called. 30 | * 6. Edit method modifies the current log. 31 | */ 32 | public function write($message) { 33 | $date = new DateTime(); 34 | $log = $this->path . $date->format('Y-m-d').".txt"; 35 | 36 | if(is_dir($this->path)) { 37 | if(!file_exists($log)) { 38 | $fh = fopen($log, 'a+') or die("Fatal Error !"); 39 | $logcontent = "Time : " . $date->format('H:i:s')."\r\n" . $message ."\r\n"; 40 | fwrite($fh, $logcontent); 41 | fclose($fh); 42 | } 43 | else { 44 | $this->edit($log,$date, $message); 45 | } 46 | } 47 | else { 48 | if(mkdir($this->path,0777) === true) 49 | { 50 | $this->write($message); 51 | } 52 | } 53 | } 54 | 55 | /** 56 | * @void 57 | * Gets called if log exists. 58 | * Modifies current log and adds the message to the log. 59 | * 60 | * @param string $log 61 | * @param DateTimeObject $date 62 | * @param string $message 63 | */ 64 | private function edit($log,$date,$message) { 65 | $logcontent = "Time : " . $date->format('H:i:s')."\r\n" . $message ."\r\n\r\n"; 66 | $logcontent = $logcontent . file_get_contents($log); 67 | file_put_contents($log, $logcontent); 68 | } 69 | } 70 | ?> 71 | -------------------------------------------------------------------------------- /follow.php: -------------------------------------------------------------------------------- 1 | row('select * from mr_friends where user_id = :user_id and friend_id = :friend_id', 12 | array('user_id'=>$user_id,'friend_id'=>$friend_id)); 13 | if(!$friend){ //没有该好友信息 14 | $sql = 'insert into mr_friends (user_id,friend_id,status,addtime) value (:user_id,:friend_id,1,:addtime)'; 15 | $db->query($sql,array('user_id'=>$user_id,'friend_id'=>$friend_id,'addtime'=>$addtime)); 16 | if( $db->lastInsertId() ){ 17 | //关注数+1 18 | $db->query('update mr_user set follows_num = follows_num + 1 where id = :user_id',array('user_id'=>$user_id)); 19 | //好友粉丝数+1 20 | $db->query('update mr_user set fans_num = fans_num + 1 where id = :friend_id',array('friend_id'=>$friend_id)); 21 | } 22 | echo 1; 23 | }else{ //存在该好友信息 24 | if($friend['status'] == 0){ //已取消关注该好友的情况,重新关注 25 | $sql = 'update mr_friends set status = 1,addtime = :addtime where id = :id'; 26 | $res = $db->query($sql,array('id'=>$friend['id'],'addtime'=>$addtime)); 27 | if($res){ 28 | //关注数+1 29 | $db->query('update mr_user set follows_num = follows_num + 1 where id = :user_id',array('user_id'=>$user_id)); 30 | //好友粉丝数+1 31 | $db->query('update mr_user set fans_num = fans_num + 1 where id = :friend_id',array('friend_id'=>$friend_id)); 32 | } 33 | echo 1; 34 | }else{ //已经关注该好友时,取消关注 35 | $sql = 'update mr_friends set status = 0,addtime = :addtime where id = :id '; 36 | $res = $db->query($sql,array('id'=>$friend['id'],'addtime'=>$addtime)); 37 | if($res){ 38 | //关注数量-1 39 | $db->query('update mr_user set follows_num = follows_num - 1 where id = :user_id',array('user_id'=>$user_id)); 40 | //好友粉丝-1 41 | $db->query('update mr_user set fans_num = fans_num - 1 where id = :friend_id',array('friend_id'=>$friend_id)); 42 | } 43 | echo 0; 44 | } 45 | } 46 | 47 | 48 | -------------------------------------------------------------------------------- /public/css/login.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0px; 3 | padding: 0px 4 | } 5 | body { 6 | width:100%; 7 | background-image: url("../../public/images/login_bg.png"); 8 | background-repeat: no-repeat; 9 | background-position: center 50%; 10 | } 11 | .header { 12 | width:1000px; 13 | margin: 0 auto; 14 | vertical-align: middle; 15 | } 16 | .header img{ 17 | margin:48px 0px 20px 0px; 18 | } 19 | .main { 20 | width:1000px; 21 | margin: 0 auto; 22 | background-color: rgba(255,255,255,0.2); 23 | padding: 10px; 24 | overflow: hidden; 25 | } 26 | 27 | .left { 28 | float: left 29 | } 30 | 31 | .content { 32 | float:right; 33 | width:330px; 34 | } 35 | .ui.blue.segment:not(.inverted){ 36 | border: none; 37 | border-radius: 0px; 38 | } 39 | .ui.segment{ 40 | margin: 0; 41 | border:none; 42 | } 43 | .ui.message{ 44 | background-color: #fff; 45 | border: none; 46 | border-radius: 0px; 47 | margin: 0; 48 | box-shadow: 0px 0px 0px 0px rgba(34, 36, 38, 0.22) inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); 49 | } 50 | .ui.stacked.segment:before, .ui.stacked.segment:after { 51 | content: ''; 52 | position: absolute; 53 | bottom: -3px; 54 | left: 0%; 55 | border-top: 0px solid rgba(34, 36, 38, 0.15); 56 | background: rgba(0, 0, 0, 0); 57 | width: 100%; 58 | height: 6px; 59 | visibility: visible; 60 | } 61 | .ui.teal.buttons .button, .ui.teal.button { 62 | background-color: #4b8dca; 63 | color: #ffffff; 64 | text-shadow: none; 65 | background-image: none; 66 | } 67 | .ui.teal.buttons .button:focus, .ui.teal.button:focus { 68 | background-color: #4b8dca; 69 | color: #ffffff; 70 | text-shadow: none; 71 | } 72 | .ui.teal.buttons .button:hover, 73 | .ui.teal.button:hover { 74 | background-color: #2d70af; 75 | color: #ffffff; 76 | text-shadow: none; 77 | } 78 | 79 | .clear { 80 | clear:both; 81 | } 82 | .footer { 83 | line-height:50px; 84 | text-align: center; 85 | color: #fff; 86 | } 87 | .recommend{ 88 | text-align: center; 89 | } 90 | .recommend .divider h4{ 91 | color: #fff; 92 | } 93 | .ui.horizontal.divider:before, .ui.horizontal.divider:after { 94 | height: 1px; 95 | overflow: hidden; 96 | color: #fff; 97 | background-image: url("../../public/images/line.png"); 98 | } 99 | .ui.tiny.images .image, .ui.tiny.images img, .ui.tiny.images svg, .ui.tiny.image { 100 | margin: 4px 12px; 101 | } -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | single("select count(*) as count from mr_post where post_type != 1 "); 14 | 15 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)) 16 | $curpage = ceil($total / $showrow); //当前页数大于最后页数,取最后一页 17 | //获取数据 18 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 19 | $post = $db->query($sql); //所有微博 20 | foreach($post as $vo){ 21 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 22 | $status = $db->single('select status from mr_collect where user_id = :uid and post_id = :pid',array('uid'=>$vo['user_id'],'pid'=>$vo['id'])); 23 | $vo['collect'] = $status ? $status : 0; 24 | 25 | //图片数据格式由字符串转化为数组 26 | if($vo['pictures']){ 27 | $vo['pictures'] = explode(',',$vo['pictures']); 28 | } 29 | 30 | //如果转发 31 | if(isset($vo['pid']) && $vo['post_type'] == 2){ 32 | $parent = array(); 33 | $content = ''; 34 | $pid = $vo['pid']; 35 | //查找父级 36 | $parent = $db->row('select * from mr_post where id = '.$pid); 37 | do{ 38 | //如果是转发内容,继续查找转发的父级 39 | if(isset($parent) && $parent['post_type'] == 2){ 40 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 41 | //查找父级 42 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']); 43 | $flag = true; 44 | }else{ 45 | //图片数据格式由字符串转化为数组 46 | if($parent['pictures']){ 47 | $parent['pictures'] = explode(',',$parent['pictures']); 48 | } 49 | $sub['parent'] = $parent; 50 | $flag = false; 51 | } 52 | }while($flag === true); 53 | //去除结尾的“//” 54 | $sub['content'] = substr($content,0,-2); 55 | $vo['sub'] = $sub; 56 | } 57 | $lists[] = $vo; 58 | } 59 | include 'view/index-list.php'; -------------------------------------------------------------------------------- /public/static/highslide/highslide-ie6.css: -------------------------------------------------------------------------------- 1 | .closebutton { 2 | /* NOTE! This URL is relative to the HTML page, not the CSS */ 3 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 4 | src='../highslide/graphics/close.png', sizingMethod='scale'); 5 | 6 | background: none; 7 | cursor: hand; 8 | } 9 | 10 | /* Viewport fixed hack */ 11 | .highslide-viewport { 12 | position: absolute; 13 | left: expression( ( ( ignoreMe1 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' ); 14 | top: expression( ( ignoreMe2 = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) + 'px' ); 15 | width: expression( ( ( ignoreMe3 = document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) ) + 'px' ); 16 | height: expression( ( ( ignoreMe4 = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) ) + 'px' ); 17 | } 18 | 19 | /* Thumbstrip PNG fix */ 20 | .highslide-scroll-down, .highslide-scroll-up { 21 | position: relative; 22 | overflow: hidden; 23 | } 24 | .highslide-scroll-down div, .highslide-scroll-up div { 25 | /* NOTE! This URL is relative to the HTML page, not the CSS */ 26 | filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 27 | src='../highslide/graphics/scrollarrows.png', sizingMethod='scale'); 28 | background: none !important; 29 | position: absolute; 30 | cursor: hand; 31 | width: 75px; 32 | height: 75px !important; 33 | } 34 | .highslide-thumbstrip-horizontal .highslide-scroll-down div { 35 | left: -50px; 36 | top: -15px; 37 | } 38 | .highslide-thumbstrip-horizontal .highslide-scroll-up div { 39 | top: -15px; 40 | } 41 | .highslide-thumbstrip-vertical .highslide-scroll-down div { 42 | top: -50px; 43 | } 44 | 45 | /* Thumbstrip marker arrow trasparent background fix */ 46 | .highslide-thumbstrip .highslide-marker { 47 | border-color: white; /* match the background */ 48 | } 49 | .dark .highslide-thumbstrip-horizontal .highslide-marker { 50 | border-color: #111; 51 | } 52 | .highslide-viewport .highslide-marker { 53 | border-color: #333; 54 | } 55 | .highslide-thumbstrip { 56 | float: left; 57 | } 58 | 59 | /* Positioning fixes for the control bar */ 60 | .text-controls .highslide-controls { 61 | width: 480px; 62 | } 63 | .text-controls a span { 64 | width: 4em; 65 | } 66 | .text-controls .highslide-full-expand a span { 67 | width: 0; 68 | } 69 | .text-controls .highslide-close a span { 70 | width: 0; 71 | } 72 | 73 | /* Special */ 74 | .in-page .highslide-thumbstrip-horizontal .highslide-marker { 75 | border-bottom: gray; 76 | } 77 | -------------------------------------------------------------------------------- /library/logs/2016-11-24.txt: -------------------------------------------------------------------------------- 1 | Time : 11:00:34 2 | SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'addtime' at row 1 3 | Raw SQL : insert into mr_friends (user_id,friend_id,status,addtime) value (:user_id,:friend_id,1,:addtime) 4 | 5 | Time : 11:00:32 6 | SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'addtime' at row 1 7 | Raw SQL : insert into mr_friends (user_id,friend_id,status,addtime) value (:user_id,:friend_id,1,:addtime) 8 | 9 | Time : 11:00:30 10 | SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'addtime' at row 1 11 | Raw SQL : insert into mr_friends (user_id,friend_id,status,addtime) value (:user_id,:friend_id,1,:addtime) 12 | 13 | Time : 11:00:25 14 | SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'addtime' at row 1 15 | Raw SQL : insert into mr_friends (user_id,friend_id,status,addtime) value (:user_id,:friend_id,1,:addtime) 16 | 17 | Time : 10:55:01 18 | SQLSTATE[HY000]: General error: 1364 Field 'qq' doesn't have a default value 19 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:password ,1479981301) 20 | 21 | Time : 10:53:22 22 | SQLSTATE[HY000]: General error: 1364 Field 'qq' doesn't have a default value 23 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:password ,1479981202) 24 | 25 | Time : 10:52:18 26 | SQLSTATE[HY000]: General error: 1364 Field 'qq' doesn't have a default value 27 | Raw SQL : insert into mr_user ( username , password ,addtime ) VALUE ( :username ,:password ,1479981138) 28 | 29 | Time : 10:29:59 30 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 31 | 32 | Time : 10:22:46 33 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 34 | 35 | Time : 10:22:45 36 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 37 | 38 | Time : 10:22:45 39 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 40 | 41 | Time : 10:22:45 42 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 43 | 44 | Time : 10:22:44 45 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 46 | 47 | Time : 10:22:43 48 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 49 | 50 | Time : 10:22:32 51 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 52 | 53 | Time : 10:22:29 54 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 55 | 56 | Time : 10:22:14 57 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) 58 | -------------------------------------------------------------------------------- /view/homepage-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
      7 |
      8 | 9 |
      10 |

      11 |
      12 | 17 | 18 | 19 | 24 | 25 | 28 | 29 | 32 | 33 | 34 |
      35 |
      36 |
        37 |
      • 38 |
      • 关注
      • 39 |
      40 |
        41 |
          42 |
        • 43 | 44 |
        • 45 |
        • 粉丝
        • 46 |
        47 |
          48 |
            49 |
          • 50 |
          • 微博
          • 51 |
          52 |
          53 |
          54 |
          55 |
          56 | 57 |
          58 |
          59 | 60 |

          他的微博

          61 | 62 |
          63 |

          还没有微博哦!

          64 |
          65 | 70 | 71 |
          72 | 73 | 74 |
          75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /public/static/layer/skin/layer.ext.css: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | @Name: layer拓展样式 4 | @Date: 2012.12.13 5 | @Author: 贤心 6 | @blog: sentsin.com 7 | 8 | */.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span{text-overflow:ellipsis;white-space:nowrap}.layui-layer-iconext{background:url(default/icon-ext.png) no-repeat}html #layui_layer_skinlayerextcss{display:none;position:absolute;width:1989px}.layui-layer-prompt .layui-layer-input{display:block;width:220px;height:30px;margin:0 auto;line-height:30px;padding:0 5px;border:1px solid #ccc;box-shadow:1px 1px 5px rgba(0,0,0,.1) inset;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;border-bottom:1px solid #ccc;background-color:#eee;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;cursor:default;overflow:hidden}.layui-layer-tab .layui-layer-title span.layui-layer-tabnow{height:43px;border-left:1px solid #ccc;border-right:1px solid #ccc;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.xubox_tab_layer{display:block}.xubox_tabclose{position:absolute;right:10px;top:5px;cursor:pointer}.layui-layer-photos{-webkit-animation-duration:1s;animation-duration:1s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal} -------------------------------------------------------------------------------- /view/forward-list.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
          8 |
          9 |

          原始微博

          10 | 11 |
          12 |
          13 |
          14 | 15 | 16 | 17 |
          18 |
            19 |
          • 20 |
          • 21 |
          • 22 | 23 | 24 |
          • 25 |
          • 32 | 33 |
          34 |
          35 |
          36 | 37 | 38 |

          全部转发

          39 | 40 |
          还没有转发哦!
          41 | 42 | 43 |
          44 |
          45 |
          46 | 47 | 48 | 49 |
          50 |
            51 |
          • 52 |
          • 53 |
          • 54 |
          • 55 |
          56 |
          57 |
          58 | 59 | 60 | 61 | 62 |
          63 | 64 |
          65 | 66 | 67 | -------------------------------------------------------------------------------- /forward.php: -------------------------------------------------------------------------------- 1 | row("SELECT * FROM mr_post where id = :post_id",array('post_id'=>$post_id)); //查找post_id的微博内容 10 | $avatar = get_user_avatar($post_info['user_id']); //获取用户头像 11 | $post_info['avatar'] = $avatar; //头像赋值 12 | //收藏 13 | $status = $db->single('select status from mr_collect where user_id = :user_id and post_id = :post_id',array('user_id'=>$post_info['user_id'],'post_id'=>$post_info['id'])); 14 | $post_info['collect'] = $status ? $status : 0; 15 | //图片数据格式由字符串转化为数组 16 | if($post_info['pictures']){ 17 | $post_info['pictures'] = explode(',',$post_info['pictures']); 18 | } 19 | //如果转发 20 | if(isset($post_info['pid']) && $post_info['post_type'] == 2){ 21 | $parent = array(); 22 | $content = ''; 23 | $pid = $post_info['pid']; 24 | $parent = $db->row('select * from mr_post where id = '.$pid);//查找父级 25 | do{ 26 | if(isset($parent) && $parent['post_type'] == 2){ 27 | //查找父级 28 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 29 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//查找父级 30 | $flag = true; 31 | }else{ 32 | //图片数据格式由字符串转化为数组 33 | if($parent['pictures']){ 34 | $parent['pictures'] = explode(',',$parent['pictures']); 35 | } 36 | $sub['parent'] = $parent; 37 | $flag = false; 38 | } 39 | }while($flag === true); 40 | $sub['content'] = substr($content,0,-2); 41 | $post_info['sub'] = $sub; 42 | } 43 | 44 | 45 | /** 查找该微博的回复 **/ 46 | $showrow = 5; //一页显示的行数 47 | $curpage = empty($_GET['page']) ? 1 : $_GET['page']; //当前的页,还应该处理非数字的情况 48 | $url = "?page={page}&post_id=".$post_id; //分页地址,如果有检索条件 ="?page={page}&q=".$_GET['q'] 49 | 50 | $total = $db->single('select count(*) from mr_post where pid = :post_id and post_type = 2',array('post_id'=>$post_id)); 51 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)) { 52 | $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 53 | } 54 | 55 | //获取所有回复数据 56 | $sql = "SELECT * FROM mr_post where pid = :post_id and post_type = 2 ORDER BY addtime DESC"; 57 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 58 | $forward = $db->query($sql,array('post_id'=>$post_id)); 59 | foreach($forward as $vo){ 60 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 61 | $lists[] = $vo; 62 | } 63 | include 'view/forward-list.php'; 64 | 65 | 66 | -------------------------------------------------------------------------------- /myPraise.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_praise where user_id = :user_id ",array('user_id'=>$user_id));//��¼������ 16 | 17 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 18 | $curpage = ceil($total / $showrow); //��ǰҳ���������ҳ����ȡ���һҳ 19 | } 20 | $sql = "select * from mr_praise where user_id = :user_id order by id desc"; 21 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 22 | $praise_lists = $db->query($sql,array('user_id'=>$user_id)); 23 | 24 | if(isset($praise_lists)){ 25 | foreach($praise_lists as $vo){ 26 | $post = $db->row('select * from mr_post where id = :id',array('id'=>$vo['post_id'])); 27 | $avatar = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$post['user_id'])); 28 | $post['avatar'] = $avatar; 29 | $post['collect'] = 1; //���ղ� 30 | //ͼƬ���ݸ�ʽ���ַ���ת��Ϊ���� 31 | if($post['pictures']){ 32 | $post['pictures'] = explode(',',$post['pictures']); 33 | } 34 | //ת���� 35 | $post['forward_count'] = $db->single('select count(*) from mr_post where post_type = 2 and pid = '.$post['id']); 36 | //�������� 37 | $post['comment_count'] = $db->single('select count(*) from mr_post where post_type = 1 and pid = '.$post['id']); 38 | //�������� 39 | $post['praise_count'] = $db->single('select count(*) from mr_praise where post_id = '.$post['id']); 40 | //���ת�� 41 | if(isset($post['pid']) && $post['post_type'] == 2){ 42 | $parent = array(); 43 | $content = ''; 44 | $pid = $post['pid']; 45 | $parent = $db->row('select * from mr_post where id = '.$pid);//���Ҹ��� 46 | do{ 47 | if(isset($parent) && $parent['post_type'] == 2){ 48 | //���Ҹ��� 49 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 50 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//���Ҹ��� 51 | $flag = true; 52 | }else{ 53 | //ͼƬ���ݸ�ʽ���ַ���ת��Ϊ���� 54 | if($parent['pictures']){ 55 | $parent['pictures'] = explode(',',$parent['pictures']); 56 | } 57 | $sub['parent'] = $parent; 58 | $flag = false; 59 | } 60 | }while($flag === true); 61 | $sub['content'] = substr($content,0,-2); 62 | $post['sub'] = $sub; 63 | } 64 | $lists[] = $post; 65 | } 66 | 67 | } 68 | 69 | include 'view/mypraise-list.php'; 70 | 71 | -------------------------------------------------------------------------------- /comment.php: -------------------------------------------------------------------------------- 1 | row("select * from mr_post where id = :post_id",array('post_id'=>$post_id)); 10 | $post_info['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$post_info['user_id'])); 11 | 12 | $status = $db->single('select status from mr_collect where user_id = :user_id and post_id = :post_id',array('user_id'=>$post_info['user_id'],'post_id'=>$post_info['id'])); 13 | $post_info['collect'] = $status ? $status : 0; 14 | 15 | //图片数据格式由字符串转化为数组 16 | if($post_info['pictures']){ 17 | $post_info['pictures'] = explode(',',$post_info['pictures']); 18 | } 19 | //如果转发 20 | if(isset($post_info['pid']) && $post_info['post_type'] == 2){ 21 | $parent = array(); 22 | $content = ''; 23 | $pid = $post_info['pid']; 24 | $parent = $db->row('select * from mr_post where id = '.$pid);//查找父级 25 | do{ 26 | if(isset($parent) && $parent['post_type'] == 2){ 27 | //查找父级 28 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 29 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//查找父级 30 | $flag = true; 31 | }else{ 32 | //图片数据格式由字符串转化为数组 33 | if($parent['pictures']){ 34 | $parent['pictures'] = explode(',',$parent['pictures']); 35 | } 36 | $sub['parent'] = $parent; 37 | $flag = false; 38 | } 39 | }while($flag === true); 40 | $sub['content'] = substr($content,0,-2); 41 | $post_info['sub'] = $sub; 42 | } 43 | 44 | /** 查找该微博的回复 **/ 45 | $showrow = 5; //一页显示的行数 46 | $curpage = empty($_GET['page']) ? 1 : $_GET['page']; //当前的页,还应该处理非数字的情况 47 | $url = "?page={page}&post_id=".$post_id; //分页地址,如果有检索条件 ="?page={page}&q=".$_GET['q'] 48 | $total = $db->single('select count(*) from mr_post where pid = :pid',array('pid'=>$post_id)); 49 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 50 | $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 51 | } 52 | 53 | //获取数据 54 | $sql = 'SELECT * FROM mr_post where pid = :pid ORDER BY addtime DESC'; 55 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 56 | $comment = $db->query($sql,array('pid'=>$post_id)); 57 | 58 | foreach($comment as $vo){ 59 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 60 | $status = $db->single('select status from mr_collect where user_id = :uid and post_id = :pid',array('uid'=>$vo['user_id'],'pid'=>$vo['id'])); 61 | $vo['collect'] = $status ? $status : 0; 62 | $lists[] = $vo; 63 | } 64 | 65 | include 'view/comment-list.php'; 66 | 67 | ?> 68 | 69 | -------------------------------------------------------------------------------- /myPost.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_post where post_type != 1 and user_id = :user_id",array('user_id'=>$user_id));//记录总条数 15 | 16 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 17 | $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 18 | } 19 | //获取数据 20 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 21 | 22 | $row = $db->query($sql,array('user_id'=>$user_id)); 23 | 24 | foreach($row as $vo){ 25 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 26 | $status = $db->single('select status from mr_collect where user_id = :uid and post_id = :pid',array('uid'=>$vo['user_id'],'pid'=>$vo['id'])); 27 | $vo['collect'] = $status ? $status : 0; 28 | 29 | 30 | //图片数据格式由字符串转化为数组 31 | if($vo['pictures']){ 32 | $vo['pictures'] = explode(',',$vo['pictures']); 33 | } 34 | //转发数 35 | $vo['forward_count'] = $db->single('select count(*) from mr_post where post_type = 2 and pid = '.$vo['id']); 36 | 37 | //评论数量 38 | $vo['comment_count'] = $db->single('select count(*) from mr_post where post_type = 1 and pid = '.$vo['id']); 39 | 40 | //点赞数量 41 | $vo['praise_count'] = $db->single('select count(*) from mr_praise where post_id = '.$vo['id']); 42 | 43 | //如果转发 44 | if(isset($vo['pid']) && $vo['post_type'] == 2){ 45 | $parent = array(); 46 | $content = ''; 47 | $pid = $vo['pid']; 48 | $parent = $db->row('select * from mr_post where id = '.$pid);//查找父级 49 | do{ 50 | if(isset($parent) && $parent['post_type'] == 2){ 51 | //查找父级 52 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 53 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//查找父级 54 | $flag = true; 55 | }else{ 56 | //图片数据格式由字符串转化为数组 57 | if($parent['pictures']){ 58 | $parent['pictures'] = explode(',',$parent['pictures']); 59 | } 60 | $sub['parent'] = $parent; 61 | $flag = false; 62 | } 63 | }while($flag === true); 64 | $sub['content'] = substr($content,0,-2); 65 | 66 | $vo['sub'] = $sub; 67 | } 68 | 69 | $lists[] = $vo; 70 | } 71 | include "view/mypost-list.php"; 72 | 73 | 74 | -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_post where content like :keyword",array('keyword'=>"%$keyword%"));//��¼������ 15 | 16 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)) 17 | $curpage = ceil($total_rows / $showrow); //��ǰҳ���������ҳ����ȡ���һҳ 18 | //��ȡ���� 19 | $sql = "select * from mr_post where content like :keyword"; 20 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 21 | 22 | $post = $db->query($sql,array('keyword'=>"%$keyword%")); 23 | 24 | foreach($post as $vo){ 25 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 26 | $status = $db->single('select status from mr_collect where user_id = :uid and post_id = :pid',array('uid'=>$vo['user_id'],'pid'=>$vo['id'])); 27 | $vo['collect'] = $status ? $status : 0; 28 | 29 | //ͼƬ���ݸ�ʽ���ַ���ת��Ϊ���� 30 | if($vo['pictures']){ 31 | $vo['pictures'] = explode(',',$vo['pictures']); 32 | } 33 | //ת���� 34 | $vo['forward_count'] = $db->single('select count(*) from mr_post where post_type = 2 and pid = '.$vo['id']); 35 | 36 | //�������� 37 | $vo['comment_count'] = $db->single('select count(*) from mr_post where post_type = 1 and pid = '.$vo['id']); 38 | 39 | //�������� 40 | $vo['praise_count'] = $db->single('select count(*) from mr_praise where post_id = '.$vo['id']); 41 | 42 | //���ת�� 43 | if(isset($vo['pid']) && $vo['post_type'] == 2){ 44 | $parent = array(); 45 | $content = ''; 46 | $pid = $vo['pid']; 47 | $parent = $db->row('select * from mr_post where id = '.$pid);//���Ҹ��� 48 | do{ 49 | if(isset($parent) && $parent['post_type'] == 2){ 50 | //���Ҹ��� 51 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 52 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//���Ҹ��� 53 | $flag = true; 54 | }else{ 55 | //ͼƬ���ݸ�ʽ���ַ���ת��Ϊ���� 56 | if($parent['pictures']){ 57 | $parent['pictures'] = explode(',',$parent['pictures']); 58 | } 59 | $sub['parent'] = $parent; 60 | $flag = false; 61 | } 62 | }while($flag === true); 63 | $sub['content'] = substr($content,0,-2); 64 | $vo['sub'] = $sub; 65 | } 66 | $lists[] = $vo; 67 | } 68 | include "view/search-list.php"; 69 | -------------------------------------------------------------------------------- /homepage.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_post where post_type != 1 and user_id = :friend_id",array('friend_id'=>$friend_id));//记录总条数 16 | 17 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 18 | $curpage = ceil($total_rows / $showrow); //当前页数大于最后页数,取最后一页 19 | } 20 | //获取数据 21 | $sql = "SELECT * FROM mr_post where ( post_type != 1 and user_id = :friend_id) ORDER BY addtime DESC"; 22 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 23 | $row = $db->query($sql,array('friend_id'=>$friend_id)); 24 | 25 | foreach($row as $vo){ 26 | $vo['avatar'] = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$vo['user_id'])); 27 | $status = $db->single('select status from mr_collect where user_id = :uid and post_id = :pid',array('uid'=>$_SESSION['user']['id'],'pid'=>$vo['id'])); 28 | $vo['collect'] = $status ? $status : 0; 29 | //图片数据格式由字符串转化为数组 30 | if($vo['pictures']){ 31 | $vo['pictures'] = explode(',',$vo['pictures']); 32 | } 33 | 34 | //转发数 35 | $vo['forward_count'] = $db->single('select count(*) from mr_post where post_type = 2 and pid = '.$vo['id']); 36 | 37 | //评论数量 38 | $vo['comment_count'] = $db->single('select count(*) from mr_post where post_type = 1 and pid = '.$vo['id']); 39 | 40 | //点赞数量 41 | $vo['praise_count'] = $db->single('select count(*) from mr_praise where post_id = '.$vo['id']); 42 | 43 | //如果转发 44 | if(isset($vo['pid']) && $vo['post_type'] == 2){ 45 | $parent = array(); 46 | $content = ''; 47 | $pid = $vo['pid']; 48 | $parent = $db->row('select * from mr_post where id = '.$pid);//查找父级 49 | do{ 50 | if(isset($parent) && $parent['post_type'] == 2){ 51 | //查找父级 52 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 53 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//查找父级 54 | $flag = true; 55 | }else{ 56 | //图片数据格式由字符串转化为数组 57 | if($parent['pictures']){ 58 | $parent['pictures'] = explode(',',$parent['pictures']); 59 | } 60 | $sub['parent'] = $parent; 61 | $flag = false; 62 | } 63 | }while($flag === true); 64 | 65 | $sub['content'] = substr($content,0,-2); 66 | $vo['sub'] = $sub; 67 | } 68 | 69 | $lists[] = $vo; 70 | } 71 | 72 | include "view/homepage-list.php"; -------------------------------------------------------------------------------- /view/forward-layer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
          6 |
          7 |
          8 |
          9 | 10 |
          11 |
          12 |
          13 |
          14 | 15 |
          16 |
          17 |
          18 |
          19 | 20 | 最新转发~~~ 21 | 22 |
          23 | 还可输入140 24 | 25 |
          26 |
          27 |
          28 | 29 | 30 | 31 | 32 |
          33 | 34 | 35 |
          36 |
          37 |
          38 | 39 | 40 | 41 |
          42 |
            43 |
          • 44 |
          • 45 |
          • 46 |
          47 |
          48 |
          49 | 50 | 2){ ?> 51 | 56 | 57 |
          58 | 59 | 60 |
          61 |
          62 |
          63 |
          64 | 65 | -------------------------------------------------------------------------------- /myCollect.php: -------------------------------------------------------------------------------- 1 | single("select count(*) from mr_collect where status = 1 and user_id = :user_id ",array('user_id'=>$user_id));//记录总条数 16 | 17 | if (!empty($_GET['page']) && $total != 0 && $curpage > ceil($total / $showrow)){ 18 | $curpage = ceil($total / $showrow); //当前页数大于最后页数,取最后一页 19 | } 20 | $sql = "select * from mr_collect where status = 1 and user_id = :user_id order by id desc"; 21 | $sql .= " LIMIT " . ($curpage - 1) * $showrow . ",$showrow;"; 22 | $collect_lists = $db->query($sql,array('user_id'=>$user_id)); 23 | 24 | if(isset($collect_lists)){ 25 | //获取数据 26 | foreach($collect_lists as $vo){ 27 | $post = $db->row('select * from mr_post where id = :id',array('id'=>$vo['post_id'])); 28 | $avatar = $db->single('select avatar from mr_user where id = :user_id',array('user_id'=>$post['user_id'])); 29 | $post['avatar'] = $avatar; 30 | $post['collect'] = 1; //已收藏 31 | //图片数据格式由字符串转化为数组 32 | if($post['pictures']){ 33 | $post['pictures'] = explode(',',$post['pictures']); 34 | } 35 | 36 | //转发数 37 | $post['forward_count'] = $db->single('select count(*) from mr_post where post_type = 2 and pid = '.$post['id']); 38 | 39 | //评论数量 40 | $post['comment_count'] = $db->single('select count(*) from mr_post where post_type = 1 and pid = '.$post['id']); 41 | 42 | //点赞数量 43 | $post['praise_count'] = $db->single('select count(*) from mr_praise where post_id = '.$post['id']); 44 | 45 | //如果转发 46 | if(isset($post['pid']) && $post['post_type'] == 2){ 47 | $parent = array(); 48 | $content = ''; 49 | $pid = $post['pid']; 50 | $parent = $db->row('select * from mr_post where id = '.$pid);//查找父级 51 | do{ 52 | if(isset($parent) && $parent['post_type'] == 2){ 53 | //查找父级 54 | $content = '@'.$parent['username'].':'.$parent['content'].'//'.$content; 55 | $parent = $db->row('select * from mr_post where id = '.$parent['pid']);//查找父级 56 | $flag = true; 57 | }else{ 58 | //图片数据格式由字符串转化为数组 59 | if($parent['pictures']){ 60 | $parent['pictures'] = explode(',',$parent['pictures']); 61 | } 62 | $sub['parent'] = $parent; 63 | $flag = false; 64 | } 65 | }while($flag === true); 66 | $sub['content'] = substr($content,0,-2); 67 | $post['sub'] = $sub; 68 | } 69 | $lists[] = $post; 70 | } 71 | 72 | } 73 | include 'view/mycollect-list.php'; 74 | 75 | -------------------------------------------------------------------------------- /ajaxAction.php: -------------------------------------------------------------------------------- 1 | single('select user_id from mr_post where id = :id', 23 | array('id'=>$pid));//回复id 24 | } 25 | $parent_user_id = isset($parent_user_id) ? $parent_user_id : 0 ; 26 | 27 | $addtime = time(); 28 | $sql = "insert into mr_post (user_id,username,content,pictures,addtime,pid,post_type,parent_user_id) 29 | values( :user_id , :username , :content , :pictures , :addtime , $pid , $type ,$parent_user_id)"; 30 | $insert = $db->query($sql,array("user_id"=>$user_id,"username"=>$username,"content"=>$content, 31 | "pictures"=>$pictures , "addtime"=>$addtime)); 32 | $post_id = $db->lastInsertId(); 33 | /** $type 0:发微博;1:评论微博;2:转发微博**/ 34 | switch ($type) 35 | { 36 | case 0: 37 | $db->query('update mr_user set posts_num = posts_num + 1 where id = :user_id', 38 | array('user_id'=>$user_id)); 39 | break; 40 | case 1: 41 | $db->query('update mr_post set comment_num = comment_num + 1 where id = :pid', 42 | array('pid'=>$pid)); 43 | break; 44 | case 2: 45 | $db->query('update mr_user set posts_num = posts_num + 1 where id = :user_id', 46 | array('user_id'=>$user_id)); 47 | $db->query('update mr_post set forward_num = forward_num + 1 where id = :pid', 48 | array('pid'=>$pid)); 49 | break; 50 | } 51 | 52 | if(strstr($content,"@")){ //判断微博内容中是否含有“@”字符 53 | /** 写入at表 **/ 54 | $reg = "/@([^@\s]+)/"; //正则匹配,得到@的用户 55 | $match = array(); 56 | preg_match_all($reg,$content,$match); //得到@用户数组 57 | $users_array = array_unique($match[1]); //去掉重复用户名 58 | if($users_array){ 59 | $count = count($users_array); //@的用户总数 60 | /**查看@用户是否存在,如果存在写入at表**/ 61 | for($i = 0;$i < $count; $i++){ 62 | //mr_user表中查找用户id是否存在 63 | $select_sql = "select id from mr_user where username = '".$users_array[$i]."'"; 64 | $user_id = $db->single($select_sql,MYSQL_ASSOC); 65 | if($user_id){ 66 | //@信息写入到mr_at表 67 | $insert_sql = "insert into mr_at (user_id,post_id) values ( :user_id , :post_id)"; 68 | $db->query($insert_sql,array('user_id'=>$user_id,'post_id'=>$post_id)); 69 | } 70 | } 71 | } 72 | } 73 | 74 | 75 | 76 | --------------------------------------------------------------------------------