当前位置: 首页>>代码示例>>PHP>>正文


PHP EasyBlogHelper::getToken方法代码示例

本文整理汇总了PHP中EasyBlogHelper::getToken方法的典型用法代码示例。如果您正苦于以下问题:PHP EasyBlogHelper::getToken方法的具体用法?PHP EasyBlogHelper::getToken怎么用?PHP EasyBlogHelper::getToken使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EasyBlogHelper的用法示例。


在下文中一共展示了EasyBlogHelper::getToken方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: saveForm

 public function saveForm()
 {
     JRequest::checkToken() or jexit('Invalid Token');
     // @task: Check for acl rules.
     $this->checkAccess('autoposting');
     $post = JRequest::get('POST');
     $type = JRequest::getVar('type');
     // We do not want these variables to end
     unset($post['task']);
     unset($post['controller']);
     unset($post['layout']);
     unset($post['option']);
     unset($post['c']);
     unset($post['type']);
     $token = EasyBlogHelper::getToken();
     if (isset($post[$token])) {
         unset($post[$token]);
     }
     if (isset($post['integrations_linkedin_company'])) {
         $post['integrations_linkedin_company'] = implode(',', $post['integrations_linkedin_company']);
     }
     $model = $this->getModel('Settings');
     $model->save($post);
     $redirect = 'index.php?option=com_easyblog&view=autoposting&layout=form&type=' . $type;
     if ($this->getTask() == 'saveForm') {
         $redirect = 'index.php?option=com_easyblog&view=autoposting';
     }
     $app = JFactory::getApplication();
     $message = JText::sprintf('COM_EASYBLOG_OAUTH_SETTINGS_SAVED_SUCCESS', ucfirst($type));
     $app->redirect($redirect, $message);
 }
开发者ID:alexinteam,项目名称:joomla3,代码行数:31,代码来源:autoposting.php

示例2: preview

 public function preview($blogId)
 {
     $ajax = new Ejax();
     $mailq = EasyBlogHelper::getTable('Mailqueue');
     $mailq->load($blogId);
     $url = JURI::root() . 'administrator/index.php?option=com_easyblog&c=spools&task=preview&id=' . $mailq->id . '&' . EasyBlogHelper::getToken() . '=1';
     $options = new stdClass();
     $options->title = JText::_('COM_EASYBLOG_EMAIL_PREVIEW');
     $options->content = '<iframe src="' . $url . '" width="100%" height="500"></iframe>';
     $options->width = '750';
     $ajax->dialog($options);
     $ajax->send();
 }
开发者ID:alexinteam,项目名称:joomla3,代码行数:13,代码来源:view.ejax.php

示例3: __construct

 public function __construct()
 {
     $config = EasyBlogHelper::getConfig();
     // @legacy: If environment is set to production, change to static.
     $environment = $config->get('easyblog_environment');
     if ($environment == 'production') {
         $environment = 'static';
     }
     $this->fullName = 'EasyBlog';
     $this->shortName = 'eb';
     $this->environment = $environment;
     $this->mode = $config->get('easyblog_mode');
     $this->version = (string) EasyBlogHelper::getLocalVersion();
     $this->baseUrl = EasyBlogHelper::getBaseUrl();
     $this->token = EasyBlogHelper::getToken();
     $this->options = array("scriptVersioning" => (bool) $config->get('main_script_versioning'), "responsive" => (bool) $config->get('layout_responsive'));
     parent::__construct();
 }
开发者ID:Tommar,项目名称:vino2,代码行数:18,代码来源:configuration.php

