本文整理汇总了PHP中save_remote函数的典型用法代码示例。如果您正苦于以下问题:PHP save_remote函数的具体用法?PHP save_remote怎么用?PHP save_remote使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了save_remote函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set
function set($post)
{
global $MOD, $DT_TIME, $_username, $_userid;
$post['edittime'] = $DT_TIME;
$post['title'] = trim($post['title']);
$post['listorder'] = intval($post['listorder']);
clear_upload($post['content']);
if ($this->itemid) {
$post['editor'] = $_username;
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
} else {
$post['addtime'] = $DT_TIME;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = dsafe($content);
if ($MOD['page_clear'] || $MOD['page_save']) {
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['page_clear']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['page_save']) {
$post['content'] = save_remote($post['content']);
}
$post['content'] = addslashes($post['content']);
}
return array_map("trim", $post);
}
示例2: set
function set($post)
{
global $MOD, $DT_TIME, $_username, $_userid;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['editor'] = $_username;
$post['content'] = addslashes(save_remote(save_local(stripslashes($post['content']))));
clear_upload($post['content']);
if ($this->itemid) {
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
}
if ($post['fromtime']) {
$post['fromtime'] = strtotime($post['fromtime'] . ' 0:0:0');
}
if ($post['totime']) {
$post['totime'] = strtotime($post['totime'] . ' 23:59:59');
}
$post['poll_max'] = intval($post['poll_max']);
$post['poll_page'] = intval($post['poll_page']);
$post['poll_page'] or $post['poll_page'] = 30;
$post['poll_cols'] = intval($post['poll_cols']);
$post['poll_cols'] or $post['poll_cols'] = 1;
$post['thumb_width'] = intval($post['thumb_width']);
$post['thumb_width'] or $post['thumb_width'] = 120;
$post['thumb_height'] = intval($post['thumb_height']);
$post['thumb_height'] or $post['thumb_height'] = 90;
return array_map("trim", $post);
}
示例3: set
function set($post)
{
global $MOD, $DT_TIME, $_username, $_userid;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['editor'] = $_username;
$post['content'] = addslashes(save_remote(save_local(stripslashes($post['content']))));
clear_upload($post['content']);
if ($this->itemid) {
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
}
if ($post['fromtime']) {
$post['fromtime'] = strtotime($post['fromtime'] . ' 0:0:0');
}
if ($post['totime']) {
$post['totime'] = strtotime($post['totime'] . ' 23:59:59');
}
$post['groupid'] = implode(',', $post['groupid']);
$post['verify'] = intval($post['verify']);
$post['display'] = intval($post['display']);
return array_map("trim", $post);
}
示例4: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $TYPE, $_username, $_userid;
$post['editor'] = $_username;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['adddate'] = timetodate($post['addtime'], 3);
$post['edittime'] = $DT_TIME;
$post['editdate'] = timetodate($post['edittime'], 3);
$post['totime'] = $post['totime'] ? strtotime($post['totime'] . ' 23:59:59') : 0;
$post['fee'] = dround($post['fee']);
$post['price'] = dround($post['price']);
$post['minamount'] = dround($post['minamount']);
$post['amount'] = dround($post['amount']);
$post['mycatid'] = intval($post['mycatid']);
$post['days'] = intval($post['days']);
$post['elite'] = $post['elite'] ? 1 : 0;
$post['title'] = trim($post['title']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($MOD['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '">';
}
if ($post['thumb1']) {
$new .= '<img src="' . $post['thumb1'] . '">';
}
if ($post['thumb2']) {
$new .= '<img src="' . $post['thumb2'] . '">';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '">';
}
if ($r['thumb1']) {
$old .= '<img src="' . $r['thumb1'] . '">';
}
if ($r['thumb2']) {
$old .= '<img src="' . $r['thumb2'] . '">';
}
delete_diff($new, $old);
} else {
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例5: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $_username, $_userid;
is_url($post['banner']) or $post['banner'] = '';
$post['filepath'] = isset($post['filepath']) && is_filepath($post['filepath']) ? file_vname($post['filepath']) : '';
$post['islink'] = isset($post['islink']) ? 1 : 0;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['cfg_photo'] = intval($post['cfg_photo']);
$post['cfg_video'] = intval($post['cfg_video']);
$post['cfg_type'] = intval($post['cfg_type']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($post['content'] && isset($post['clear_link']) && $post['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($post['content'] && isset($post['save_remotepic']) && $post['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($MOD['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$post['editor'] = $_username;
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '"/>';
}
if ($post['banner']) {
$new .= '<img src="' . $post['banner'] . '">';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '"/>';
}
if ($r['banner']) {
$old .= '<img src="' . $r['banner'] . '">';
}
delete_diff($new, $old);
} else {
$post['username'] = $post['editor'] = $_username;
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例6: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $_username, $_userid;
is_url($post['thumb']) or $post['thumb'] = '';
$post['filepath'] = isset($post['filepath']) && is_filepath($post['filepath']) ? file_vname($post['filepath']) : '';
$post['islink'] = isset($post['islink']) ? 1 : 0;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['fee'] = dround($post['fee']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($post['content'] && isset($post['clear_link']) && $post['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($post['content'] && isset($post['save_remotepic']) && $post['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($post['content'] && $post['thumb_no'] && !$post['thumb']) {
$post['thumb'] = save_thumb($post['content'], $post['thumb_no'], $MOD['thumb_width'], $MOD['thumb_height']);
}
if (strpos($post['content'], 'pagebreak') !== false) {
$post['content'] = str_replace(array('<hr class="de-pagebreak" /></p>', '<p><hr class="de-pagebreak" />', '<hr class="de-pagebreak" /></div>', '<div><hr class="de-pagebreak" />'), array('</p><hr class="de-pagebreak" />', '<hr class="de-pagebreak" /><p>', '</div><hr class="de-pagebreak" />', '<hr class="de-pagebreak" /><div>'), $post['content']);
}
if ($post['content'] && !$post['introduce'] && $post['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $post['introduce_length']));
}
if ($this->itemid) {
$post['editor'] = $_username;
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '"/>';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '"/>';
}
delete_diff($new, $old);
} else {
$post['username'] = $post['editor'] = $_username;
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例7: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $TYPE, $_username, $_userid, $GENDER, $MARRIAGE, $EDUCATION;
$post['editor'] = $_username;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['fee'] = dround($post['fee']);
$post['birthday'] = intval($post['byear']) . '-' . intval($post['bmonth']) . '-' . intval($post['bday']);
$post['age'] = date('Y', $DT_TIME) - intval($post['byear']);
$post['minsalary'] = intval($post['minsalary']);
$post['maxsalary'] = intval($post['maxsalary']);
$post['type'] = intval($post['type']);
$post['marriage'] = intval($post['marriage']);
$post['height'] = intval($post['height']);
$post['height'] = intval($post['height']);
$post['gender'] = intval($post['gender']);
$post['education'] = intval($post['education']);
$post['experience'] = intval($post['experience']);
$post['situation'] = intval($post['situation']);
$post['email'] = trim($post['email']);
$post['status'] = intval($post['status']);
$post['open'] = intval($post['open']);
$post['title'] = trim($post['title']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($MOD['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
} else {
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例8: set
function set($post)
{
global $MOD, $DT_TIME, $_username, $_userid;
$post['islink'] = isset($post['islink']) ? 1 : 0;
$post['edittime'] = $DT_TIME;
$post['editor'] = $_username;
$post['content'] = addslashes(save_remote(save_local(stripslashes($post['content']))));
clear_upload($post['content']);
if ($this->itemid) {
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
}
return array_map("trim", $post);
}
示例9: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $AREA, $_username, $_userid;
$AREA or $AREA = cache_read('area.php');
$post['city'] or $post['city'] = $post['areaid'] ? $AREA[$post['areaid']]['areaname'] : '';
is_url($post['thumb']) or $post['thumb'] = '';
$post['filepath'] = isset($post['filepath']) && is_filepath($post['filepath']) ? file_vname($post['filepath']) : '';
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['fromtime'] = strtotime($post['fromtime'] . ' 0:0:0');
$post['totime'] = strtotime($post['totime'] . ' 23:59:59');
$post['homepage'] = fix_link($post['homepage']);
$post['sign'] = $post['sign'] ? 1 : 0;
$post['fee'] = dround($post['fee']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($MOD['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$post['editor'] = $_username;
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '"/>';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '"/>';
}
delete_diff($new, $old);
} else {
$post['username'] = $post['editor'] = $_username;
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例10: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $_username, $_userid;
$post['filepath'] = isset($post['filepath']) && is_filepath($post['filepath']) ? file_vname($post['filepath']) : '';
$post['editor'] = $_username;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['totime'] = $post['totime'] ? strtotime($post['totime'] . ' 23:59:59') : 0;
$post['discount'] = dround($post['price'] * 10 / $post['marketprice'], 1);
$post['savemoney'] = dround($post['marketprice'] - $post['price']);
$post['fee'] = dround($post['fee']);
$post['price'] = dround($post['price']);
$post['marketprice'] = dround($post['marketprice']);
$post['minamount'] = dround($post['minamount']);
$post['amount'] = dround($post['amount']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($post['content'] && !$post['introduce'] && $post['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '"/>';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '"/>';
}
delete_diff($new, $old);
} else {
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例11: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $_username, $_userid;
$post['editor'] = $_username;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['fee'] = dround($post['fee']);
$post['video'] = fix_link(trim($post['video']));
$post['video_width'] = intval($post['video_width']);
$post['video_height'] = intval($post['video_height']);
$post['title'] = trim($post['title']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($MOD['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '">';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '">';
}
delete_diff($new, $old);
if ($r['video'] != $post['video']) {
delete_upload($r['video'], match_userid($r['video']));
}
} else {
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}
示例12: set
function set($post)
{
global $MOD, $DT_TIME, $_username, $_userid;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? datetotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['fromtime'] = datetotime($post['fromtime'] . ' 00:00:00');
$post['totime'] = $post['totime'] ? datetotime($post['totime'] . ' 23:59:59') : 0;
$post['title'] = trim($post['title']);
clear_upload($post['content'] . $post['thumb']);
if ($this->itemid) {
$post['editor'] = $_username;
$new = $post['content'];
if ($post['thumb']) {
$new .= '<img src="' . $post['thumb'] . '">';
}
$r = $this->get_one();
$old = $r['content'];
if ($r['thumb']) {
$old .= '<img src="' . $r['thumb'] . '">';
}
delete_diff($new, $old);
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = dsafe($content);
if ($MOD['credit_clear'] || $MOD['credit_save']) {
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['credit_clear']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['credit_save']) {
$post['content'] = save_remote($post['content']);
}
$post['content'] = addslashes($post['content']);
}
return array_map("trim", $post);
}
示例13: set
function set($post)
{
global $MOD, $DT_TIME, $_username, $_userid;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['edittime'] = $DT_TIME;
$post['content'] = addslashes(save_remote(save_local(stripslashes($post['content']))));
$post['introduce'] = addslashes(get_intro($post['content'], 120));
$post['passport'] = addslashes(get_user($post['username'], 'username', 'passport'));
if ($this->itemid) {
$post['editor'] = $_username;
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
clear_upload($post['content']);
return array_map("trim", $post);
}
示例14: set
function set($post)
{
global $DT_TIME, $_username;
$post['status'] = $post['status'] == 3 ? 3 : 2;
if ($this->itemid) {
$post['edittime'] = $DT_TIME;
$post['editor'] = $_username;
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
} else {
$post['addtime'] = $DT_TIME;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = dsafe($content);
$post['content'] = addslashes(save_remote(save_local(stripslashes($post['content']))));
clear_upload($post['content']);
return array_map("trim", $post);
}
示例15: set
function set($post)
{
global $MOD, $DT_TIME, $DT_IP, $TYPE, $_username, $_userid;
$post['editor'] = $_username;
$post['addtime'] = isset($post['addtime']) && $post['addtime'] ? strtotime($post['addtime']) : $DT_TIME;
$post['adddate'] = timetodate($post['addtime'], 3);
$post['edittime'] = $DT_TIME;
$post['editdate'] = timetodate($post['edittime'], 3);
$post['totime'] = $post['totime'] ? strtotime($post['totime'] . ' 23:59:59') : 0;
$post['fee'] = dround($post['fee']);
$post['total'] = intval($post['total']);
$post['email'] = trim($post['email']);
$post['minsalary'] = intval($post['minsalary']);
$post['maxsalary'] = intval($post['maxsalary']);
$post['type'] = intval($post['type']);
$post['gender'] = intval($post['gender']);
$post['education'] = intval($post['education']);
$post['experience'] = intval($post['experience']);
$post['minage'] = intval($post['minage']);
$post['maxage'] = intval($post['maxage']);
$post['title'] = trim($post['title']);
$post['content'] = stripslashes($post['content']);
$post['content'] = save_local($post['content']);
if ($MOD['clear_link']) {
$post['content'] = clear_link($post['content']);
}
if ($MOD['save_remotepic']) {
$post['content'] = save_remote($post['content']);
}
if ($MOD['introduce_length']) {
$post['introduce'] = addslashes(get_intro($post['content'], $MOD['introduce_length']));
}
if ($this->itemid) {
$new = $post['content'];
$r = $this->get_one();
$old = $r['content'];
delete_diff($new, $old);
} else {
$post['ip'] = $DT_IP;
}
$content = $post['content'];
unset($post['content']);
$post = dhtmlspecialchars($post);
$post['content'] = addslashes(dsafe($content));
return array_map("trim", $post);
}