本文整理汇总了PHP中Respond::ResultPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Respond::ResultPage方法的具体用法?PHP Respond::ResultPage怎么用?PHP Respond::ResultPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Respond
的用法示例。
在下文中一共展示了Respond::ResultPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: TestSuite_upgrade_repos_via_user
function TestSuite_upgrade_repos_via_user()
{
if (doesHaveOwnership()) {
$result = TestSuite_upgrade_repos(null, null);
if ($result) {
Respond::ResultPage(0);
}
}
Respond::Resultpage(-1);
}
示例2: process
public function process()
{
$context = \CADB\Model\Context::instance();
if ($this->params['request_URI']) {
$redirect_uri .= "?requestURI=" . rawurldecode($this->params['request_URI']);
}
if ($this->params['output'] != "json" && $this->params['output'] != "xml") {
\CADB\Lib\importResource('app-login', true);
}
if (\CADB\Lib\doesHaveMembership()) {
if ($this->params['output'] == "xml") {
Respond::ResultPage(array(2, "이미 로그인하셨습니다"));
} else {
if ($this->params['output'] == "json") {
RespondJson::ResultPage(array(2, "이미 로그인하셨습니다"));
} else {
Respond::ResultPage(array(-3, "이미 로그인하셨습니다."));
}
}
}
$this->title = $context->getProperty('service.title') . " 로그인";
}
示例3: array
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('adminSkin' => array('directory', 'default' => 'default')));
require ROOT . '/library/preprocessor.php';
if (empty($_POST['adminSkin']) || !file_exists(ROOT . "/skin/admin/{$_POST['adminSkin']}/index.xml") || !Setting::setBlogSettingGlobal("adminSkin", $_POST['adminSkin'])) {
Respond::ResultPage(false);
} else {
Respond::ResultPage(true);
}
示例4: array
/// Copyright (c) 2004-2016, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
require ROOT . '/library/preprocessor.php';
$IV = array('GET' => array('user' => array('email'), 'blogid' => array('id')));
requireStrictRoute();
requirePrivilege('group.creators');
$userid = User::getUserIdByEmail($_GET['user']);
$bid = $_GET['blogid'];
if (empty($userid)) {
Respond::ResultPage(array(-1, "존재하지 않는 사용자"));
}
$pool = DBModel::getInstance();
$pool->init("Privileges");
$pool->setQualifier("blogid", "eq", $bid);
$pool->setQualifier("userid", "eq", $userid);
$acl = $pool->getCell("acl");
if ($acl === null) {
// If there is no ACL, add user into the blog.
$pool->init("Privileges");
$pool->setAttribute("blogid", $bid);
$pool->setAttribute("userid", $userid);
$pool->setAttribute("acl", 0);
$pool->setAttribute("created", Timestamp::getUNIXtime());
$pool->setAttribute("lastlogin", 0);
$pool->insert();
Respond::ResultPage(0);
} else {
Respond::ResultPage(array(-2, "이미 참여중인 사용자"));
}
示例5: requireStrictRoute
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
Respond::ResultPage(markAsReadAll($blogid));
示例6: array
<?php
/// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('name' => array('directory', 'default' => null)));
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
if (!empty($_POST['name']) && activatePlugin($_POST['name'])) {
Respond::ResultPage(0);
}
Respond::ResultPage(1);
示例7: array
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('id' => array('id')));
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
Respond::ResultPage(markAsUnread($blogid, $_POST['id']));
示例8:
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
require ROOT . '/library/preprocessor.php';
Respond::ResultPage(Setting::setBlogSettingGlobal($_POST['name'], $_POST['value']));
示例9: array
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('url' => array('url', 'default' => null)));
require ROOT . '/library/preprocessor.php';
importlib("model.blog.remoteresponse");
requireStrictRoute();
/// First, detect trackback URL from RDF information.
$info = getRDFfromURL($_POST['url']);
if (empty($info)) {
$blogInfo = getInfoFromURL($_POST['url']);
if (!empty($blogInfo) && $blogInfo['service'] != null) {
$info['trackbackURL'] = getTrackbackURLFromInfo($_POST['url'], $blogInfo['service']);
} else {
Respond::ResultPage(false);
exit;
}
}
Respond::ResultPage(!empty($_POST['url']) && sendTrackback($blogid, $suri['id'], trim($info['trackbackURL'])));
示例10: array
<?php
/// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('updatecycle' => array('int', 0), 'feedlife' => array('int', 0), 'loadimage' => array(array('1', '2')), 'allowscript' => array(array('1', '2')), 'newwindow' => array(array('1', '2'))));
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
Respond::ResultPage(setReaderSetting($blogid, $_POST));
示例11: ErrorPage
static function ErrorPage($message = null, $buttonValue = null, $buttonLink = null, $isAjaxCall = false)
{
global $service;
if ($isAjaxCall) {
Respond::ResultPage(-1);
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php
echo TEXTCUBE_NAME;
?>
</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="<?php
echo $service['path'];
?>
/resources/style/owner.css" />
<script type="text/javascript">
//<![CDATA[
var scope = (window.location !== window.parent.location ? window.parent : window);
//]]>
</script>
</head>
<body id="body-message-page">
<div class="message-box">
<h1><?php
echo TEXTCUBE_NAME;
?>
</h1>
<div class="message"><?php
echo $message;
?>
</div>
<div class="button-box">
<input type="button" class="input-button" value="<?php
echo !empty($buttonValue) ? $buttonValue : _text('이전');
?>
" onclick="<?php
echo !empty($buttonLink) ? 'scope.location.href=\'' . $buttonLink . '\'' : 'scope.history.go(-1)';
?>
" />
</div>
</div>
</body>
</html>
<?php
exit;
}
示例12: array
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('id' => array('int', 'min' => 0), 'name' => array('string', 'min' => 0, 'max' => 255), 'rss' => array('string', 'min' => 0, 'max' => 255, 'mandatory' => false), 'url' => array('string', 'min' => 0, 'max' => 255), 'category' => array('int', 'mandatory' => false), 'newCategory' => array('string', 'mandatory' => false)));
require ROOT . '/library/preprocessor.php';
importlib("model.blog.link");
requireStrictRoute();
Respond::ResultPage(updateLink($blogid, $_POST));
示例13: getTeamContentsSave
function getTeamContentsSave($target)
{
$pool = DBModel::getInstance();
$flag = isset($_POST['flag']) ? $_POST['flag'] : '';
$style = isset($_POST['fontstyle']) ? $_POST['fontstyle'] : '';
$profile = isset($_POST['profile']) ? $_POST['profile'] : '';
if (doesHaveOwnership() && doesHaveMembership()) {
if ($flag == "style") {
$pool->reset("TeamUserSettings");
$pool->setAttribute("style", $style, true);
$pool->setAttribute("updated", Timestamp::getUNIXtime());
$pool->setQualifier("blogid", "eq", getBlogId());
$pool->setQualifier("userid", "eq", getUserId());
if ($pool->update()) {
Respond::ResultPage(0);
}
} else {
if ($flag == "profile") {
$profile = Utils_Unicode::lessenAsEncoding($profile, 65535);
$pool->reset("TeamUserSettings");
$pool->setAttribute("profile", $profile, true);
$pool->setAttribute("updated", Timestamp::getUNIXtime());
$pool->setQualifier("blogid", "eq", getBlogId());
$pool->setQualifier("userid", "eq", getUserId());
if ($pool->update()) {
Respond::ResultPage(0);
}
}
}
Respond::ResultPage(-1);
}
}
示例14: array
<?php
/// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('id' => array('id'), 'name' => array('string', 'min' => 0, 'max' => 255)));
require ROOT . '/library/preprocessor.php';
requireModel("blog.link");
requireStrictRoute();
Respond::ResultPage(updateLinkCategory($blogid, $_POST));
示例15: array
<?php
/// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('name' => array('string'), 'rss' => array('string', 'default' => ''), 'url' => array('string'), 'category' => array('int', 'mandatory' => false), 'newCategory' => array('string', 'mandatory' => false)));
require ROOT . '/library/preprocessor.php';
importlib("model.blog.link");
requireStrictRoute();
if (strpos($_POST['rss'], 'http://') !== 0) {
$_POST['rss'] = 'http://' . $_POST['rss'];
}
if (strpos($_POST['url'], 'http://') !== 0) {
$_POST['url'] = 'http://' . $_POST['url'];
}
Respond::ResultPage(addLink($blogid, $_POST));