示例4:

	this.resolveWith(
		{
			directorySeparator: '\<?php 
echo DIRECTORY_SEPARATOR;
?>
',

			uploader: {
				settings: {
					runtimes: (document.documentMode==10) ? "html4" : "html5, html4",
					url: $.indexUrl + '?option=com_easyblog&controller=media&task=upload&tmpl=component&format=json&sessionid=<?php 
echo $session->getId();
?>
&<?php 
echo EasyBlogHelper::getToken();
?>
=1&bloggger_id=<?php 
echo $blogger_id;
?>
&lang=en',
					max_file_size: '<?php 
echo $system->config->get('main_upload_image_size');
?>
mb',
					filters: [{title: "Media files", extensions: "<?php 
echo $system->config->get('main_media_extensions');
?>
"}]
				}
			},
开发者ID:Tommar,项目名称:vino2,代码行数:30,代码来源:media.php

示例5:

        ?>
				</td>
				<td style="text-align: center;">
					<div class="item_actions" id="eblog-comment-toolbar<?php 
        echo $entry->id;
        ?>
">
		                <a href="<?php 
        echo JRoute::_('index.php?option=com_easyblog&c=teamblogs&task=teamApproval&id=' . $entry->id . '&team=' . $entry->team_id . '&approve=1&' . EasyBlogHelper::getToken() . '=1');
        ?>
" class="text-green"><?php 
        echo JText::_('COM_EASYBLOG_TEAMBLOGS_APPROVE_REQUEST');
        ?>
</a> |
						<a href="<?php 
        echo JRoute::_('index.php?option=com_easyblog&c=teamblogs&task=teamApproval&id=' . $entry->id . '&team=' . $entry->team_id . '&approve=0&' . EasyBlogHelper::getToken() . '=1');
        ?>
" class="text-red"><?php 
        echo JText::_('COM_EASYBLOG_TEAMBLOGS_REJECT_REQUEST');
        ?>
</a>
					</div>
				</td>
			</tr>
		<?php 
        $k = 1 - $k;
    }
    //end for
} else {
    ?>
		<tr>
开发者ID:alexinteam,项目名称:joomla3,代码行数:31,代码来源:default_bootstrap.php

示例6: foreach

echo JText::_('COM_EASYBLOG_THEME_AUTHOR');
?>
</th>
			</tr>
		</thead>
		<tbody>
			<?php 
$i = 0;
?>
			<?php 
foreach ($this->themes as $theme) {
    ?>
			<tr>
				<td class="center small">
					<a href="<?php 
    echo JRoute::_('index.php?option=com_easyblog&c=themes&task=makedefault&element=' . $theme->element . '&' . EasyBlogHelper::getToken() . '=1');
    ?>
" class="btn btn-micro jgrid">
						<?php 
    if ($this->default == $theme->element) {
        ?>
						<i class="icon-star"></i>
						<?php 
    } else {
        ?>
						<i class="icon-star-empty"></i>
						<?php 
    }
    ?>
					</a>
				</td>
开发者ID:alexinteam,项目名称:joomla3,代码行数:31,代码来源:default_bootstrap.php

示例7: foreach

				</tr>
			</table>
		</div>

		<div class="tab-pane" id="team-members">
			<p><?php 
echo JText::_('COM_EASYBLOG_TEAMBLOGS_MEMBERS_DESC');
?>
</p>
			<div id="members-container">
			<?php 
if ($members = $this->getMembers($this->team->id)) {
    foreach ($members as $member) {
        $user = JFactory::getUser($member->user_id);
        $markAdmin = '- <a href="javascript:void(0);" onclick="admin.teamblog.markAdmin(' . $this->team->id . ',' . $member->user_id . ',\'' . EasyBlogHelper::getToken() . '\');">' . JText::_('COM_EASYBLOG_TEAMBLOGS_SET_ADMIN') . '</a>';
        $removeAdmin = '- <a href="javascript:void(0);" onclick="admin.teamblog.removeAdmin(' . $this->team->id . ',' . $member->user_id . ',\'' . EasyBlogHelper::getToken() . '\');">' . JText::_('COM_EASYBLOG_TEAMBLOGS_REMOVE_ADMIN') . '</a>';
        ?>
					<span id="member-<?php 
        echo $user->id;
        ?>
" class="members-item">
						<input type="hidden" name="members[]" value="<?php 
        echo $user->id;
        ?>
" />
						<a class="remove_item" href="javascript:void(0);" onclick="removeMember('member-<?php 
        echo $user->id;
        ?>
', '<?php 
        echo $user->id;
        ?>
开发者ID:alexinteam,项目名称:joomla3,代码行数:31,代码来源:default_bootstrap.php


注:本文中的EasyBlogHelper::getToken方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。