} else { x1.style.display='none'; x2.style.display='none'; __CHRow(x3); } } function __NewDocTempl(id) { window.location='/bitrix/admin/fileman_html_edit.php?lang=<?php echo LANG; ?> &site=<?php echo Urlencode($site); ?> &path=<?php echo UrlEncode($path); ?> &new=y&template='+id; new_doc_list.PopupHide(); } BX.ready(function() { BX.addCustomEvent(document.forms.ffilemanedit, 'onAutoSavePrepare', function (ob, handler) { BX.bind(document.forms.ffilemanedit.propeditmore, 'click', handler); }); BX.addCustomEvent(document.forms.ffilemanedit, 'onAutoSaveRestore', function (ob, data)
"> <input type="hidden" name="extended" value="Y"> </table> <?php } ?> </td> </tr> <?php $tabControl->EndTab(); ?> <?php $tabControl->Buttons(array("disabled" => false, "back_url" => strlen($back_url) > 0 && strpos($back_url, "/bitrix/admin/fileman_menu_edit.php") !== 0 ? htmlspecialcharsex($back_url) : "/bitrix/admin/fileman_admin.php?" . $addUrl . "&site=" . Urlencode($site) . "&path=" . UrlEncode($arParsedPath["FULL"]))); ?> <?php $tabControl->End(); ?> </form> <?php } echo BeginNote(); ?> <span class="required"><sup>1</sup></span> - <?php echo GetMessage("MAIN_PERIOD_NOTE"); echo EndNote();
public function upload_cms_data($cms_data) { $this->_log('upload cms data strat!'); $cms_data = Urlencode($cms_data); $cms_data = 'id=' . $this->_CountryConfig[0] . '&belong_tag=&belong_id=' . $this->_CountryConfig[1] . '&action=update&root=' . $cms_data; $result = $this->curl_post($this->_res, $cms_data); if ($result == '') { $this->_log('upload cms data failed ! return :' . $result); } $this->_log('upload cms data end!'); }
?> "> <input type="hidden" name="extended" value="Y"> </table> <?endif//if($bSimple):?> </td> </tr> <?$tabControl->EndTab();?> <? $tabControl->Buttons( array( "disabled" => false, "back_url" => ((strlen($back_url)>0 && strpos($back_url, "/freetrix/admin/fileman_menu_edit.php")!==0) ? htmlspecialcharsex($back_url) : "/freetrix/admin/fileman_admin.php?".$addUrl."&site=".Urlencode($site)."&path=".UrlEncode($arParsedPath["FULL"])) ) ); ?> <?$tabControl->End();?> </form> <?endif?> <?php echo BeginNote(); ?> <span class="required"><sup>1</sup></span> - <?php echo GetMessage("MAIN_PERIOD_NOTE"); echo EndNote();
} } } if (strlen($sectionname) > 0) { if (COption::GetOptionString($module_id, "log_page", "Y") == "Y") { $res_log['path'] = substr($pathto, 1); CEventLog::Log("content", "SECTION_ADD", "fileman", "", serialize($res_log)); } $APPLICATION->SaveFileContent($DOC_ROOT . $pathto . "/.section.php", "<?\n\$sSectionName=\"" . CFileMan::EscapePHPString($sectionname) . "\";\n?>"); } if ($e = $APPLICATION->GetException()) { $strNotice = $e->msg; } else { if ($USER->CanDoFileOperation('fm_create_new_file', $arPath) && $USER->CanDoOperation('fileman_admin_files') && $mkindex == "Y") { if ($toedit == "Y") { LocalRedirect("/bitrix/admin/fileman_html_edit.php?" . $addUrl . "&site=" . $site . "&template=" . Urlencode($template) . "&path=" . UrlEncode($pathto) . "&filename=index.php&new=Y" . (strlen($back_url) <= 0 ? "" : "&back_url=" . UrlEncode($back_url)) . (strlen($gotonewpage) <= 0 ? "" : "&gotonewpage=" . UrlEncode($gotonewpage)) . (strlen($backnewurl) <= 0 ? "" : "&backnewurl=" . UrlEncode($backnewurl))); } else { $APPLICATION->SaveFileContent($DOC_ROOT . $pathto . "/index.php", CFileman::GetTemplateContent($template)); } } } if ($e = $APPLICATION->GetException()) { $strNotice = $e->msg; } elseif (strlen($apply) <= 0 && $strNotice == '') { if (strlen($back_url) > 0) { LocalRedirect("/" . ltrim($back_url, "/")); } else { $arPathtoParsed = CFileMan::ParsePath(array($site, $pathto), false, false, "", $logical == "Y"); LocalRedirect("/bitrix/admin/fileman_admin.php?" . $addUrl . "&site=" . $site . "&path=" . UrlEncode($arPathtoParsed["PREV"])); } }
function FriendsAdd($user_id, $text = "", $token) { $link = "https://api.vk.com/method/friends.add?&user_id=" . $user_id . "&text=" . Urlencode($text) . "&access_token=" . $token; $res = $this->send($link); $response = strpos($res, 'response'); if ($response !== FALSE) { return 'ok'; } else { return 'error'; } }
BX.cleanNode(applyInp, true); if (top.strWarning && top.strWarning.length > 0) { alert(top.strWarning); } else { var filename = BX('bxfm_filename'); if (filename) { document.location.href = '<?php $APPLICATION->getCurPage(); ?> ?<?php echo CUtil::JSEscape($addUrl . "&site=" . Urlencode($site) . "&path=" . UrlEncode($path . "/")); ?> '+encodeURIComponent(filename.value)+'<?php if ($full_src == "Y") { echo "&full_src=Y"; } ?> '; } } BX.focus(BX('bx-filesrc')); }); return BX.PreventDefault(e || window.event);