本文整理汇总了PHP中feed::postMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP feed::postMessage方法的具体用法?PHP feed::postMessage怎么用?PHP feed::postMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类feed
的用法示例。
在下文中一共展示了feed::postMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
$feed->per_page = $settings['perpage'];
$feed->c_per_page = $settings['cperpage'];
$feed->c_start = 0;
$feed->censor = $settings['censor'];
$feed->smiles = $settings['smiles'];
$feed->max_size = $settings['sizemsg'];
$feed->image_format = $settings['formatmsg'];
$feed->message_length = $settings['message'];
$feed->max_images = $settings['ilimit'];
$feed->time = $settings['time'];
// If the value of a type is empty unset it (prevent empty events)
if (!empty($_POST['type']) && empty($_POST['value'])) {
unset($_POST['type']);
}
// Set the $x to output the value via JS
$x = 1;
}
}
}
if ($x == 1) {
?>
<script language="javascript" type="text/javascript">window.top.window.stopUpload('<?php
echo $feed->postMessage($_POST['message'], $_FILES['my_image'], $_POST['type'], $_POST['value'], $_POST['privacy']);
?>
');</script>
<?php
} else {
?>
<script language="javascript" type="text/javascript">window.top.window.stopUpload(' ')</script>
<?php
}