1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 20:27:40 +02:00

198 Commits

Author SHA1 Message Date
Awilum
81ff2288b9 Merge branch 'dev' 2013-12-25 00:32:50 +02:00
Awilum
cd0d8296a5 Monstra 2.3.1 2013-12-25 00:32:27 +02:00
Awilum
03e5fc320c Email Layout: footer fixes 2013-12-25 00:24:00 +02:00
Awilum
b29abf8da1 Gelato: Number Class - updated bytes format (JEDEC & IEC 60027) by mbarzda 2013-12-25 00:08:56 +02:00
Awilum
6f55f9238b Readme Updated 2013-12-25 00:04:14 +02:00
Awilum
ad870b2120 new favicon added #182 2013-12-24 23:58:57 +02:00
Awilum
d9ea1c3d7c Merge branch 'master' 2013-12-24 23:52:02 +02:00
Sergey Romanenko
6531d3ee87 Update Image.php 2013-12-24 21:01:55 +02:00
Sergey Romanenko
c7935e6636 Update README.md 2013-12-24 14:19:42 +02:00
Sergey Romanenko
a33d1a39d9 Update README.md 2013-12-24 10:24:04 +02:00
Sergey Romanenko
cbaa84f50e Update README.md 2013-12-24 10:22:14 +02:00
Sergey Romanenko
339413581d Update README.md 2013-12-24 10:21:45 +02:00
Sergey Romanenko
7696d90752 Installer: SERVER_PORT issue - fixed by KANekT 2013-12-23 16:44:08 +02:00
Sergey Romanenko
c83bb55df3 Merge pull request #179 from bernte/patch-1
Update login.template.php
2013-12-23 00:15:46 -08:00
Sergey Romanenko
e76cd74d5b Merge pull request #181 from bernte/patch-3
Update index.template.php
2013-12-23 00:13:31 -08:00
bernte
099b206e66 Update index.template.php 2013-12-23 03:47:11 +01:00
bernte
10a6b56b34 Update login.template.php
added year
2013-12-22 23:49:47 +01:00
Sergey Romanenko
8e83ca5bd1 Merge pull request #178 from bernte/patch-2
Update Javascript.php
2013-12-22 14:41:55 -08:00
bernte
524052b4bf Update Javascript.php
adding a linebreak for sourcecode after <script> ... </script>
2013-12-22 23:23:32 +01:00
Sergey Romanenko
f4eaded4f3 Merge pull request #177 from bernte/patch-1
Update actions.php
2013-12-22 14:20:40 -08:00
bernte
2efff484fc Update actions.php
adding a linebreak for sourcecode after
`
<meta name="generator" content="Powered by Monstra 2.3.0" />`
2013-12-22 23:16:49 +01:00
Awilum
b134abb96e Merge branch 'master' 2013-12-22 23:34:50 +02:00
Awilum
1a1bfabda0 Sitemap Errors #175 - fixes 2013-12-22 23:31:38 +02:00
Sergey Romanenko
a8ea2d4e02 Merge pull request #176 from bernte/patch-20
Update install.php
2013-12-22 11:43:44 -08:00
Sergey Romanenko
ce571b6ef3 Merge pull request #173 from bernte/patch-18
Update 2.page.txt
2013-12-22 11:41:39 -08:00
Sergey Romanenko
ac3eeb1508 Merge pull request #172 from bernte/patch-17
Update bootstrap.js
2013-12-22 11:38:59 -08:00
Sergey Romanenko
e9691d6b71 Merge pull request #174 from bernte/patch-19
Update footer.chunk.php
2013-12-22 11:38:08 -08:00
Sergey Romanenko
7734822789 Merge pull request #171 from bernte/patch-16
Update de.lang.php
2013-12-22 11:37:23 -08:00
Sergey Romanenko
75af5452bc Merge pull request #170 from bernte/patch-15
Update de.lang.php
2013-12-22 11:37:06 -08:00
Sergey Romanenko
c9019ca5fa Merge pull request #169 from bernte/patch-13
Update login.template.php
2013-12-22 10:39:08 -08:00
bernte
ee8e1abfd4 Update install.php
replaced invalid code
2013-12-22 19:27:03 +01:00
bernte
6b576be9a5 Update footer.chunk.php
made validation fixes for demo site
2013-12-22 15:13:06 +01:00
bernte
e823494ab5 Update 2.page.txt
made validation fixes for demo site
2013-12-22 15:07:39 +01:00
bernte
f7f3b91f46 Update bootstrap.js 2013-12-22 02:46:46 +01:00
bernte
0c90ab6bfe Update de.lang.php 2013-12-22 02:41:36 +01:00
bernte
35b75e9027 Update de.lang.php 2013-12-22 02:39:17 +01:00
bernte
2d5eb31569 Update login.template.php
added alt tag and backslash
2013-12-22 02:32:56 +01:00
Awilum
146e94c1ac Monstra 2.3.0 2013-12-20 00:41:07 +02:00
Sergey Romanenko
e7bd1d284a Revert back to 5.2.4 2013-12-20 00:37:53 +02:00
Awilum
b0b62f5444 Merge branch 'dev' 2013-12-19 22:25:55 +02:00
Awilum
5d430aa2ee Monstra 2.3.0 2013-12-19 22:24:54 +02:00
Awilum
93481f78cf Merge branch 'master' 2013-12-19 22:19:48 +02:00
Awilum
2dc3560f08 Installer Updates 2013-12-19 22:18:44 +02:00
Sergey Romanenko
8808a47dc7 Merge pull request #166 from promo360/master
Update Image.php
2013-12-19 11:55:25 -08:00
Sergey Romanenko
d5550aa245 Update changelog.txt 2013-12-19 13:17:11 +02:00
Sergey Romanenko
db0f5eda80 Update changelog.txt 2013-12-19 13:16:23 +02:00
Sergey Romanenko
7947bd3f05 Update changelog.txt 2013-12-19 13:13:56 +02:00
Sergey Romanenko
033d66a81a Pages Plugin: Bug with pages renaming - fixed 2013-12-13 12:06:19 +02:00
Евгений
f311163ef4 Update Image.php 2013-12-11 17:48:07 +06:00
Awilum
8947295b83 Fix Translates 2013-12-09 22:10:22 +04:00
Awilum
fccf7b3c63 Monstra 2.3.0 beta 2013-12-08 21:06:56 +04:00
Awilum
98c618dbaf Merge branch 'master' 2013-12-08 21:04:12 +04:00
Awilum
4ae5fe6ede Set new Copyright date 2013-12-08 21:02:23 +04:00
Awilum
230b397530 Set new Copyright date 2013-12-08 21:02:23 +04:00
Awilum
fc2183b970 Set new Copyright date 2013-12-08 21:02:22 +04:00
Awilum
25fe85c8f1 Set new Copyright date 2013-12-08 21:02:22 +04:00
Awilum
c554b42f17 Set new Copyright date 2013-12-08 21:02:21 +04:00
Sergey Romanenko
988da91526 Update changelog.txt 2013-12-08 17:59:42 +02:00
Awilum
d1257fb00b Monstra Email Templates #164 2013-12-07 22:42:33 +04:00
Sergey Romanenko
31ec9de178 Merge pull request #163 from promo360/master
Gelato image, resize and crop
2013-11-28 03:00:20 -08:00
Евгений
05a9ff440f Update Image.php 2013-11-28 14:02:22 +06:00
Евгений
b54cac24b1 Update Image.php
функция resize(200, 200) растягивала изображение, теперь нет.
http://f3.s.qip.ru/2Q3rL699.jpg - сверху до, снизу после
2013-11-28 14:00:41 +06:00
Евгений
950b816ca6 function resize, crop
Доработана функция resize
Оптимизирован код функции crop
2013-11-28 13:57:19 +06:00
Sergey Romanenko
dc0c47f5fa Update changelog.txt 2013-11-24 19:33:48 +02:00
Sergey Romanenko
dbefe506f0 Merge pull request #162 from bernte/patch-12
Update available_pages.view.php
2013-11-24 09:31:55 -08:00
Sergey Romanenko
454b328442 Merge pull request #154 from bernte/patch-10
Update de.lang.php
2013-11-24 09:31:15 -08:00
Sergey Romanenko
52353d79ef Merge pull request #146 from bernte/patch-2
Update de.lang.php
2013-11-24 09:31:03 -08:00
Sergey Romanenko
6dcc5ffac8 Merge pull request #121 from nogit/master
Captcha label tiny modification
2013-11-24 09:30:41 -08:00
Sergey Romanenko
f73aa53e40 Update changelog.txt 2013-11-24 19:17:57 +02:00
bernte
07a8e823f8 Update available_pages.view.php
shows only published sites on frontend

