/** * Apply the filter-plugins on a given input * @param string Text to filter */ function applyFilterPlugins($text) { $objectParser = new ObjectParser(); $text = $objectParser->parse($text); $plugins = createDBCArray("modules", "MODULE_ID", "MODULE_TYPE_ID=4"); for ($i = 0; $i < count($plugins); $i++) { includePGNSources(); $plugin = createPGNRef($plugins[$i], 0); $text = $plugin->parseText($text); } return $text; }
/** * Relaunches all pages having the same spm. * Launches only pages, which are already launched. * * @param integer ID of the sitepage-master */ function relaunchPagesBySPM($spm) { global $c; ini_set("max_execution_time", $c["timeout"]); $launchArray = createDBCArray("sitepage", "SPID", "SPM_ID = $spm AND DELETED=0 AND CLNID IS NOT NULL AND CLNID<>0"); $variations = createDBCArray("variations", "VARIATION_ID", "DELETED=0"); includePGNSources(); for ($i = 0; $i < count($launchArray); $i++) { for ($j = 0; $j < count($variations); $j++) { if (SPVarExists($launchArray[$i], $variations[$j])) { if (isSPVarLive($launchArray[$i], $variations[$j])) { launchSitepage($launchArray[$i], 10, $variations[$j]); } } } } }
* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * N/X is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with N/X; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA **********************************************************************/ require_once "../../config.inc.php"; require_once "purge_lib.inc.php"; includePGNSources(); $auth = new auth("PURGE_DATABASE"); $page = new page("Purge"); if (!isset($go)) $go = "start"; $page->tipp = $lang->get("help_purge", "Deletes unnecessary information from the database."); $form = new CommitForm($lang->get("purge"), "i_purge.gif"); $form->addToTopText($lang->get("purge_mes")); $expiredHandler = new ActionHandler("expired"); $expiredHandler->addFNCAction("purgeExpired"); $form->addCheck("expired", $lang->get("purge_expired"), $expiredHandler);