本文整理汇总了PHP中XUtils::b64decode方法的典型用法代码示例。如果您正苦于以下问题:PHP XUtils::b64decode方法的具体用法?PHP XUtils::b64decode怎么用?PHP XUtils::b64decode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XUtils
的用法示例。
在下文中一共展示了XUtils::b64decode方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionUpdateTpl
/**
* 编辑
*
* @param $id
*/
public function actionUpdateTpl($filename)
{
$filename = CHtml::encode(trim($this->_gets->getParam('filename')));
$content = trim($this->_gets->getParam('content'));
if (isset($_POST['content'])) {
$fileputcontent = file_put_contents(Yii::app()->basePath . '/views/' . XUtils::b64decode($filename), $content);
if ($fileputcontent == true) {
//$this->redirect( array ( 'index' ) );
Yii::app()->user->setFlash('success', '修改成功!');
}
}
$data['filename'] = XUtils::b64decode($filename);
$data['content'] = htmlspecialchars(file_get_contents(Yii::app()->basePath . '/views/' . XUtils::b64decode($filename)));
$this->render('update', $data);
}
示例2:
?>
href="<?php
echo $item['link'];
?>
" class="<?php
echo $item['opt_a'];
?>
"><?php
echo $item['title'];
?>
</a>
<?php
} else {
?>
<?php
echo XUtils::b64decode($item['mix']);
?>
<?php
}
?>
</li>
<?php
}
?>
<?php
}
?>
</ul>
</div>
<?php
$m++;
示例3:
?>
class="<?php
if (!empty($vd['opt_a'])) {
echo $vd['opt_a'];
}
?>
" href="<?php
echo $vd['link'];
?>
"><?php
echo $vd['title'];
?>
</a>
<?php
} else {
echo XUtils::b64decode($vd['mix']);
?>
<?php
}
?>
</td><?php
if ($m > 0 && $m % 6 == 0 && $m < $a) {
?>
</tr><tr><?php
}
?>
<?php
$m++;
}
}
?>
示例4: json_decode
<li><a href="javascript:void(0)" xzid="5" target="_self">狮子座</a></li>
<li><a href="javascript:void(0)" xzid="6" target="_self">处女座</a></li>
<li><a href="javascript:void(0)" xzid="7" target="_self">天秤座</a></li>
<li><a href="javascript:void(0)" xzid="8" target="_self">天蝎座</a></li>
<li><a href="javascript:void(0)" xzid="9" target="_self">射手座</a></li>
<li><a href="javascript:void(0)" xzid="10" target="_self">摩羯座</a></li>
<li><a href="javascript:void(0)" xzid="11" target="_self">水瓶座</a></li>
<li><a href="javascript:void(0)" xzid="12" target="_self">双鱼座</a></li>
</ul>
</div>
<div class="starCom">
<?php
if (!empty($x[119]['data'][0]['mix'])) {
?>
<?php
$mix = json_decode(XUtils::b64decode($x[119]['data'][0]['mix']), 1);
?>
<div class="starRow1">
<span class="starAdv">
<a href="<?php
echo $mix['url'];
?>
">
<img src="<?php
echo STATIC_THEME_URL;
?>
images/xingzuo/tupian<?php
echo $x[119]['data'][0]['opt_a'];
?>
.jpg" />
</a>
示例5: actionBatch
/**
* 批量操作
*
*/
public function actionBatch()
{
$command = trim($this->_gets->getParam('command'));
switch ($command) {
case 'deleteFile':
parent::_acl('template_delete');
$fileName = trim($this->_gets->getParam('fileName'));
empty($fileName) && XUtils::message('error', '未选择记录');
$filePath = $this->_themePath . DS . 'views' . DS . XUtils::b64decode($fileName);
@unlink($filePath);
AdminLogger::_create(array('catalog' => 'delete', 'intro' => '删除模板:' . XUtils::b64decode($fileName)));
$this->redirect(array('index'));
break;
case 'deleteFolder':
parent::_acl('template_folder_delete');
$folderName = trim($this->_gets->getParam('folderName'));
empty($folderName) && XUtils::message('error', '未选择记录');
$folderPath = $this->_themePath . DS . 'views' . DS . $folderName;
if (is_dir($folderPath)) {
$fileList = XUtils::getFile($folderPath);
foreach ((array) $fileList as $row) {
@unlink($folderPath . DS . $row);
}
}
if (rmdir($folderPath)) {
AdminLogger::_create(array('catalog' => 'delete', 'intro' => '删除文件夹:' . $folderName));
XUtils::message('success', '目录 ' . $folderName . ' 删除完成', $this->createUrl('index'));
} else {
XUtils::message('errorBack', '目录删除失败,请删除此目录下所有文件再删除此目录');
}
break;
default:
throw new CHttpException(404, '错误的操作类型:' . $command);
break;
}
}
示例6: array
</td>
</tr>
<tr>
<th>附加项3:</th>
<td>
<?php
echo $form->textField($model, 'opt_c', array('size' => 60, 'maxlength' => 128, 'class' => 'textinput w270'));
?>
</td>
</tr>
<tr>
<th>特殊代码:</th>
<td>
<textarea name="Links[mix]" id="Links_mix" class='w270'><?php
if (!empty($model->mix)) {
echo XUtils::b64decode($model->mix);
}
?>
</textarea>
</td>
</tr>
<tr>
<th>开始时间:</th>
<td>
<input class="textinput w80" id="begin_time" name="Links[begin_time]" type="text" value="<?php
if (!empty($model->begin_time)) {
echo date('Y-m-d', $model->begin_time);
}
?>
" />
</td>