本文整理汇总了PHP中nxs_adjRpst函数的典型用法代码示例。如果您正苦于以下问题:PHP nxs_adjRpst函数的具体用法?PHP nxs_adjRpst怎么用?PHP nxs_adjRpst使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nxs_adjRpst函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setNTSettings
function setNTSettings($post, $options)
{
$code = $this->ntInfo['code'];
foreach ($post as $ii => $pval) {
// prr($pval);
if (isset($pval['apBGUName']) && trim($pval['apBGUName']) != '' && isset($pval['apBGPass']) && trim($pval['apBGPass']) != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apDoBG'])) {
$options[$ii]['doBG'] = $pval['apDoBG'];
} else {
$options[$ii]['doBG'] = 0;
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apBGUName'])) {
$options[$ii]['bgUName'] = trim($pval['apBGUName']);
}
if (isset($pval['apBGPass'])) {
$options[$ii]['bgPass'] = 'b4d7s' . nsx_doEncode($pval['apBGPass']);
} else {
$options[$ii]['bgPass'] = '';
}
if (isset($pval['apBGBlogID'])) {
$options[$ii]['bgBlogID'] = trim($pval['apBGBlogID']);
}
if (isset($pval['apBGMsgFrmt'])) {
$options[$ii]['bgMsgFormat'] = trim($pval['apBGMsgFrmt']);
}
if (isset($pval['apBGMsgTFrmt'])) {
$options[$ii]['bgMsgTFormat'] = trim($pval['apBGMsgTFrmt']);
}
if (isset($pval['bgInclTags'])) {
$options[$ii]['bgInclTags'] = $pval['bgInclTags'];
} else {
$options[$ii]['bgInclTags'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例2: setNTSettings
function setNTSettings($post, $options)
{
$code = 'VB';
$lcode = 'vb';
foreach ($post as $ii => $pval) {
if (isset($pval['apVBUName']) && $pval['apVBUName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apVBUName'])) {
$options[$ii]['vbUName'] = trim($pval['apVBUName']);
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apVBPass'])) {
$options[$ii]['vbPass'] = 'n5g9a' . nsx_doEncode($pval['apVBPass']);
} else {
$options[$ii]['vbPass'] = '';
}
if (isset($pval['apVBURL'])) {
$options[$ii]['vbURL'] = trim($pval['apVBURL']);
}
if (isset($pval['vbInclTags'])) {
$options[$ii]['vbInclTags'] = $pval['vbInclTags'];
} else {
$options[$ii]['vbInclTags'] = 0;
}
if (isset($pval['apVBMsgTFrmt'])) {
$options[$ii]['vbMsgTFormat'] = trim($pval['apVBMsgTFrmt']);
}
if (isset($pval['apVBMsgFrmt'])) {
$options[$ii]['vbMsgFormat'] = trim($pval['apVBMsgFrmt']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apDoVB'])) {
$options[$ii]['doVB'] = $pval['apDoVB'];
} else {
$options[$ii]['doVB'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例3: setNTSettings
function setNTSettings($post, $options)
{
$code = 'VK';
$lcode = 'vk';
foreach ($post as $ii => $pval) {
if (isset($pval['apVKAppID']) && $pval['apVKAppID'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apDoVK'])) {
$options[$ii]['doVK'] = $pval['apDoVK'];
} else {
$options[$ii]['doVK'] = 0;
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apVKAppID'])) {
$options[$ii]['vkAppID'] = trim($pval['apVKAppID']);
}
if (isset($pval['uName'])) {
$options[$ii]['uName'] = trim($pval['uName']);
}
if (isset($pval['uPass'])) {
$options[$ii]['uPass'] = 'n5g9a' . nsx_doEncode($pval['uPass']);
} else {
$options[$ii]['uPass'] = '';
}
if (isset($pval['vkPh'])) {
$options[$ii]['vkPh'] = trim($pval['vkPh']);
}
if (isset($pval['apVKAuthResp'])) {
$options[$ii]['apVKAuthResp'] = trim($pval['apVKAuthResp']);
$options[$ii]['vkAppAuthToken'] = trim(CutFromTo($pval['apVKAuthResp'] . '&', 'access_token=', '&'));
$options[$ii]['vkAppAuthUser'] = trim(CutFromTo($pval['apVKAuthResp'] . "&", 'user_id=', '&'));
$hdrsArr = nxs_getVKHeaders($pval['url']);
$response = wp_remote_get($pval['url'], array('method' => 'GET', 'timeout' => 45, 'redirection' => 0, 'headers' => $hdrsArr));
if (is_wp_error($response)) {
echo "ERROR: <br/>";
prr($response);
return;
}
$contents = $response['body'];
$contents = utf8_decode($contents);
if (stripos($contents, '"group_id":') !== false) {
$options[$ii]['pgIntID'] = '-' . CutFromTo($contents, '"group_id":', ',');
$type = 'all';
}
if (stripos($contents, '"public_id":') !== false) {
$options[$ii]['pgIntID'] = '-' . CutFromTo($contents, '"public_id":', ',');
$type = 'all';
}
if (stripos($contents, '"user_id":') !== false) {
$options[$ii]['pgIntID'] = CutFromTo($contents, '"user_id":', ',');
$type = 'own';
}
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['postType'])) {
$options[$ii]['postType'] = trim($pval['postType']);
}
if (isset($pval['attch'])) {
$options[$ii]['attch'] = $pval['attch'];
} else {
$options[$ii]['attch'] = 0;
}
if (isset($pval['attchAsVid'])) {
$options[$ii]['attchAsVid'] = $pval['attchAsVid'];
} else {
$options[$ii]['attchAsVid'] = 0;
}
if (isset($pval['apVKImgUpl'])) {
$options[$ii]['imgUpl'] = $pval['apVKImgUpl'];
} else {
$options[$ii]['imgUpl'] = 0;
}
if (isset($pval['addBackLink'])) {
$options[$ii]['addBackLink'] = $pval['addBackLink'];
} else {
$options[$ii]['addBackLink'] = 0;
}
if (isset($pval['msgFrmt'])) {
$options[$ii]['msgFrmt'] = trim($pval['msgFrmt']);
}
if (isset($pval['msgAFormat'])) {
$options[$ii]['msgAFormat'] = trim($pval['msgAFormat']);
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
//.........这里部分代码省略.........
示例4: setNTSettings
function setNTSettings($post, $options)
{
$code = $this->ntInfo['code'];
foreach ($post as $ii => $pval) {
if (isset($pval['apPNUName']) && $pval['apPNUName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apDoPN'])) {
$options[$ii]['doPN'] = $pval['apDoPN'];
} else {
$options[$ii]['doPN'] = 0;
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apPNUName'])) {
$options[$ii]['pnUName'] = trim($pval['apPNUName']);
}
if (isset($pval['apPNPass'])) {
$options[$ii]['pnPass'] = 'g9c1a' . nsx_doEncode($pval['apPNPass']);
} else {
$options[$ii]['pnPass'] = '';
}
if (isset($pval['apPNBoard'])) {
$options[$ii]['pnBoard'] = trim($pval['apPNBoard']);
}
if (isset($pval['apPNDefImg'])) {
$options[$ii]['pnDefImg'] = trim($pval['apPNDefImg']);
}
if (isset($pval['isAttachVid'])) {
$options[$ii]['isAttachVid'] = $pval['isAttachVid'];
} else {
$options[$ii]['isAttachVid'] = 0;
}
if (isset($pval['cImgURL'])) {
$options[$ii]['cImgURL'] = trim($pval['cImgURL']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apPNMsgFrmt'])) {
$options[$ii]['pnMsgFormat'] = trim($pval['apPNMsgFrmt']);
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例5: setNTSettings
function setNTSettings($post, $options)
{
$code = $this->ntInfo['code'];
foreach ($post as $ii => $pval) {
if (isset($pval['apTRConsKey']) && $pval['apTRConsSec'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apTRURL'])) {
$options[$ii]['trURL'] = trim($pval['apTRURL']);
if (substr($options[$ii]['trURL'], 0, 4) != 'http') {
$options[$ii]['trURL'] = 'http://' . $options[$ii]['trURL'];
}
$trPgID = $options[$ii]['trURL'];
if (substr($trPgID, -1) == '/') {
$trPgID = substr($trPgID, 0, -1);
}
$trPgID = substr(strrchr($trPgID, "/"), 1);
$options[$ii]['trPgID'] = $trPgID;
//echo $fbPgID;
}
if (substr($options[$ii]['trURL'], -1) != '/') {
$options[$ii]['trURL'] .= '/';
}
if (isset($pval['apDoTR'])) {
$options[$ii]['doTR'] = $pval['apDoTR'];
} else {
$options[$ii]['doTR'] = 0;
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apTRConsKey'])) {
$options[$ii]['trConsKey'] = trim($pval['apTRConsKey']);
}
if (isset($pval['apTRConsSec'])) {
$options[$ii]['trConsSec'] = trim($pval['apTRConsSec']);
}
if (isset($pval['apTRMsgFrmt'])) {
$options[$ii]['trMsgFormat'] = trim($pval['apTRMsgFrmt']);
}
if (isset($pval['apTRMsgTFrmt'])) {
$options[$ii]['trMsgTFormat'] = trim($pval['apTRMsgTFrmt']);
}
if (isset($pval['trInclTags'])) {
$options[$ii]['trInclTags'] = $pval['trInclTags'];
} else {
$options[$ii]['trInclTags'] = 0;
}
if (isset($pval['fillSrcURL'])) {
$options[$ii]['fillSrcURL'] = $pval['fillSrcURL'];
} else {
$options[$ii]['fillSrcURL'] = 0;
}
if (isset($pval['useOrDate'])) {
$options[$ii]['useOrDate'] = $pval['useOrDate'];
} else {
$options[$ii]['useOrDate'] = 0;
}
if (isset($pval['trInclCats'])) {
$options[$ii]['trInclCats'] = $pval['trInclCats'];
} else {
$options[$ii]['trInclCats'] = 0;
}
if (isset($pval['apTRPostType'])) {
$options[$ii]['trPostType'] = trim($pval['apTRPostType']);
}
if (isset($pval['cImgURL'])) {
$options[$ii]['cImgURL'] = trim($pval['cImgURL']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apTRDefImg'])) {
$options[$ii]['trDefImg'] = trim($pval['apTRDefImg']);
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
//.........这里部分代码省略.........
示例6: setNTSettings
function setNTSettings($post, $options)
{
$code = $this->ntInfo['code'];
foreach ($post as $ii => $pval) {
if (isset($pval['appKey']) && $pval['appKey'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['appKey'])) {
$options[$ii]['appKey'] = trim($pval['appKey']);
}
if (isset($pval['appSec'])) {
$options[$ii]['appSec'] = trim($pval['appSec']);
}
if (isset($pval['setID'])) {
$options[$ii]['setID'] = trim($pval['setID']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['defImg'])) {
$options[$ii]['defImg'] = $pval['defImg'];
}
if (isset($pval['inclTags'])) {
$options[$ii]['inclTags'] = trim($pval['inclTags']);
} else {
$options[$ii]['inclTags'] = 0;
}
if (isset($pval['msgFrmt'])) {
$options[$ii]['msgFrmt'] = trim($pval['msgFrmt']);
}
if (isset($pval['msgTFrmt'])) {
$options[$ii]['msgTFrmt'] = trim($pval['msgTFrmt']);
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例7: setNTSettings
function setNTSettings($post, $options)
{
$code = 'LJ';
$lcode = 'lj';
foreach ($post as $ii => $pval) {
if (isset($pval['apLJUName']) && $pval['apLJUName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['ljSrv'])) {
$options[$ii]['ljSrv'] = trim($pval['ljSrv']);
}
if ($options[$ii]['ljSrv'] == 'DW') {
$server = 'dreamwidth.org';
} else {
$server = 'livejournal.com';
}
if (isset($pval['apLJUName'])) {
$options[$ii]['ljUName'] = trim($pval['apLJUName']);
}
$options[$ii]['ljURL'] = 'http://' . $options[$ii]['ljUName'] . "." . $server;
if (isset($pval['apLJPass'])) {
$options[$ii]['ljPass'] = 'n5g9a' . nsx_doEncode($pval['apLJPass']);
} else {
$options[$ii]['ljPass'] = '';
}
if (isset($pval['apLJMsgFrmt'])) {
$options[$ii]['ljMsgFormat'] = trim($pval['apLJMsgFrmt']);
}
if (isset($pval['apLJMsgTFrmt'])) {
$options[$ii]['ljMsgTFormat'] = trim($pval['apLJMsgTFrmt']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if (isset($pval['inclTags'])) {
$options[$ii]['inclTags'] = $pval['inclTags'];
} else {
$options[$ii]['inclTags'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['commID'])) {
if (stripos($pval['commID'], '.') !== false) {
$pval['commID'] = CutFromTo($pval['commID'], '://', '.');
}
$options[$ii]['commID'] = trim($pval['commID']);
}
if (isset($pval['apDoLJ'])) {
$options[$ii]['doLJ'] = $pval['apDoLJ'];
} else {
$options[$ii]['doLJ'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例8: setNTSettings
function setNTSettings($post, $options)
{
$code = 'WP';
$lcode = 'wp';
foreach ($post as $ii => $pval) {
if (isset($pval['apWPUName']) && $pval['apWPUName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apWPURL'])) {
$options[$ii]['wpURL'] = trim($pval['apWPURL']);
}
if (substr($options[$ii]['wpURL'], 0, 4) != 'http') {
$options[$ii]['wpURL'] = 'http://' . $options[$ii]['wpURL'];
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apWPUName'])) {
$options[$ii]['wpUName'] = trim($pval['apWPUName']);
}
if (isset($pval['apWPPass'])) {
$options[$ii]['wpPass'] = 'n5g9a' . nsx_doEncode($pval['apWPPass']);
} else {
$options[$ii]['wpPass'] = '';
}
if (isset($pval['apWPMsgFrmt'])) {
$options[$ii]['wpMsgFormat'] = trim($pval['apWPMsgFrmt']);
}
if (isset($pval['apWPMsgTFrmt'])) {
$options[$ii]['wpMsgTFormat'] = trim($pval['apWPMsgTFrmt']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apDoWP'])) {
$options[$ii]['doWP'] = $pval['apDoWP'];
} else {
$options[$ii]['doWP'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例9: setNTSettings
function setNTSettings($post, $options)
{
$code = 'TW';
$lcode = 'tw';
foreach ($post as $ii => $pval) {
if (isset($pval['apTWURL']) && $pval['apTWURL'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apDoTW'])) {
$options[$ii]['doTW'] = $pval['apDoTW'];
} else {
$options[$ii]['doTW'] = 0;
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apTWURL'])) {
$options[$ii]['twURL'] = trim($pval['apTWURL']);
}
if (substr($options[$ii]['twURL'], 0, 4) != 'http') {
$options[$ii]['twURL'] = 'http://' . $options[$ii]['twURL'];
}
if (isset($pval['apTWConsKey'])) {
$options[$ii]['twConsKey'] = trim($pval['apTWConsKey']);
}
if (isset($pval['apTWConsSec'])) {
$options[$ii]['twConsSec'] = trim($pval['apTWConsSec']);
}
if (isset($pval['apTWAccToken'])) {
$options[$ii]['twAccToken'] = trim($pval['apTWAccToken']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if (isset($options[$ii]['catSel']) && $options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['riComments'])) {
$options[$ii]['riComments'] = $pval['riComments'];
} else {
$options[$ii]['riComments'] = 0;
}
if (isset($pval['riCommentsM'])) {
$options[$ii]['riCommentsM'] = $pval['riCommentsM'];
} else {
$options[$ii]['riCommentsM'] = 0;
}
if (isset($pval['riCommentsAA'])) {
$options[$ii]['riCommentsAA'] = $pval['riCommentsAA'];
} else {
$options[$ii]['riCommentsAA'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['apTWAccTokenSec'])) {
$options[$ii]['twAccTokenSec'] = trim($pval['apTWAccTokenSec']);
}
if (isset($pval['apTWMsgFrmt'])) {
$options[$ii]['twMsgFormat'] = trim($pval['apTWMsgFrmt']);
}
if (isset($pval['attchImg'])) {
$options[$ii]['attchImg'] = $pval['attchImg'];
} else {
$options[$ii]['attchImg'] = 0;
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例10: setNTSettings
function setNTSettings($post, $options)
{
$code = 'DA';
$lcode = 'da';
foreach ($post as $ii => $pval) {
if (isset($pval['uName']) && $pval['uName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['uName'])) {
$options[$ii]['daUName'] = trim($pval['uName']);
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['uPass'])) {
$options[$ii]['daPass'] = 'n5g9a' . nsx_doEncode($pval['uPass']);
} else {
$options[$ii]['daPass'] = '';
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['daTitleFormat'])) {
$options[$ii]['daTitleFormat'] = trim($pval['daTitleFormat']);
}
if (isset($pval['daTextFormat'])) {
$options[$ii]['daTextFormat'] = trim($pval['daTextFormat']);
}
if (isset($pval['apDoDA'])) {
$options[$ii]['doDA'] = $pval['apDoDA'];
} else {
$options[$ii]['doDA'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例11: setNTSettings
function setNTSettings($post, $options)
{
$code = 'DI';
$lcode = 'di';
foreach ($post as $ii => $pval) {
if (!empty($pval['apDIUName']) && !empty($pval['apDIPass'])) {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apDIUName'])) {
$options[$ii]['diUName'] = trim($pval['apDIUName']);
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apDIPass'])) {
$options[$ii]['diPass'] = 'n5g9a' . nsx_doEncode($pval['apDIPass']);
} else {
$options[$ii]['diPass'] = '';
}
if (isset($pval['apDIAPIKey'])) {
$options[$ii]['diAPIKey'] = trim($pval['apDIAPIKey']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['diInclTags'])) {
$options[$ii]['diInclTags'] = $pval['diInclTags'];
} else {
$options[$ii]['diInclTags'] = 0;
}
if (isset($pval['apDIMsgTFrmt'])) {
$options[$ii]['diMsgTFormat'] = trim($pval['apDIMsgTFrmt']);
}
if (isset($pval['apDIMsgFrmt'])) {
$options[$ii]['diMsgFormat'] = trim($pval['apDIMsgFrmt']);
}
if (isset($pval['apDoDI'])) {
$options[$ii]['doDI'] = $pval['apDoDI'];
} else {
$options[$ii]['doDI'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例12: setNTSettings
function setNTSettings($post, $options)
{
$code = $this->ntInfo['code'];
foreach ($post as $ii => $pval) {
if (isset($pval['apPKConsKey']) && $pval['apPKConsSec'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apPKURL'])) {
$options[$ii]['pkURL'] = trim($pval['apPKURL']);
if (substr($options[$ii]['pkURL'], 0, 4) != 'http') {
$options[$ii]['pkURL'] = 'http://' . $options[$ii]['pkURL'];
}
$pkPgID = $options[$ii]['pkURL'];
if (substr($pkPgID, -1) == '/') {
$pkPgID = substr($pkPgID, 0, -1);
}
$pkPgID = substr(strrchr($pkPgID, "/"), 1);
$options[$ii]['pkPgID'] = $pkPgID;
//echo $fbPgID;
}
if (isset($pval['apDoPK'])) {
$options[$ii]['doPK'] = $pval['apDoPK'];
} else {
$options[$ii]['doPK'] = 0;
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apPKConsKey'])) {
$options[$ii]['pkConsKey'] = trim($pval['apPKConsKey']);
}
if (isset($pval['apPKConsSec'])) {
$options[$ii]['pkConsSec'] = trim($pval['apPKConsSec']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apPKMsgFrmt'])) {
$options[$ii]['pkMsgFormat'] = trim($pval['apPKMsgFrmt']);
}
if (isset($pval['Cat'])) {
$options[$ii]['pkCat'] = $pval['Cat'];
} else {
$options[$ii]['pkCat'] = "";
}
if (isset($pval['attchImg'])) {
$options[$ii]['attchImg'] = $pval['attchImg'];
} else {
$options[$ii]['attchImg'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例13: setNTSettings
function setNTSettings($post, $options)
{
$code = 'FF';
$lcode = 'ff';
foreach ($post as $ii => $pval) {
if (isset($pval['apFFUName']) && $pval['apFFUName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['apFFUName'])) {
$options[$ii]['ffUName'] = trim($pval['apFFUName']);
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apFFPass'])) {
$options[$ii]['ffPass'] = 'n5g9a' . nsx_doEncode($pval['apFFPass']);
} else {
$options[$ii]['ffPass'] = '';
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apFFMsgFrmt'])) {
$options[$ii]['ffMsgFormat'] = trim($pval['apFFMsgFrmt']);
}
if (isset($pval['grpID'])) {
$options[$ii]['grpID'] = trim($pval['grpID']);
}
if (isset($pval['attchImg'])) {
$options[$ii]['attchImg'] = $pval['attchImg'];
} else {
$options[$ii]['attchImg'] = 0;
}
if (isset($pval['apDoFF'])) {
$options[$ii]['doFF'] = $pval['apDoFF'];
} else {
$options[$ii]['doFF'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例14: setNTSettings
function setNTSettings($post, $options)
{
$code = 'SU';
$lcode = 'su';
foreach ($post as $ii => $pval) {
if (isset($pval['apSUUName']) && $pval['apSUUName'] != '') {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
$isUPChanged = isset($pval['apSUPass']) && isset($options[$ii]['suPass']) && 'n5g9a' . nsx_doEncode($pval['apSUPass']) != $options[$ii]['suPass'] || !isset($options[$ii]['suPass']) || (isset($pval['apSUUName']) && isset($options[$ii]['suUName']) && $pval['apSUUName'] != $options[$ii]['suUName'] || !isset($options[$ii]['suUName']));
if ($isUPChanged) {
$options[$ii]['suSvC'] = '';
}
if (isset($pval['apSUUName'])) {
$options[$ii]['suUName'] = trim($pval['apSUUName']);
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['apSUPass'])) {
$options[$ii]['suPass'] = 'n5g9a' . nsx_doEncode($pval['apSUPass']);
} else {
$options[$ii]['suPass'] = '';
}
if (isset($pval['apSUCat'])) {
$options[$ii]['suCat'] = trim($pval['apSUCat']);
}
if (isset($pval['suInclTags'])) {
$options[$ii]['suInclTags'] = $pval['suInclTags'];
} else {
$options[$ii]['suInclTags'] = 0;
}
if (isset($pval['apSUMsgFrmt'])) {
$options[$ii]['suMsgFormat'] = trim($pval['apSUMsgFrmt']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if (!empty($options[$ii]['catSel']) && $options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['apDoSU'])) {
$options[$ii]['doSU'] = $pval['apDoSU'];
} else {
$options[$ii]['doSU'] = 0;
}
if (isset($pval['nsfw'])) {
$options[$ii]['nsfw'] = $pval['nsfw'];
} else {
$options[$ii]['nsfw'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}
示例15: setNTSettings
function setNTSettings($post, $options)
{
$code = 'KT';
$lcode = 'kt';
foreach ($post as $ii => $pval) {
if (!empty($pval['uName']) && !empty($pval['uPass'])) {
if (!isset($options[$ii])) {
$options[$ii] = array();
}
if (isset($pval['uName'])) {
$options[$ii]['uName'] = trim($pval['uName']);
}
if (isset($pval['nName'])) {
$options[$ii]['nName'] = trim($pval['nName']);
}
if (isset($pval['uPass'])) {
$options[$ii]['uPass'] = 'n5g9a' . nsx_doEncode($pval['uPass']);
} else {
$options[$ii]['uPass'] = '';
}
if (isset($pval['list'])) {
$options[$ii]['list'] = trim($pval['list']);
}
if (isset($pval['catSel'])) {
$options[$ii]['catSel'] = trim($pval['catSel']);
} else {
$options[$ii]['catSel'] = 0;
}
if ($options[$ii]['catSel'] == '1' && trim($pval['catSelEd']) != '') {
$options[$ii]['catSelEd'] = trim($pval['catSelEd']);
} else {
$options[$ii]['catSelEd'] = '';
}
if (isset($pval['msgFrmt'])) {
$options[$ii]['msgFrmt'] = trim($pval['msgFrmt']);
}
if (isset($pval['msgTFrmt'])) {
$options[$ii]['msgTFrmt'] = trim($pval['msgTFrmt']);
}
if (isset($pval['apDoKT'])) {
$options[$ii]['doKT'] = $pval['apDoKT'];
} else {
$options[$ii]['doKT'] = 0;
}
$options[$ii] = nxs_adjRpst($options[$ii], $pval);
if (isset($pval['delayDays'])) {
$options[$ii]['nDays'] = trim($pval['delayDays']);
}
if (isset($pval['delayHrs'])) {
$options[$ii]['nHrs'] = trim($pval['delayHrs']);
}
if (isset($pval['delayMin'])) {
$options[$ii]['nMin'] = trim($pval['delayMin']);
}
if (isset($pval['qTLng'])) {
$options[$ii]['qTLng'] = trim($pval['qTLng']);
}
} elseif (count($pval) == 1) {
if (isset($pval['apDo' . $code])) {
$options[$ii]['do' . $code] = $pval['apDo' . $code];
} else {
$options[$ii]['do' . $code] = 0;
}
}
}
return $options;
}