function publishlinks() { $ret = ''; foreach (explode(';', tr('links.urls')) as $linkURL) { $linkURL = explode(':', $linkURL); $ret .= publishPage($linkURL[1], false); } return $ret; }
function publish() { $retVal = ''; // this pages are available in default language only $files = explode(';', tr('commercials.urls:admin')); foreach ($files as $fName) { $retVal .= publishPage($fName, false); } return $retVal; }
<?php if (!ucan('page_edit:' . $_PEFI->route->lang)) { redirect_to_login($_PEFI->route->page); } include_once "{$_PEFI->libPath}/pefi_fileshelper.php"; include_once "{$_PEFI->libPath}/pefi_Logger.class.php"; $logger = $_PEFI->logger; $todo = $_PEFI->todo; if (strpos($todo, 'texts') === 0) { include 'texts.php'; } elseif ($todo == 'publishpage') { $_PEFI->view->content = publishPage($_REQUEST['page'], isset($_REQUEST['publishimages'])); } elseif (strpos($todo, 'assets') === 0) { include 'assets.php'; } elseif (strpos($todo, 'metadata') === 0) { include 'metadata.php'; } else { $_PEFI->view->content = "No such action:{$_PEFI->action} with todo:{$_PEFI->todo}"; }