found @ http://forum.monstra.org/post/1276/#p1276
2013-11-23 21:57:17 +01:00
Awilum
489f7017d1 Merge branch 'master' 2013-11-23 23:26:40 +04:00
Sergey Romanenko
b2ef78b556 Merge pull request #161 from bernte/patch-14
Update de.lang.php
2013-11-23 08:43:36 -08:00
bernte
d1a5a9c0e2 Update de.lang.php 2013-11-23 15:58:54 +01:00
Awilum
eaeff17cb9 #123 General method getPages() created 2013-11-23 15:35:53 +04:00
Awilum
9e2a7bc23b #158 deleting users - fixed by Oleg Gatseluk 2013-11-23 15:19:12 +04:00
Sergey Romanenko
d1c4f58c2e Update changelog.txt 2013-11-22 00:12:50 +02:00
Awilum
53c079f00a Merge remote-tracking branch 'refs/remotes/origin/master' into dev 2013-11-22 00:11:58 +02:00
Sergey Romanenko
b23bb4b218 Merge pull request #131 from DmitriyMX/fix_table_php
XMLDB: error select for empty table fix
2013-11-21 14:10:10 -08:00
Awilum
5491848f29 Installer layout updates 2013-11-21 23:12:14 +02:00
Awilum
2548103a77 NL added 2013-11-21 22:08:06 +02:00
Awilum
c396744e64 PL flag added 2013-11-21 22:08:04 +02:00
Sergey Romanenko
a6156db3a9 Update changelog.txt 2013-11-21 21:52:05 +02:00
Sergey Romanenko
ad965bbcb9 Update changelog.txt 2013-11-21 21:36:30 +02:00
Sergey Romanenko
2a8babb4f8 Update PHPMailer to 5.2.7 2013-11-21 21:32:55 +02:00
Sergey Romanenko
a8c582c302 Update changelog.txt 2013-11-21 21:28:39 +02:00
Awilum
31c661a1e8 Merge remote-tracking branch 'refs/remotes/origin/master' into dev
Conflicts:
	plugins/box/users/views/frontend/login.view.php
2013-11-21 21:06:22 +02:00
Sergey Romanenko
a5c197fa99 Merge pull request #153 from bernte/patch-9
Update de.lang.php
2013-11-21 10:53:08 -08:00
Sergey Romanenko
09addce76e Merge pull request #152 from bernte/patch-8
Update de.lang.php
2013-11-21 10:52:45 -08:00
Sergey Romanenko
6c280ef102 Merge pull request #151 from bernte/patch-7
Update de.lang.php
2013-11-21 10:52:15 -08:00
Sergey Romanenko
1623d2b1fb Merge pull request #150 from bernte/patch-6
Update de.lang.php
2013-11-21 10:51:52 -08:00
Sergey Romanenko
2cabdf2864 Merge pull request #149 from bernte/patch-5
Update de.lang.php
2013-11-21 10:51:09 -08:00
Sergey Romanenko
397218d9e6 Merge pull request #148 from bernte/patch-4
Update de.lang.php
2013-11-21 10:50:40 -08:00
Sergey Romanenko
1eb7991f36 Merge pull request #147 from bernte/patch-3
Update de.lang.php
2013-11-21 10:49:07 -08:00
Sergey Romanenko
bae207e053 Merge pull request #156 from bernte/patch-11
Maintenance Improvements
2013-11-21 10:39:00 -08:00
Sergey Romanenko
4c3dcbcc36 Merge pull request #145 from bernte/patch-1
Update Stylesheet.php
2013-11-21 04:47:46 -08:00
Sergey Romanenko
74baf298c5 Merge pull request #157 from promo360/master
Promo360 - Fixes
2013-11-21 04:46:24 -08:00
Евгений
9f8d7f5198 Idiorm configure (utf8)
Без указания кодировки, возникают проблемы с кириллицей
2013-11-18 11:10:37 +06:00
Евгений
8f60502a0e Update en.lang.php 2013-11-18 10:58:13 +06:00
Евгений
d79b092542 Update ru.lang.php
При сохранении настроек выскакивало оповещение "Your changes have been saved."
2013-11-18 10:57:30 +06:00
Евгений
4d85666c18 Transparency PNG
При использовании функций resize или crop (остальные функции не проверялись) к PNG изображению с прозрачным фоном терялась прозрачность, фон становился черным.
2013-11-18 10:40:39 +06:00
bernte
faf95e268e Update index.php
503 is the correct server response for "We're closed". If you substitute a normal HTML page saying "We're closed" and serve a 200 it's very likely to get indexed by Google.

