Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
699 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
Configure::write('Saito.v', '4.7.5'); | ||
Configure::write('Saito.v', '4.8.0'); | ||
|
||
Configure::write('Saito.saitoHomepage', 'http://saito.siezi.com'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
msgid "plugin.embedly.contentLink" | ||
msgstr "Inhalt auf %s anschauen." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
msgid "plugin.embedly.contentLink" | ||
msgstr "See this content on %s." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
class AdminsControllerTest extends \Saito\Test\ControllerTestCase { | ||
|
||
public $fixtures = [ | ||
'app.bookmark', | ||
'app.category', | ||
'app.esevent', | ||
'app.esnotification', | ||
'app.entry', | ||
'app.setting', | ||
'app.user', | ||
'app.user_block', | ||
'app.user_ignore', | ||
'app.user_online', | ||
'app.user_read', | ||
'app.upload', | ||
]; | ||
|
||
public function testPhpInfoNotAllowedAnon() { | ||
$this->setExpectedException('ForbiddenException'); | ||
$this->testAction('/admin/admins/phpinfo'); | ||
} | ||
|
||
public function testPhpInfoNotAllowedUser() { | ||
$this->generate('Admins'); | ||
$this->_loginUser(3); | ||
$this->setExpectedException('ForbiddenException'); | ||
$this->testAction('/admin/admins/phpinfo'); | ||
} | ||
|
||
public function testPhpInfo() { | ||
$this->generate('Admins'); | ||
$this->_loginUser(1); | ||
$this->testAction('/admin/admins/phpinfo'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Saito"> | ||
<!-- include all CakePHP rules --> | ||
<rule ref="CakePHP"> | ||
<!-- excludes "docblocks must have 0 indent"-rule --> | ||
<exclude name="CakePHP.WhiteSpace.ScopeIndent"/> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | ||
</ruleset> | ||
<exclude-pattern>app/Test/Selenium</exclude-pattern> | ||
<exclude-pattern>app/View/Themed</exclude-pattern> | ||
<exclude-pattern>app/Plugin/Embedly</exclude-pattern> | ||
<exclude-pattern>app/Plugin/Geshi</exclude-pattern> | ||
<exclude-pattern>app/Plugin/FileUpload</exclude-pattern> | ||
<exclude-pattern>app/Plugin/Install</exclude-pattern> | ||
<exclude-pattern>app/Plugin/Markitup</exclude-pattern> | ||
<exclude-pattern>app/Plugin/SaitoHelp/Vendor</exclude-pattern> | ||
<exclude-pattern>app/Plugin/Search</exclude-pattern> | ||
<exclude-pattern>app/Plugin/SimpleCaptcha</exclude-pattern> | ||
<exclude-pattern>*/webroot/*</exclude-pattern> | ||
|
||
<!-- include all CakePHP rules --> | ||
<rule ref="CakePHP"> | ||
<!-- excludes "docblocks must have 0 indent"-rule --> | ||
<exclude name="CakePHP.WhiteSpace.ScopeIndent"/> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
$this->Html->addCrumb(__('admin.sysInfo.h'), '/admin'); | ||
$this->Html->addCrumb(__('PHP Info'), '/admin/admins/phpinfo'); | ||
|
||
echo $this->Html->tag('h1', __('PHP Info')); | ||
|
||
ob_start(); | ||
phpinfo(); | ||
$info = ob_get_clean(); | ||
if (preg_match('/\<body\>(?P<body>.*)\<\/body\>/is', $info, $matches)) { | ||
$body = $matches['body']; | ||
$body = str_replace('<table ', '<table class="table table-striped table-bordered" ', $body); | ||
echo $body; | ||
} |
Oops, something went wrong.