If you give the Googlebot a 503, it will just go away and come back later without indexing what you give it.
2013-11-17 17:49:27 +01:00
bernte
1d69c31aca Update de.lang.php 2013-11-10 01:33:20 +01:00
bernte
ca2bd3df8a Update de.lang.php 2013-11-10 01:26:52 +01:00
bernte
49185659f6 Update de.lang.php 2013-11-10 01:22:36 +01:00
bernte
d9a91f514f Update de.lang.php 2013-11-10 01:15:48 +01:00
bernte
5371f9f5db Update de.lang.php 2013-11-10 01:12:22 +01:00
bernte
df85b392b8 Update de.lang.php 2013-11-10 01:08:53 +01:00
bernte
af9432be1a Update de.lang.php 2013-11-10 01:02:23 +01:00
bernte
7e4b4cf9d8 Update de.lang.php
updated german languange
2013-11-10 00:59:32 +01:00
bernte
70e5f13649 Update de.lang.php
updated german language
2013-11-10 00:54:35 +01:00
bernte
09c8deed7f Update Stylesheet.php
sourcecode misses a linebreak after minified css
2013-11-10 00:42:25 +01:00
Sergey Romanenko
a5118781e2 Merge pull request #125 from mwidz/master
Localization: Polish(pl) translations added.
2013-10-04 03:37:39 -07:00
Sergey Romanenko
f1ebf0fcc8 Merge pull request #136 from micheldejoode/master
Created dutch translation for Monstra
2013-09-25 12:45:42 -07:00
micheldejoode
e2175d6d0f Completed Dutch Translation 2013-09-21 08:19:14 +02:00
micheldejoode
3854ad3bb5 Create nl.lang.php 2013-09-20 19:35:12 +02:00
micheldejoode
276c429070 Create nl.lang.php 2013-09-20 19:34:07 +02:00
micheldejoode
34e79a661c Update nl.lang.php
Completed dutch translation
2013-09-20 18:29:42 +02:00
micheldejoode
9e422f259d Update nl.lang.php 2013-09-20 18:02:02 +02:00
micheldejoode
21aba2e8be Update nl.lang.php 2013-09-20 17:30:47 +02:00
micheldejoode
ac1e309b99 Create nl.lang.php 2013-09-20 17:25:14 +02:00
micheldejoode
c47ed55eb8 Update nl.lang.php
Completed dutch translation
2013-09-20 16:57:37 +02:00
micheldejoode
20473439c0 Update nl.lang.php 2013-09-20 16:37:47 +02:00
micheldejoode
1a4622deb1 Create nl.lang.php
Created nl translation file, not yet ready
2013-09-20 16:34:20 +02:00
micheldejoode
daaac9038a Create nl.lang.php
Completed dutch translation
2013-09-20 05:31:31 +02:00
micheldejoode
47ef2a091e Create nl.lang.php
Completed dutch translation
2013-09-20 04:41:06 +02:00
micheldejoode
208025b7c8 Create nl.lang.php
Completed dutch translation
2013-09-20 04:40:07 +02:00
micheldejoode
408a344bad Create nl.lang.php
Completed dutch translation
2013-09-20 04:37:11 +02:00
micheldejoode
6a63c2da9d Create nl.lang.php
Completed dutch translation
2013-09-20 04:24:06 +02:00
micheldejoode
bd216f4581 Create nl.lang.php
Completed dutch translation
2013-09-20 04:13:17 +02:00
micheldejoode
2a034bd1ed Create nl.lang.php
Completed dutch translation
2013-09-20 03:51:21 +02:00
micheldejoode
eecbcbc4ea Create nl.lang.php
Completed dutch translation
2013-09-19 07:09:52 +02:00
micheldejoode
e6ffd0130e Create nl.lang.php
Completed dutch translation
2013-09-19 07:06:32 +02:00
micheldejoode
e0b21a9a3f Create nl.lang.php
Completed dutch translation
2013-09-19 06:59:57 +02:00
micheldejoode
1e7120be12 Update nl.lang.php
Completed dutch translation
2013-09-19 06:57:12 +02:00
micheldejoode
4704926a64 Create nl.lang.php 2013-09-19 06:37:07 +02:00
Sergey Romanenko
8f930f8c6d Fix Number.php: Undefined offset 2013-08-24 12:47:33 +03:00
Sergey Romanenko
52465c5cf4 Fix Number.php: Undefined offset 2013-08-24 12:45:43 +03:00
DmitriyMX
bb8ccb57b7 Resolve #88 2013-08-12 11:22:28 +04:00
Mirosław Widz
bf0e5a0f3c Update install.php
Localization: Polish(pl) translations added.
2013-07-21 00:35:17 +02:00
Mirosław Widz
ed03e383e0 Create pl.lang.php 2013-07-21 00:30:01 +02:00
Mirosław Widz
0566c705b5 Create pl.lang.php 2013-07-21 00:28:22 +02:00
Mirosław Widz
c90badf68c Create pl.lang.php 2013-07-21 00:11:18 +02:00
Mirosław Widz
d05d7e77b9 Create pl.lang.php 2013-07-21 00:07:46 +02:00
Mirosław Widz
5219b4e1fc Create pl.lang.php 2013-07-21 00:05:54 +02:00
Mirosław Widz
82c1f97b7d Create pl.lang.php 2013-07-21 00:04:55 +02:00
Mirosław Widz
5bbfb1880b Create pl.lang.php 2013-07-21 00:03:01 +02:00
Mirosław Widz
13556f2e7d Create pl.lang.php 2013-07-20 23:52:14 +02:00
Mirosław Widz
a72c03a7c7 Create pl.lang.php 2013-07-20 23:50:23 +02:00
Mirosław Widz
27d78e32ff Create pl.lang.php 2013-07-20 23:43:46 +02:00
Mirosław Widz
954b19a064 Create pl.lang.php 2013-07-20 23:41:19 +02:00
Mirosław Widz
6abf4ded20 Create pl.lang.php 2013-07-20 23:39:58 +02:00
Mirosław Widz
20e2fe9a99 Create pl.lang.php 2013-07-20 23:33:46 +02:00
Mirosław Widz
8788146d39 Create pl.lang.php 2013-07-20 23:15:14 +02:00
Mirosław Widz
8a8e35cfab Create pl.lang.php
Localization: Polish(pl) translations added.
2013-07-20 23:00:53 +02:00
nogit
75a3df1bd7 Update password_reset.view.php 2013-07-17 02:16:44 +08:00
nogit
7ade902802 Update registration.view.php
captcha translation doesn't work
2013-07-17 02:14:53 +08:00
nogit
246e5519b9 Update login.template.php
captcha translation doesn't work
2013-07-17 02:12:54 +08:00
nogit
1839a71bbd Update registration.view.php
<label><?php echo __('Captcha'); ?></label>
2013-07-16 23:36:02 +08:00
nogit
31f4dd3edc Update password_reset.view.php
<label><?php echo __('Captcha'); ?></label>
2013-07-16 23:35:26 +08:00
nogit
25c33271a6 Update login.template.php
Captcha </label>
2013-07-16 23:33:29 +08:00
Awilum
cc070065a9 Update changelog.txt 2013-06-30 16:38:00 +03:00
Awilum
28b54e8adf Obfuscate users email to prevent spam-bots from sniffing it. 2013-06-30 16:34:30 +03:00
Awilum
63b2bf2255 Added limits for login attempts #104 2013-06-30 16:27:33 +03:00
Awilum
2c34eb68d4 Added limits for login attempts #104 2013-06-30 16:27:01 +03:00
Awilum
cd160deff0 Files Manager: jasny bootstrap-fileupload - added. #89 2013-06-30 16:25:36 +03:00
Awilum
3e47ca02f3 Files Manager: jasny bootstrap-fileupload - added. #89 2013-06-29 23:47:09 +03:00
Awilum
de50eb52dc Files Manager: jasny bootstrap-fileupload - added. #89 2013-06-29 23:46:45 +03:00
Awilum
e8c599f33f Users Plugin: login page fixes 2013-06-29 13:44:13 +03:00
Awilum
86312eb270 Pages Plugin: page expand ajax bug #115 - fixed 2013-06-29 13:13:46 +03:00
Sergey Romanenko
48a62e5011 Update changelog.txt 2013-06-27 13:16:58 +03:00
Sergey Romanenko
ebda1cb7ba .htaccess SEO improvements 2013-06-27 13:14:47 +03:00
Sergey Romanenko
8637f7240b Update changelog.txt 2013-06-27 13:08:06 +03:00
Sergey Romanenko
d2ba3e0dc7 Update PHPMailer to 5.2.6 2013-06-27 13:04:28 +03:00
Sergey Romanenko
14b9fa89a5 Update Twitter Bootstrap to 2.3.2 2013-06-27 13:02:53 +03:00
Sergey Romanenko
6f4fb89839 Update Twitter Bootstrap to 2.3.2 2013-06-27 13:01:55 +03:00
Sergey Romanenko
2fcf8b6c42 Update Twitter Bootstrap to 2.3.2 2013-06-27 12:59:53 +03:00
Sergey Romanenko
696d7d35bb Update Twitter Bootstrap to 2.3.2 2013-06-27 12:58:47 +03:00
Awilum
8deb6e8cca Monstra: Added ability to map Monstra Engine Directory 2013-04-27 21:46:16 +03:00
Awilum
783a1160ea Hot Fixes 2013-04-07 00:14:29 +03:00
Awilum
e439fc04f4 Merge remote-tracking branch 'refs/remotes/origin/dev' 2013-04-07 00:01:00 +03:00
Awilum
812acbe956 Monstra 2.2.1 2013-04-06 23:56:47 +03:00
Awilum
6496e1bad1 Merge remote-tracking branch 'refs/remotes/origin/master' into dev 2013-04-06 23:51:29 +03:00
Sergey Romanenko
928c12abc7 Merge pull request #113 from mbarzda/languages-fix
Lithuanian flag and other languages fixes
2013-04-06 13:43:37 -07:00
Awilum
e007040feb Remove turn off Error Handler for Production environment 2013-04-06 13:45:10 +03:00
Awilum
ee1fd08621 Update Gelato to 1.0.3 2013-04-04 19:03:37 +03:00
Martynas Barzda
08a61017f9 Lithuanian flag and other languages fixes 2013-04-01 11:00:40 +03:00
Martynas Barzda
f42a4ce42d Merge remote-tracking branch 'original/master'
Conflicts:
	plugins/box/system/system.admin.php
2013-04-01 10:21:14 +03:00
Awilum
f4f699b73a Missing Translation on Login Page - fixed #106 2013-03-29 22:46:04 +02:00
Awilum
68fed3a3e5 Pages Manager: fix translates #107 2013-03-28 22:29:03 +02:00
Awilum
be4c58d242 Localization: Farsi(fa) translations fixes. 2013-03-26 22:48:46 +02:00
Awilum
ad3c63a3d4 Merge remote-tracking branch 'refs/remotes/origin/dev' 2013-03-25 21:39:00 +02:00
Awilum
b180b797ee Monstra 2.2.0 2013-03-25 21:32:55 +02:00
Awilum
1018411068 Merge remote-tracking branch 'origin/dev' 2012-12-09 19:42:27 +02:00
Awilum
cebb6deac8 Merge remote-tracking branch 'origin/dev' 2012-12-05 21:57:15 +02:00
Awilum
38e53c08db Merge remote-tracking branch 'origin/dev' 2012-11-30 19:52:42 +02:00
Awilum
d2aab04430 Merge remote-tracking branch 'origin/dev' 2012-11-29 18:58:30 +02:00
Awilum
0f8103d6ae Merge remote-tracking branch 'origin/dev' 2012-11-29 18:33:16 +02:00
Martynas Barzda
27e355cd56 System Plugin: updated checkMonstraVersion function 2012-10-29 17:12:28 +02:00
197 changed files with 2106 additions and 590 deletions

View File

@@ -19,8 +19,16 @@ Options -Indexes
# Setting rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Update code bellow for SEO improvements
# RewriteCond %{HTTP_HOST} ^www.example.org [NC]
# RewriteRule ^(.*)$ http://example.org/$1 [R=301,L]
RewriteBase /%siteurlhere%/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
# Update code bellow for SEO improvements
# Redirect 301 /home http://example.org/
</IfModule>

View File

@@ -1,12 +1,10 @@
# Monstra CMS
Fast and small content management system written in PHP!
Monstra is a modern and lightweight Content Management System.
## System Requirements
- UNIX/Linux host
- PHP 5.2.3 or higher
- SimpleXML Module
- Apache Mod Rewrite
- Multibyte String
Operation system: Unix, Linux, Windows, Mac OS
Middleware: PHP 5.2.3 or higher with PHP's [SimpleXML module](http://php.net/simplexml) and [Multibyte String module](http://php.net/mbstring)
Webserver: Apache with [Mod Rewrite](http://httpd.apache.org/docs/current/mod/mod_rewrite.html) or Ngnix with [Rewrite Module](http://wiki.nginx.org/HttpRewriteModule)
## Steps to Install
1. [Download the latest version.](http://monstra.org/download)
@@ -21,13 +19,13 @@ Fast and small content management system written in PHP!
2. Donate to keep Monstra free. We will add you to Monstra [Sponsors Page.](http://monstra.org/contribute/sponsors)
3. Develop a new plugin.
4. Create a new theme.
5. Find and [report issues.](https://github.com/MonstraLab/monstra-cms/issues)
5. Find and [report issues.](https://github.com/Awilum/monstra-cms/issues)
6. Link back to [Monstra](http://monstra.org).
## Links
- [Site](http://monstra.org)
- [Forum](http://forum.monstra.org)
- [Documentation](http://monstra.org/documentation)
- [Github Repository](https://github.com/MonstraLab/monstra-cms)
- [Github Repository](https://github.com/Awilum/monstra-cms)
Copyright (C) 2012-2013 Romanenko Sergey / Awilum [awilum@msn.com]
Copyright (C) 2012-2014 Romanenko Sergey / Awilum [awilum@msn.com]

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -33,23 +33,53 @@ $users = new Table('users');
// Admin login
if (Request::post('login_submit')) {
$user = $users->select("[login='" . trim(Request::post('login')) . "']", null);
if (count($user) !== 0) {
if ($user['login'] == Request::post('login')) {
if (trim($user['password']) == Security::encryptPassword(Request::post('password'))) {
if ($user['role'] == 'admin' || $user['role'] == 'editor') {
Session::set('admin', true);
Session::set('user_id', (int) $user['id']);
Session::set('user_login', (string) $user['login']);
Session::set('user_role', (string) $user['role']);
Request::redirect('index.php');
if (Cookie::get('login_attempts') && Cookie::get('login_attempts') >= 5) {
$login_error = __('You are banned for 10 minutes. Try again later', 'users');
} else {
$user = $users->select("[login='" . trim(Request::post('login')) . "']", null);
if (count($user) !== 0) {
if ($user['login'] == Request::post('login')) {
if (trim($user['password']) == Security::encryptPassword(Request::post('password'))) {
if ($user['role'] == 'admin' || $user['role'] == 'editor') {
Session::set('admin', true);
Session::set('user_id', (int) $user['id']);
Session::set('user_login', (string) $user['login']);
Session::set('user_role', (string) $user['role']);
Request::redirect('index.php');
}
} else {
$login_error = __('Wrong <b>username</b> or <b>password</b>', 'users');
if (Cookie::get('login_attempts')) {
if (Cookie::get('login_attempts') < 5) {
$attempts = Cookie::get('login_attempts') + 1;
Cookie::set('login_attempts', $attempts, 600);
} else {
$login_error = __('You are banned for 10 minutes. Try again later', 'users');
}
} else {
Cookie::set('login_attempts', 1, 600);
}
}
}
} else {
$login_error = __('Wrong <b>username</b> or <b>password</b>', 'users');
if (Cookie::get('login_attempts')) {
if (Cookie::get('login_attempts') < 5) {
$attempts = Cookie::get('login_attempts') + 1;
Cookie::set('login_attempts', $attempts, 600);
} else {
$login_error = __('You are banned for 10 minutes. Try again later', 'users');
}
} else {
$login_error = __('Wrong <b>username</b> or <b>password</b>', 'users');
Cookie::set('login_attempts', 1, 600);
}
}
} else {
$login_error = __('Wrong <b>username</b> or <b>password</b>', 'users');
}
}

View File

@@ -11,15 +11,17 @@
<!-- Styles -->
<?php Stylesheet::add('public/assets/css/bootstrap.css', 'backend', 1); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-lightbox.css', 'backend', 2); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-responsive.css', 'backend', 3); ?>
<?php Stylesheet::add('admin/themes/default/css/default.css', 'backend', 4); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-fileupload.css', 'backend', 3); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-responsive.css', 'backend', 4); ?>
<?php Stylesheet::add('admin/themes/default/css/default.css', 'backend', 5); ?>
<?php Stylesheet::load(); ?>
<!-- JavaScripts -->
<?php Javascript::add('public/assets/js/jquery.js', 'backend', 1); ?>
<?php Javascript::add('public/assets/js/bootstrap.js', 'backend', 2); ?>
<?php Javascript::add('public/assets/js/bootstrap-lightbox.js', 'backend', 3); ?>
<?php Javascript::add('admin/themes/default/js/default.js', 'backend', 4); ?>
<?php Javascript::add('public/assets/js/bootstrap-fileupload.js', 'backend', 4); ?>
<?php Javascript::add('admin/themes/default/js/default.js', 'backend', 5); ?>
<?php Javascript::load(); ?>
<?php Action::run('admin_header'); ?>
@@ -117,11 +119,11 @@
<footer>
<p class="pull-right">
<span style="border-top:1px solid #E0E0E0; padding-top:10px;">
<span class="hidden-phone">
<a href="http://forum.monstra.org" target="_blank"><?php echo __('Official Support Forum', 'system'); ?></a> /
<a href="http://monstra.org/documentation" target="_blank"><?php echo __('Documentation', 'system'); ?></a> /
</span>
© 2012 - 2013 <a href="http://monstra.org" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?>
<span class="hidden-phone">
<a href="http://forum.monstra.org" target="_blank"><?php echo __('Official Support Forum', 'system'); ?></a> /
<a href="http://monstra.org/documentation" target="_blank"><?php echo __('Documentation', 'system'); ?></a> /
</span>
© 2012 - 2014 <a href="http://monstra.org" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?>
</span>
</p>
</footer>

View File

@@ -55,7 +55,7 @@
<div class="container form-signin">
<div style="text-align:center;"><a class="brand" href="<?php echo Option::get('siteurl'); ?>admin"><img src="<?php echo Option::get('siteurl'); ?>public/assets/img/monstra-logo.png" height="27" width="171"></a></div>
<div style="text-align:center;"><a class="brand" href="<?php echo Option::get('siteurl'); ?>admin"><img src="<?php echo Option::get('siteurl'); ?>public/assets/img/monstra-logo.png" height="27" width="171" alt="monstra" /></a></div>
<div class="administration-area">
<hr>
<div>
@@ -83,7 +83,7 @@
<input name="login" class="input-xlarge" type="text" value="<?php echo $user_login; ?>" />
<?php if (Option::get('captcha_installed') == 'true') { ?>
<label><?php echo __('Captcha'); ?><label>
<label><?php echo __('Captcha', 'users'); ?></label>
<input type="text" name="answer" class="input-xlarge">
<?php CryptCaptcha::draw(); ?>
<?php } ?>
@@ -111,7 +111,7 @@
</div>
<div style="text-align:center">
<span class="small-grey-text">© 2012 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span>
<span class="small-grey-text">© 2012 - 2014 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span>
</div>
</body>

View File

@@ -1,4 +1,49 @@
Monstra 2.2.0, xxxx-xx-xx
Monstra 2.3.1, 2013-12-25
------------------------
- Localization: Major Fixes
- Gelato: Image.php Major Fixes
- Sitemap: Errors #175 - fixes
- New favicon added #182 - by bernte
- Layouts: General Fixes - by bernte
- Installer: SERVER_PORT issue - fixed by KANekT
- Gelato: Number Class - updated bytes format (JEDEC & IEC 60027) by mbarzda
- Email Layout: footer fixes
Monstra 2.3.0, 2013-12-19
------------------------
- Update Twitter Bootstrap to 2.3.2
- Security: Added limits for login attempts #104
- Security: Obfuscate users email to prevent spam-bots from sniffing it.
- Core: Added ability to map Monstra Engine Directory.
- Core: Maintenance Mode Improvements
- Core: ORM::configure - driver options added
- Gelato: Image.php fix for PNG files
- Gelato: Number.php: Undefined offset fix
- XMLDB: error select for empty table fix
- Plugin API: Stylesheet.php updates - sourcecode misses a linebreak after minified css
- Files Manager: jasny bootstrap-fileupload - added #89
- Users Plugin: login page fixes
- Users Plugin: Deleting users - fixed by Oleg Gatseluk #158
- Pages Plugin: General method getPages() created #123
- Pages Plugin: page expand ajax bug #115 - fixed
- Pages Plugin: Improved available() method to show only published pages
- Pages Plugin: Bug with pages renaming - fixed
- Monstra Email Templates #164
- Localization: Major Fixes
- Localization: PL added
- Localization: NL added
- .htaccess SEO improvements
Monstra 2.2.1, 2013-04-06
------------------------
- Update Gelato to 1.0.3
- Error Handler turned off for Production environment
- Localization: Farsi(fa) translations fixes.
- Pages Manager: fix translates #107
- Missing Translation on Login Page - fixed #106
- Lithuanian flag and other languages fixes. Thanks to mbarzda
Monstra 2.2.0, 2013-03-25
------------------------
- Mobile Ready! Monstra fully responsive for mobile devices, tablets, and normal computer screens.
- Improved Monstra Architecture!
@@ -27,7 +72,6 @@ Monstra 2.2.0, xxxx-xx-xx
- Pages Manager: page cloning problem - fixed.
- Localizations: translations fixes.
Monstra 2.1.3, 2012-12-09
------------------------
- Pages Plugin: New shortcodes added - page_author, page_slug, page_url page_available, page_breadcrumbs, page_date, page_content.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -5,7 +5,7 @@
*
* Monstra - Content Management System.
* Site: www.mostra.org
* Copyright (C) 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* Copyright (C) 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* This source file is part of the Monstra Engine. More information,
* documentation and tutorials can be found at http://monstra.org
@@ -13,7 +13,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -39,7 +39,7 @@ class Monstra
/**
* The version of Monstra
*/
const VERSION = '2.2.0';
const VERSION = '2.3.1';
/**
* Monstra environment
@@ -126,6 +126,11 @@ class Monstra
*/
include ROOT . DS . 'libraries'. DS .'Gelato'. DS .'Gelato.php';
/**
* Map Monstra Engine Directory
*/
ClassLoader::directory(ROOT . DS . 'engine' . DS);
/**
* Map all Monstra Classes
*/
@@ -179,6 +184,7 @@ class Monstra
ORM::configure(MONSTRA_DB_DSN);
ORM::configure('username', MONSTRA_DB_USER);
ORM::configure('password', MONSTRA_DB_PASSWORD);
ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
}
/**

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -128,7 +128,7 @@ class Javascript
if (BACKEND) {
echo '<script type="text/javascript" src="'.Option::get('siteurl').'tmp/minify/backend_site.minify.js"></script>';
} else {
echo '<script type="text/javascript" src="'.Option::get('siteurl').'tmp/minify/frontend_site.minify.js"></script>';
echo '<script type="text/javascript" src="'.Option::get('siteurl').'tmp/minify/frontend_site.minify.js"></script>'."\n";
}
}
}

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -130,7 +130,7 @@ class Stylesheet
if (BACKEND) {
echo '<link rel="stylesheet" href="'.Option::get('siteurl').'tmp/minify/backend_site.minify.css'.'" type="text/css" />';
} else {
echo '<link rel="stylesheet" href="'.Option::get('siteurl').'tmp/minify/frontend_site.minify.css'.'" type="text/css" />';
echo '<link rel="stylesheet" href="'.Option::get('siteurl').'tmp/minify/frontend_site.minify.css'.'" type="text/css" />'."\n";
}
}
}

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -807,6 +807,7 @@ class Table
return $c;
}
return $a;
}
/**

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -1,14 +1,5 @@
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Report All Errors
*
* By setting error reporting to -1, we essentially force PHP to report
* every error, and this is guranteed to show every error on future
* releases of PHP. This allows everything to be fixed early!
*/
error_reporting(-1);
/**
* Monstra requires PHP 5.2.3 or greater
*/
@@ -32,6 +23,15 @@ include ROOT . DS .'engine'. DS .'Monstra.php';
*/
Monstra::$environment = Monstra::PRODUCTION;
/**
* Report Errors
*/
if (Monstra::$environment == Monstra::PRODUCTION) {
error_reporting(0);
} else {
error_reporting(-1);
}
/**
* Initialize Monstra
*/

View File

@@ -4,4 +4,4 @@
* Set meta generator
*/
Action::add('theme_meta', 'setMetaGenerator');
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.Monstra::VERSION.'" />'; }
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.Monstra::VERSION.'" />'."\n"; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -9,7 +9,7 @@
* @package Monstra
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -45,6 +45,9 @@ if (file_exists('install.php')) {
if ((Session::exists('user_role')) and (Session::get('user_role') == 'admin' or Session::get('user_role') == 'editor')) {
// Monstra show this page :)
} else {
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 600');
die (Text::toHtml(Option::get('maintenance_message')));
}
}

View File

@@ -16,8 +16,11 @@
// Get array with the names of all modules compiled and loaded
$php_modules = get_loaded_extensions();
// Get server port
if ($_SERVER["SERVER_PORT"] == "80") $port = ""; else $port = ':'.$_SERVER["SERVER_PORT"];
// Get site URL
$site_url = 'http://'.$_SERVER["SERVER_NAME"].str_replace(array("index.php", "install.php"), "", $_SERVER['PHP_SELF']);
$site_url = 'http://'.$_SERVER["SERVER_NAME"].$port.str_replace(array("index.php", "install.php"), "", $_SERVER['PHP_SELF']);
// Rewrite base
$rewrite_base = str_replace(array("index.php", "install.php"), "", $_SERVER['PHP_SELF']);
@@ -29,7 +32,7 @@
$dir_array = array('public', 'storage', 'backups', 'tmp');
// Languages array
$languages_array = array('en', 'fr', 'de', 'it', 'es', 'lt', 'pt-br', 'ru', 'uk', 'hu', 'fa' , 'sk', 'sr-yu');
$languages_array = array('en', 'fr', 'de', 'it', 'es', 'lt', 'pl', 'pt-br', 'ru', 'uk', 'hu', 'fa' , 'sk', 'nl', 'sr-yu');
// Select Monstra language
if (Request::get('language')) {
@@ -166,8 +169,8 @@
}
.install-languages a {
padding-left: 3px;
padding-right: 3px;
padding-left: 2px;
padding-right: 2px;
}
.language-link img {
@@ -295,7 +298,7 @@
<input class="input-xlarge" name="siteurl" type="text" value="<?php echo Html::toText($site_url); ?>" />
<br />
<label><?php echo __('Username', 'users'); ?></label>
<input class="input-xlarge" class="login" name="login" value="<?php if(Request::post('login')) echo Html::toText(Request::post('login')); ?>" type="text" />
<input class="input-xlarge login" name="login" value="<?php if(Request::post('login')) echo Html::toText(Request::post('login')); ?>" type="text" />
<br />
<label><?php echo __('Password', 'users'); ?></label>
<input class="input-xlarge" name="password" type="password" />
@@ -397,78 +400,78 @@
</form>
</div>
<hr>
<p align="center"><strong><?php echo __('...Monstra says...', 'system'); ?></strong></p>
<p class="text-center"><strong><?php echo __('...Monstra says...', 'system'); ?></strong></p>
<div>
<ul>
<?php
if (version_compare(PHP_VERSION, "5.2.0", "<")) {
echo '<span class="error"><li>'.__('PHP 5.2 or greater is required', 'system').'</li></span>';
echo '<li class="error">'.__('PHP 5.2 or greater is required', 'system').'</li>';
} else {
echo '<span class="ok"><li>'.__('PHP Version', 'system').' '.PHP_VERSION.'</li></span>';
echo '<li class="ok">'.__('PHP Version', 'system').' '.PHP_VERSION.'</li>';
}
if (in_array('SimpleXML', $php_modules)) {
echo '<span class="ok"><li>'.__('Module SimpleXML is installed', 'system').'</li></span>';
echo '<li class="ok">'.__('Module SimpleXML is installed', 'system').'</li>';
} else {
echo '<span class="error"><li>'.__('SimpleXML module is required', 'system').'</li></span>';
echo '<li class="error">'.__('SimpleXML module is required', 'system').'</li>';
}
if (in_array('dom', $php_modules)) {
echo '<span class="ok"><li>'.__('Module DOM is installed', 'system').'</li></span>';
echo '<li class="ok">'.__('Module DOM is installed', 'system').'</li>';
} else {
echo '<span class="error"><li>'.__('Module DOM is required', 'system').'</li></span>';
echo '<li class="error">'.__('Module DOM is required', 'system').'</li>';
}
if (function_exists('apache_get_modules')) {
if ( ! in_array('mod_rewrite',apache_get_modules())) {
echo '<span class="error"><li>'.__('Apache Mod Rewrite is required', 'system').'</li></span>';
echo '<li class="error">'.__('Apache Mod Rewrite is required', 'system').'</li>';
} else {
echo '<span class="ok"><li>'.__('Module Mod Rewrite is installed', 'system').'</li></span>';
echo '<li class="ok">'.__('Module Mod Rewrite is installed', 'system').'</li>';
}
} else {
echo '<span class="ok"><li>'.__('Module Mod Rewrite is installed', 'system').'</li></span>';
echo '<li class="ok">'.__('Module Mod Rewrite is installed', 'system').'</li>';
}
foreach ($dir_array as $dir) {
if (is_writable($dir.'/')) {
echo '<span class="ok"><li>'.__('Directory: <b> :dir </b> writable', 'system', array(':dir' => $dir)).'</li></span>';
echo '<li class="ok">'.__('Directory: <b> :dir </b> writable', 'system', array(':dir' => $dir)).'</li>';
} else {
echo '<span class="error"><li>'.__('Directory: <b> :dir </b> not writable', 'system', array(':dir' => $dir)).'</li></span>';
echo '<li class="error">'.__('Directory: <b> :dir </b> not writable', 'system', array(':dir' => $dir)).'</li>';
}
}
if (is_writable(__FILE__)) {
echo '<span class="ok"><li>'.__('Install script writable', 'system').'</li></span>';
echo '<li class="ok">'.__('Install script writable', 'system').'</li>';
} else {
echo '<span class="error"><li>'.__('Install script not writable', 'system').'</li></span>';
echo '<li class="error">'.__('Install script not writable', 'system').'</li>';
}
if (is_writable('sitemap.xml')) {
echo '<span class="ok"><li>'.__('Sitemap file writable', 'system').'</li></span>';
echo '<li class="ok">'.__('Sitemap file writable', 'system').'</li>';
} else {
echo '<span class="error"><li>'.__('Sitemap file not writable', 'system').'</li></span>';
echo '<li class="error">'.__('Sitemap file not writable', 'system').'</li>';
}
if (is_writable('.htaccess')) {
echo '<span class="ok"><li>'.__('Main .htaccess file writable', 'system').'</li></span>';
echo '<li class="ok">'.__('Main .htaccess file writable', 'system').'</li>';
} else {
echo '<span class="error"><li>'.__('Main .htaccess file not writable', 'system').'</li></span>';
echo '<li class="error">'.__('Main .htaccess file not writable', 'system').'</li>';
}
if (isset($errors['sitename'])) echo '<span class="error"><li>'.$errors['sitename'].'</li></span>';
if (isset($errors['siteurl'])) echo '<span class="error"><li>'.$errors['siteurl'].'</li></span>';
if (isset($errors['login'])) echo '<span class="error"><li>'.$errors['login'].'</li></span>';
if (isset($errors['password'])) echo '<span class="error"><li>'.$errors['password'].'</li></span>';
if (isset($errors['email'])) echo '<span class="error"><li>'.$errors['email'].'</li></span>';
if (isset($errors['email_valid'])) echo '<span class="error"><li>'.$errors['email_valid'].'</li></span>';
if (isset($errors['sitename'])) echo '<li class="error">'.$errors['sitename'].'</li>';
if (isset($errors['siteurl'])) echo '<li class="error">'.$errors['siteurl'].'</li>';
if (isset($errors['login'])) echo '<li class="error">'.$errors['login'].'</li>';
if (isset($errors['password'])) echo '<li class="error">'.$errors['password'].'</li>';
if (isset($errors['email'])) echo '<li class="error">'.$errors['email'].'</li>';
if (isset($errors['email_valid'])) echo '<li class="error">'.$errors['email_valid'].'</li>';
?>
</ul>
</div>
</div>
<div class="install-block-footer">
<div style="text-align:center;">
<span class="small-grey-text">© 2012 - 2013 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span>
<span class="small-grey-text">© 2012 - 2014 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span>
</div>
</div>

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -18,7 +18,7 @@
/**
* The version of Gelato
*/
define('GELATO_VERSION', '1.0.2');
define('GELATO_VERSION', '1.0.3');
/**
* Define __DIR__ constant for PHP 5.2.x

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -28,6 +28,13 @@ class Html
'accept', 'tabindex', 'accesskey', 'alt', 'title', 'class',
'style', 'selected', 'checked', 'readonly', 'disabled',
);
/**
* The registered custom macros.
*
* @var array
*/
public static $macros = array();
/**
* Protected constructor since this is a static class.
@@ -279,7 +286,56 @@ class Html
$attributes['alt'] = (isset($attributes['alt'])) ? $attributes['alt'] : pathinfo($file, PATHINFO_FILENAME);
return '<img'.Html::attributes($attributes).' />';
}
}
/**
* Obfuscate an e-mail address to prevent spam-bots from sniffing it.
*
* <code>
* echo Html::email('gelato@monstra.org');
* </code>
*
* @param string $email
* @return string
*/
public static function email($email)
{
return str_replace('@', '&#64;', Html::obfuscate($email));
}
/**
* Obfuscate a string to prevent spam-bots from sniffing it.
*
* This method obfuscate the value, randomly convert each
* letter to its entity or hexadecimal representation, keeping a
* bot from sniffing the randomly obfuscated letters.
*
* <code>
* echo Html::obfuscate('gelato@monstra.org');
* </code>
*
* @param string $value
* @return string
*/
public static function obfuscate($value)
{
$safe = '';
foreach (str_split($value) as $letter) {
switch (rand(1, 3)) {
case 1:
$safe .= '&#'.ord($letter).';';
break;
case 2:
$safe .= '&#x'.dechex(ord($letter)).';';
break;
case 3:
$safe .= $letter;
}
}
return $safe;
}
/**
* Convert html to plain text

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -173,9 +173,10 @@ class Image
public function resize($width, $height = null, $aspect_ratio = null)
{
// Redefine vars
$width = (int) $width;
$height = ($height === null) ? null : (int) $height;
$width = (int) $width;
$height = ($height === null) ? null : (int) $height;
$aspect_ratio = ($aspect_ratio === null) ? null : (int) $aspect_ratio;
$xpos = $ypos = 0;
// Resizes the image to {$width}% of the original size
if ($height === null) {
@@ -186,13 +187,18 @@ class Image
} else {
// Resizes the image to the smalles possible dimension while maintaining aspect ratio
if ($aspect_ratio === Image::AUTO) {
if ($aspect_ratio === Image::AUTO || $aspect_ratio === null) {
// Calculate smallest size based on given height and width while maintaining aspect ratio
$percentage = min(($width / $this->width), ($height / $this->height));
$new_width = round($this->width * $percentage);
$new_height = round($this->height * $percentage);
if ($aspect_ratio === null) {
$xpos = (int)(($width - $new_width) / 2);
$ypos = (int)(($height - $new_height) / 2);
}
// Resizes the image using the width to maintain aspect ratio
} elseif ($aspect_ratio === Image::WIDTH) {
@@ -216,24 +222,28 @@ class Image
}
}
// Create a new true color image width new width and height
$resized = imagecreatetruecolor($new_width, $new_height);
$old_image = $this->image;
if ($aspect_ratio === null) {
$this->image = imagecreatetruecolor($width, $height);
} else {
$this->image = imagecreatetruecolor($new_width, $new_height);
}
if ($this->type === IMAGETYPE_PNG) {
$bgcolor = imagecolorallocatealpha($this->image, 0, 0, 0, 127);
} else {
$bgcolor = imagecolorallocate($this->image, 255, 255, 255);
}
imagefill($this->image, 0, 0, $bgcolor);
// Copy and resize part of an image with resampling
imagecopyresampled($resized, $this->image, 0, 0, 0, 0, $new_width, $new_height, $this->width, $this->height);
imagecopyresampled($this->image, $old_image, $xpos, $ypos, 0, 0, $new_width, $new_height, $this->width, $this->height);
// Destroy an image
imagedestroy($this->image);
// Create a new true color image width new width and height
$this->image = imagecreatetruecolor($new_width, $new_height);
// Copy and resize part of an image with resampling
imagecopyresampled($this->image, $resized, 0, 0, 0, 0, $new_width, $new_height, $new_width, $new_height);
// Destroy an image
imagedestroy($resized);
imagedestroy($old_image);
// Save new width and height
$this->width = $new_width;
$this->height = $new_height;
@@ -259,32 +269,28 @@ class Image
// Redefine vars
$width = (int) $width;
$height = (int) $height;
$x = (int) $x;
$y = (int) $y;
$x = (int) $x;
$y = (int) $y;
// Calculate
if ($x + $width > $this->width) $width = $this->width - $x;
if ($y + $height > $this->height) $height = $this->height - $y;
if ($width <= 0 || $height <= 0) return false;
// Create a new true color image
$crop = imagecreatetruecolor($width, $height);
// Copy and resize part of an image with resampling
imagecopyresampled($crop, $this->image, 0, 0, $x, $y, $this->width, $this->height, $this->width, $this->height);
// Destroy an image
imagedestroy($this->image);
$old_image = $this->image;
// Create a new true color image
$this->image = imagecreatetruecolor($width, $height);
$transparent = imagecolorallocatealpha($this->image, 0, 0, 0, 127);
imagefill($this->image, 0, 0, $transparent);
// Copy and resize part of an image with resampling
imagecopyresampled($this->image, $crop, 0, 0, 0, 0, $width, $height, $width, $height);
imagecopyresampled($this->image, $old_image, 0, 0, $x, $y, $width, $height, $width, $height);
// Destroy an image
imagedestroy($crop);
imagedestroy($old_image);
// Save new width and height
$this->width = $width;
$this->height = $height;

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -10,7 +10,7 @@
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @author Stephen Clay <steve@mrclay.org>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -28,7 +28,7 @@ class Number
}
/**
* Convert bytes in 'kb','mb','gb','tb','pb'
* Convert bytes in 'KB','MB','GB','TiB','PiB'
*
* <code>
* echo Number::byteFormat(10000);
@@ -42,9 +42,9 @@ class Number
// Redefine vars
$size = (int) $size;
$unit = array('b', 'kb', 'mb', 'gb', 'tb', 'pb');
$unit = array('B', 'KB', 'MB', 'GB', 'TiB', 'PiB');
return @round($size/pow(1024, ($i=floor(log($size, 1024)))), 2).' '.$unit[$i];
return @round($size/pow(1024, ($i=floor(log($size, 1024)))), 2).' '.$unit[($i < 0 ? 0 : $i)];
}
/**

View File

@@ -4,6 +4,6 @@ Gelato is a PHP5 library for kickass Web Applications.
## Links
- [Site](http://gelato.monstra.org)
- [Github Repository](https://github.com/Monstra/gelato)
- [Github Repository](https://github.com/MonstrLab/gelato)
Copyright (C) 2013 Romanenko Sergey / Awilum [awilum@msn.com]

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -9,7 +9,7 @@
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2014 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -1,3 +1,13 @@
Gelato 1.0.3, 2013-04-03
------------------------
- Html Class: obfuscate() method added.
- Html Class: email() method added.
- Html Class: missing $macros var added.
Gelato 1.0.2, 2013-03-17
------------------------
- Added support for PHP 5.2.3
Gelato 1.0.1, 2013-03-05
------------------------
- New constant GELATO_CLASS_LOADER instead of GELATO_AUTOLOADER

View File

@@ -6,7 +6,7 @@
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2013 Romanenko Sergey / Awilum
* @copyright 2012-2014 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/

View File

@@ -8,10 +8,10 @@
'Delete' => 'حذف',
'storage' => 'ذخیره سازی',
'public' => 'عمومی',
'plugins' => 'افزونه ها',
'plugins' => 'پلاگین',
'Size' => 'اندازه',
'Actions' => 'عملیات',
'Delete backup: :backup' => 'حذف پشتیبان: نسخه پشتیبان',
'Creating...' => 'درحال ایجاد ...',
'Delete backup: :backup' => 'حذف نسخه پشتیبان: :backup',
'Creating...' => 'ایجاد...',
)
);

View File

@@ -0,0 +1,17 @@
<?php
return array(
'backup' => array(
'Backups' => 'Backups',
'Backup' => 'Backup',
'Create Backup' => 'Maak backup',
'Delete' => 'Verwijderen',
'storage' => 'Opslag',
'public' => 'Publiek',
'plugins' => 'Plugins',
'Size' => 'Grootte',
'Actions' => 'Acties',
'Delete backup: :backup' => 'Verwijder backup: :backup',
'Creating...' => 'Backup wordt gemaakt...',
)
);

View File

@@ -0,0 +1,17 @@
<?php
return array(
'backup' => array(
'Backups' => 'Kopie zapasowe',
'Backup Date' => 'Data kopii zapasowej',
'Create Backup' => 'Utwórz kopię zapasową',
'Delete' => 'Usuń',
'storage' => 'magazyn',
'public' => 'publiczny',
'plugins' => 'wtyczki',
'Size' => 'Rozmiar',
'Actions' => 'Akcje',
'Delete backup: :backup' => 'Czy napewno usunąć kopię zapasową: :backup',
'Creating...' => 'Tworzenie kopii zapasowej...',
)
);

View File

@@ -6,7 +6,7 @@
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2013 Romanenko Sergey / Awilum
* @copyright 2012-2014 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/

View File

@@ -10,7 +10,7 @@
'Create New Block' => 'Erstelle einen neuen Block',
'New Block' => 'Neuer Block',
'Edit Block' => 'Bearbeite Block',
'Save' => 'Save',
'Save' => 'Speichern',
'Save and Exit' => 'Speichern und Schließen',
'Actions' => 'Aktionen',
'Required field' => 'Erforderliches Feld',
@@ -19,9 +19,9 @@
'Delete block: :block' => 'Lösche Block: :block',
'Block content' => 'Block-Inhalt',
'Block <i>:name</i> deleted' => 'Block <i>:name</i> gelöscht',
'Your changes to the block <i>:name</i> have been saved.' => 'Deine Änderungen für den Block <i>:name</i> wurden übernommen.',
'Your changes to the block <i>:name</i> have been saved.' => 'Deine Änderungen für den Block <i>:name</i> wurden gespeichert.',
'Delete block: :block' => 'Lösche Block: :block',
'View Embed Code' => 'View Embed Code',
'View Embed Code' => 'Zeige Embed Code',
'Embed Code' => 'Embed Code',
'Shortcode' => 'Shortcode',
'PHP Code' => 'PHP Code',

View File

@@ -3,27 +3,27 @@
return array(
'blocks' => array(
'Blocks' => 'بلوک',
'Blocks manager' => 'مدیریت بلوک',
'Blocks manager' => 'مدیریت بلوک',
'Delete' => 'حذف',
'Edit' => 'ویرایش',
'Name' => 'نام',
'Create New Block' => 'ایجاد بلوک جدید',
'New Block' => 'بلوک جدید',
'Edit Block' => 'ویرایش بلوک',
'Save' => 'ذخیره',
'Save and Exit' => 'ذخیره و خروج',
'Actions' => 'عملیات',
'Required field' => 'کادر اجباری',
'Edit Block' => 'ویرایش بلوک',
'Save' => 'ذخیره',
'Save and Exit' => 'ذخیره و خروج',
'Actions' => 'عملیات',
'Required field' => 'کادر الزامی',
'This block already exists' => 'این بلوک در حال حاضر وجود دارد',
'This block does not exist' => 'این بلوک وجود ندارد',
'Delete block: :block' => 'حذف بلوک: :block',
'Block content' => 'محتوی بلوک',
'Delete block: :block' => 'Delete block: :block',
'Block content' => 'حذف بلوک: :block',
'Block <i>:name</i> deleted' => 'بلوک <i>:name</i> حذف شد',
'Your changes to the block <i>:name</i> have been saved.' => 'تغییرات روی بلوک <i>:name</i> ذخیره شد.',
'Your changes to the block <i>:name</i> have been saved.' => 'تغییرات شما بر روی بلوک <i>:name</i> ذخیره شد.',
'Delete block: :block' => 'حذف بلوک: :block',
'View Embed Code' => 'نمایش کد درج شده',
'Embed Code' => 'کد درج شده',
'Shortcode' => 'کدکوتاه',
'PHP Code' => 'کد PHP',
)
);
);

View File

@@ -0,0 +1,29 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'Blokken',
'Blocks manager' => 'Blokken beheer',
'Delete' => 'Verwijderen',
'Edit' => 'Bewerken',
'Name' => 'Naam',
'Create New Block' => 'Nieuw blok',
'New Block' => 'Nieuw blok',
'Edit Block' => 'Bewerk blok',
'Save' => 'Opslaan',
'Save and Exit' => 'Opslaan en Terug',
'Actions' => 'Acties',
'Required field' => 'Vereist veld',
'This block already exists' => 'Dit blok bestaat al',
'This block does not exist' => 'Dit blok bestaat niet',
'Delete block: :block' => 'Verwijder blok: :block',
'Block content' => 'Inhoud blok',
'Block <i>:name</i> deleted' => 'Blok <i>:name</i> verwijderd',
'Your changes to the block <i>:name</i> have been saved.' => 'De aanpassingen aan blok <i>:name</i> zijn opgeslagen.',
'Delete block: :block' => 'Verwijder blok: :block',
'View Embed Code' => 'Bekijk insluitcode',
'Embed Code' => 'Insluitcode',
'Shortcode' => 'Verkorte code',
'PHP Code' => 'PHP Code',
)
);

View File

@@ -0,0 +1,29 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'Bloki',
'Blocks manager' => 'Zarządzaj blokami',
'Delete' => 'Usuń',
'Edit' => 'Edytuj',
'Name' => 'Nazwa',
'Create New Block' => 'Utwórz nowy blok',
'New Block' => 'Nowy blok',
'Edit Block' => 'Edytuj blok',
'Save' => 'Zapisz',
'Save and Exit' => 'Zapisz i wyjdź',
'Actions' => 'Akcje',
'Required field' => 'Pole wymagane',
'This block already exists' => 'Ten blok już istnieje',
'This block does not exist' => 'Ten blok nie istnieje',
'Delete block: :block' => 'Czy napewno usunąć blok: :block',
'Block content' => 'Zawartość bloku',
'Block <i>:name</i> deleted' => 'Blok <i>:name</i> został usunięty',
'Your changes to the block <i>:name</i> have been saved.' => 'Twoje zmiany dla bloku <i>:name</i> zostały zapisane.',
'Delete block: :block' => 'Czy napewno usunąć blok: :block',
'View Embed Code' => 'Pokaż osadzony kod',
'Embed Code' => 'Osadzony kod',
'Shortcode' => 'Krótki kod (shortcode)',
'PHP Code' => 'Kod PHP',
)
);

View File

@@ -6,7 +6,7 @@
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2013 Romanenko Sergey / Awilum
* @copyright 2012-2014 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/

View File

@@ -3,6 +3,6 @@
return array(
'Editor' => array(
'Editor' => 'ویرایشگر',
'Editor plugin' => 'افزونه ویرایشگر',
'Editor plugin' => 'پلاگین ویرایشگر',
)
);
);

View File

@@ -0,0 +1,8 @@
<?php
return array(
'Editor' => array(
'Editor' => 'Editor',
'Editor plugin' => 'Editor Plugin',
)
);

View File

@@ -0,0 +1,8 @@
<?php
return array(
'Editor' => array(
'Editor' => 'Edytor',
'Editor plugin' => 'Wtyczka edytora',
)
);

View File

@@ -6,7 +6,7 @@
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2013 Romanenko Sergey / Awilum
* @copyright 2012-2014 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Lösche Datei: file',
'Extension' => 'Dateiendung',
'Size' => 'Größe',
'Select file' => 'Datei wählen',
'Change' => 'Ändern',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Delete file :file',
'Extension' => 'Extension',
'Size' => 'Size',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Borrar archivo :file',
'Extension' => 'Extension',
'Size' => 'Tamaño',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -1,4 +1,4 @@
<?php
<?php
return array(
'filesmanager' => array(
@@ -13,5 +13,7 @@
'Delete file: :file' => 'حذف فایل :file',
'Extension' => 'پسوند',
'Size' => 'اندازه',
'Select file' => 'Select file',
'Change' => 'Change',
)
);
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Supprimer le fichier :file',
'Extension' => 'Extension',
'Size' => 'Taille',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Fájl törlése :file',
'Extension' => 'Bővítmény',
'Size' => 'Méret',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Elimina file :file',
'Extension' => 'Estensione',
'Size' => 'Dimensione',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Ištrinti bylą :file',
'Extension' => 'Plėtinys',
'Size' => 'Dydis',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -0,0 +1,19 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'Bestanden',
'Files manager' => 'Bestandsbeheer',
'Name' => 'Naam',
'Actions' => 'Acties',
'Delete' => 'Verwijderen',
'Upload' => 'Uploaden',
'directory' => 'Map',
'Delete directory: :dir' => 'Verwijder map: :dir',
'Delete file: :file' => 'Verwijder bestand: :file',
'Extension' => 'Type',
'Size' => 'Grootte',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -0,0 +1,19 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'Pliki',
'Files manager' => 'Zarządzaj plikami',
'Name' => 'Nazwa',
'Actions' => 'Akcje',
'Delete' => 'Usuń',
'Upload' => 'Prześlij',
'directory' => 'katalog',
'Delete directory: :dir' => 'Czy napewno usunąć katalog: :dir',
'Delete file: :file' => 'Czy napewno usunąć plik :file',
'Extension' => 'Rozszerzenie',
'Size' => 'Rozmiar',
'Select file' => 'Select file',
'Change' => 'Change',
)
);

View File

@@ -13,5 +13,6 @@
'Delete file: :file' => 'Deletar o arquivo :file',
'Extension' => 'Extensão',
'Size' => 'Tamanho',
'Select file' => 'Select file',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Удалить файл :file',
'Extension' => 'Расширение',
'Size' => 'Размер',
'Select file' => 'Выбрать файл',
'Change' => 'Изменить',
)
);

View File

@@ -13,5 +13,6 @@
'Delete file: :file' => 'Vymazať súbor :file',
'Extension' => 'Rozšírenie',
'Size' => 'Veľkosť',
'Select file' => 'Select file',
)
);

View File

@@ -13,5 +13,6 @@
'Delete file: :file' => 'Obriši fajl :file',
'Extension' => 'Extenzija',
'Size' => 'Veličina',
'Select file' => 'Select file',
)
);

View File

@@ -13,5 +13,7 @@
'Delete file: :file' => 'Видалити файл: :file',
'Extension' => 'Розширення',
'Size' => 'Розмір',
'Select file' => 'Выбрать файл',
'Change' => 'Зминити',
)
);

View File

@@ -5,8 +5,16 @@
<?php
echo (
Form::open(null, array('enctype' => 'multipart/form-data')).
Form::hidden('csrf', Security::token()).
Form::input('file', null, array('type' => 'file', 'size' => '25')).Html::br().
Form::hidden('csrf', Security::token())
);
?>
<div class="fileupload fileupload-new" data-provides="fileupload">
<span class="btn btn-small btn-file"><span class="fileupload-new"><?php echo __('Select file', 'filesmanager'); ?></span><span class="fileupload-exists"><?php echo __('Change', 'filesmanager'); ?></span><input type="file" name="file" /></span>
<span class="fileupload-preview"></span>
<a href="#" class="close fileupload-exists" data-dismiss="fileupload">×</a>
</div>
<?php
echo (
Form::submit('upload_file', __('Upload', 'filesmanager'), array('class' => 'btn')).
Form::close()
)

View File

@@ -6,7 +6,7 @@
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2013 Romanenko Sergey / Awilum
* @copyright 2012-2014 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/

View File

@@ -28,7 +28,7 @@
'Monstra version' => 'Monstra version',
'Directory Permissions' => 'Directory Berechtigungen',
'Directory' => 'Verzeichnis',
'Writable' => 'Writable',
'Writable' => 'Beschreibbar',
'Unwritable' => 'Nicht beschreibbar',
'Status' => 'Status',
'PHP Built On' => 'PHP Built On',

View File

@@ -27,7 +27,7 @@
'فایل index.php مونسترا قابل نوشتن میباشند . توصیه میکنیم همه مجوزهای نوشتن را حذف کنید. <br/>در سیستمهای یونیکس میتوانید با دستور : <code>chmod -R a-w :path</code> انجام دهید',
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
'با توجه به نوع و مقدار اطلاعات ممکن است هنگام Core::$environment = Core::DEVELOPMENT خطایی رخ بدهد ، ما شدیداً Core::PRODUCTION را د رسیستم تولید توصیه میکنیم ',
'Monstra version' => 'نسخه Monstra',
'Monstra version' => 'نسخه مونسترا',
'Directory Permissions' => 'مجوزهای شاخه',
'Directory' => 'شاخه',
'Writable' => 'قابل نوشتن',
@@ -37,4 +37,4 @@
'Web Server' => 'وب سرور',
'WebServer to PHP Interface' => 'وب سرور به رابط PHP',
)
);
);

View File

@@ -0,0 +1,38 @@
<?php
return array(
'information' => array(
'Information' => 'Informatie',
'Debuging' => 'Debuggen',
'Name' => 'Naam',
'Value' => 'Waarde',
'Security' => 'Beveiliging',
'System' => 'Systeem',
'on' => 'Aan',
'off'=> 'Uit',
'Server' => 'Server',
'PHP version' => 'PHP Versie',
'SimpleXML module' => 'SimpleXML Module',
'DOM module' => 'DOM Module',
'Installed' => 'Geinstalleerd',
'Not Installed' => 'Niet geinstalleerd',
'Security check results' => 'Resultaten beveiligings-check',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'Het configuratiebestand is schrijfbaar. We adviseren u om alle schrijfrechten op defines.php te verwijderen op productiewebsites.',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Het Monstra .htaccess bestand is schrijfbaar. We adviseren u om alle schrijfrechten voor dit bestand te verwijderen. <br/>Op unix-systemen doet u dit als volgt: <code>chmod a-w :path</code>.',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Het Monstra index.php bestand is schrijfbaar. We adviseren u alle schrijfrechten voor dit bestand te verwijderen. <br/>Op Unix-systemen doet u dit als volgt: <code>chmod a-w :path</code>.',
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
'Door het type en de hoeveelheid informatie die foutmeldingen kunnen geven aan indringers wanneer Monstra::$environment = Monstra::DEVELOPMENT, raden we u ten zeerste aan om de instelling op Monstra::PRODUCTION te zetten, wanneer u met een productiewebsite werkt.',
'Monstra version' => 'Monstra versie',
'Directory Permissions' => 'Map-rechten',
'Directory' => 'Map',
'Writable' => 'Schrijfbaar',
'Unwritable' => 'Niet schrijfbaar',
'Status' => 'Status',
'PHP Built On' => 'Systeem',
'Web Server' => 'Web Server',
'WebServer to PHP Interface' => 'WebServer PHP Interface',
)
);

View File

@@ -0,0 +1,40 @@
<?php
return array(
'information' => array(
'Information' => 'Informacja',
'Debugging' => 'Odpluskwianie',
'Name' => 'Nazwa',
'Value' => 'Wartość',
'Security' => 'Bezpieczeństwo',
'System' => 'System',
'on' => 'włączone',
'off'=> 'wyłączone',
'Server' => 'Serwer',
'PHP version' => 'Wersja PHP',
'SimpleXML module' => 'Moduł SimpleXML',
'DOM module' => 'Moduł DOM',
'Installed' => 'Zainstalowane',
'Not Installed' => 'Nie zainstalowane',
'Security check results' => 'Wyniki sprawdzenia bezpieczeństwa',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'Plik konfiguracyjny ma możliwość zapisu. Radzimy, aby w systemach produkcyjnych usunąć wszystkie uprawnienia zapisu dla pliku defines.php.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'Katalog główny systemu Monstra (":path") i/lub pliki w nim zawarte mają możliwość zapisu. Radzimy, aby usunąć wszystkie uprawnienia zapisu. <br/>Na systemach UNIX możesz to zrobić za pomocą: <code>chmod -R a-w :path</code>',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Plik .htaccess systemu Monstra ma możliwość zapisu. Radzimy, aby usunąć wszystkie uprawnienia zapisu. <br/>Na systemach UNIX możesz to zrobić za pomocą: <code>chmod a-w :path</code>',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Plik index.php systemu Monstra ma możliwość zapisu. Radzimy, aby usunąć wszystkie uprawnienia zapisu. <br/>Na systemach UNIX możesz to zrobić za pomocą: <code>chmod a-w :path</code>',
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
'Ze względu na rodzaj i ilość informacji o błędach, które mogą dostać się w niepowołane ręce, gdy Monstra::$environment = Monstra::DEVELOPMENT, zdecydowanie zalecamy ustawienie Monstra::PRODUCTION w systemach produkcyjnych.',
'Monstra version' => 'Wersja systemu Monstra',
'Directory Permissions' => 'Uprawnienia katalogu',
'Directory' => 'Katalog',
'Writable' => 'Możliwość zapisu',
'Unwritable' => 'Brak możliwości zapisu',
'Status' => 'Status',
'PHP Built On' => 'Oparty na systemie',
'Web Server' => 'Serwer WWW',
'WebServer to PHP Interface' => 'Serwerowy interfejs PHP',
)
);

View File

@@ -9,7 +9,7 @@
'Delete' => 'Löschen',
'Order' => 'Reihenfolge',
'Actions' => 'Aktionen',
'Create New Item' => 'Erstellen neuen Eintrag',
'Create New Item' => 'Erstelle neuen Eintrag',
'New item' => 'Neuer Eintrag',
'Item name' => 'Eintrags Name',
'Item order' => 'Eintrags Reihenfolge',

Some files were not shown because too many files have changed in this diff Show More