Пример #1
0
 function init($sFieldName, $sContent, $sWidth = '800px', $sHeight = '300px', $sToolbarMode = 'full', $sTheme = 'silver')
 {
     switch ($this->type) {
         case 'FCK':
             if (!$this->isSecond) {
                 require_once PATH_CORE . 'external/wysiwyg/FCKeditor2/fckeditor.php';
                 $this->isSecond = true;
             }
             $oFCKeditor = new FCKeditor($sFieldName);
             $oFCKeditor->BasePath = '../bff/external/wysiwyg/FCKeditor2/';
             if ($sWidth) {
                 $oFCKeditor->Width = $sWidth;
             }
             if ($sHeight) {
                 $oFCKeditor->Height = $sHeight;
             }
             $sToolbarMode = strtolower($sToolbarMode);
             switch ($sToolbarMode) {
                 case 'basic':
                     $oFCKeditor->ToolbarSet = 'Basic';
                     break;
                 case 'mini':
                     $oFCKeditor->ToolbarSet = 'Mini';
                     break;
                 case 'medium':
                     $oFCKeditor->ToolbarSet = 'Medium';
                     break;
                 case 'average':
                     $oFCKeditor->ToolbarSet = 'Average';
                     break;
                 default:
                     $oFCKeditor->ToolbarSet = 'Default';
                     break;
             }
             $oFCKeditor->Config['SkinPath'] = "/bff/external/wysiwyg/FCKeditor2/editor/skins/{$sTheme}/";
             $oFCKeditor->Value = $sContent;
             return $oFCKeditor->CreateHTML();
             break;
         case 'TEXTAREA':
             return '<textarea name="' . $sFieldName . '" style="width:' . $sWidth . ';height:' . $sHeight . '">' . $sContent . '</textarea>';
             break;
     }
 }
function singleupload()
{
    require_once XOOPS_ROOT_PATH . '/class/template.php';
    if (!isset($xoopsTpl)) {
        $xoopsTpl = new XoopsTpl();
    }
    global $xoopsDB, $xoopsModuleConfig, $xoopsUser, $xoopsModule;
    $xoopsTpl->assign('uploadmax', $xoopsModuleConfig['debasermaxsize']);
    debaseradminMenu(4, _AM_DEBASER_SINGLEUP);
    echo "<br />";
    $fileform = new XoopsThemeForm(_MD_DEBASER_ADDMPEG, 'extfile', xoops_getenv('PHP_SELF'));
    if ($xoopsModuleConfig['debaserupsel'] == 1 || $xoopsModuleConfig['debaserupsel'] == 3) {
        $fileform->setExtra('enctype="multipart/form-data"');
    }
    $xfid = isset($_POST['xfid']) ? $_POST['xfid'] : 0;
    $member_handler =& xoops_gethandler('member');
    $group_list =& $member_handler->getGroupList();
    $gperm_handler =& xoops_gethandler('groupperm');
    $groups = $gperm_handler->getGroupIds('DebaserFilePerm', $xfid, $xoopsModule->getVar('mid'));
    $groups = $groups;
    if ($xoopsModuleConfig['usefileperm'] == 1) {
        $fileform->addElement(new XoopsFormSelectGroup(_AM_DEBASER_FCATEGORY_GROUPPROMPT, "groups", true, $groups, 5, true));
    }
    if ($xoopsModuleConfig['debaserupsel'] == 1 || $xoopsModuleConfig['debaserupsel'] == 3) {
        $fileform->addElement(new XoopsFormFile(_AM_DEBASER_FILE, 'mp3file', 0));
    }
    if ($xoopsModuleConfig['debaserupsel'] == 2 || $xoopsModuleConfig['debaserupsel'] == 3) {
        $formlink = new XoopsFormText(_MD_DEBASER_EXTLINK, 'link', 50, 255);
        $fileform->addElement($formlink);
    }
    $formtitle = new XoopsFormText(_MD_DEBASER_TITLE, 'title', 50, 100);
    $fileform->addElement($formtitle);
    //$formalbum = new XoopsFormText(_MD_DEBASER_ALBUM, 'album', 50, 50);
    //$fileform->addElement($formalbum);
    //$formyear = new XoopsFormText(_MD_DEBASER_YEAR, 'year', 4, 4);
    //$fileform->addElement($formyear);
    include_once XOOPS_ROOT_PATH . '/fck/fckeditor.php';
    $oFCKeditor = new FCKeditor('comment');
    $oFCKeditor->Value = '';
    $oFCKeditor->Height = '200';
    $fileform->addElement(new XoopsFormLabel(_MD_DEBASER_COMMENT, $oFCKeditor->CreateHTML()));
    //$formcomment = new XoopsFormDhtmlTextArea(_MD_DEBASER_COMMENT, 'comment', '', 10, 50);
    //$fileform->addElement($formcomment);
    if ($xoopsModuleConfig['autogenresingle'] != 1) {
        $mytreechose = new debaserTree($xoopsDB->prefix("debaser_genre"), 'genreid', 'subgenreid');
        ob_start();
        $mytreechose->debaserSelBox("genretitle", "genretitle", 0, 1, "genrefrom");
        $formgenre = new XoopsFormLabel(_MD_DEBASER_GENRE, ob_get_contents());
        ob_end_clean();
        $fileform->addElement($formgenre, true);
    }
    //$formtrack = new XoopsFormText(_MD_DEBASER_TRACK, 'track', 3, 3);
    //$fileform->addElement($formtrack);
    //$formartist = new XoopsFormText(_MD_DEBASER_TAMANHO, 'artist', 15, 50);
    //$fileform->addElement($formartist, true);
    $formalbum = new XoopsFormText(_MD_DEBASER_TAMANHO, 'album', 15, 50);
    $fileform->addElement($formalbum, true);
    $formlength = new XoopsFormText(_MD_DEBASER_LENGTH, 'length', 5, 5);
    $fileform->addElement($formlength, true);
    //$formbitrate = new XoopsFormText(_MD_DEBASER_BITRATE, 'bitrate', 3, 3);
    //$fileform->addElement($formbitrate);
    //$formfrequence = new XoopsFormText(_MD_DEBASER_FREQUENCY, 'frequence', 5, 5);
    //$fileform->addElement($formfrequence);
    $formweight = new XoopsFormText(_AM_DEBASER_WEIGHT, 'weight', 4, 4, 0);
    $fileform->addElement($formweight);
    $op_hidden = new XoopsFormHidden('op', 'extfile');
    $fileform->addElement($op_hidden);
    $submit_button = new XoopsFormButton("", "filesubmit", _SUBMIT, "button");
    $submit_button->setExtra("onclick=\"if(document.extfile.genrefrom.options[document.extfile.genrefrom.selectedIndex].value=='0') alert('Selecione categoria'); else submit();\"");
    $fileform->addElement($submit_button);
    $xoopsTpl->assign('extfileform', $fileform->render());
    $xoopsTpl->display('db:debaser_amupload.html');
}
    $formlink = new XoopsFormText(_MD_DEBASER_EXTLINK, 'link', 50, 255);
    $fileform->addElement($formlink);
}
$formartist = new XoopsFormText(_MD_DEBASER_ARTIST, 'artist', 50, 50);
$fileform->addElement($formartist);
$formtitle = new XoopsFormText(_MD_DEBASER_TITLE, 'title', 50, 50);
$fileform->addElement($formtitle);
$formalbum = new XoopsFormText(_MD_DEBASER_ALBUM, 'album', 50, 50);
$fileform->addElement($formalbum);
$formyear = new XoopsFormText(_MD_DEBASER_YEAR, 'year', 4, 4);
$fileform->addElement($formyear);
include_once XOOPS_ROOT_PATH . '/fck/fckeditor.php';
$oFCKeditor = new FCKeditor('comment');
$oFCKeditor->Value = '';
$oFCKeditor->Height = '200';
$fileform->addElement(new XoopsFormLabel(_MD_DEBASER_COMMENT, $oFCKeditor->CreateHTML()));
//$formcomment = new XoopsFormDhtmlTextArea(_MD_DEBASER_COMMENT, 'comment', '', 10, 50);
//$fileform->addElement($formcomment);
if ($xoopsModuleConfig['autogenresingle'] != 1) {
    $mytreechose = new debaserTree($xoopsDB->prefix("debaser_genre"), 'genreid', 'subgenreid');
    ob_start();
    $mytreechose->debaserSelBox("genretitle", "genretitle", 0, 1, "genrefrom");
    $formgenre = new XoopsFormLabel(_MD_DEBASER_GENRE, ob_get_contents());
    ob_end_clean();
    $fileform->addElement($formgenre);
}
$formtrack = new XoopsFormText(_MD_DEBASER_TRACK, 'track', 3, 3);
$fileform->addElement($formtrack);
$formlength = new XoopsFormText(_MD_DEBASER_LENGTH, 'length', 5, 5);
$fileform->addElement($formlength);
$formbitrate = new XoopsFormText(_MD_DEBASER_BITRATE, 'bitrate', 3, 3);
Пример #4
0
 public function HTMLEditor($name, $text = "", $height = "")
 {
     if ($this->IsIGB()) {
         echo "<textarea name='" . $name . "' rows='20' cols='60'>";
         echo $text;
         echo "</textarea>";
     } else {
         $oFCKeditor = new FCKeditor($name);
         $oFCKeditor->BasePath = "http://" . $_SERVER["SERVER_NAME"] . "/fckeditor/";
         $oFCKeditor->ToolbarSet = 'Full';
         $oFCKeditor->Value = $text;
         if (!empty($height)) {
             $oFCKeditor->Height = $height;
         }
         return $oFCKeditor->CreateHTML();
     }
 }
 /**
  * Generate and return HTML code for editor
  * 
  * @access public
  * @return string HTML code element
  */
 function toHtml()
 {
     if ($this->_flagFrozen) {
         return $this->getFrozenHtml();
     } else {
         /*
          * Create FCK editor
          */
         // Load FCKeditor class
         require_once 'fckeditor.php';
         // Create instance
         $oFCKeditor = new FCKeditor($this->getAttribute('name'));
         // Set parameters
         if ($this->_sFckBasePath !== NULL) {
             $oFCKeditor->BasePath = $this->_sFckBasePath;
         }
         if ($this->_sToolbarSet !== NULL) {
             $oFCKeditor->ToolbarSet = $this->_sToolbarSet;
         }
         if ($this->_sWidth !== NULL) {
             $oFCKeditor->Width = $this->_sWidth;
         }
         if ($this->_sHeight !== NULL) {
             $oFCKeditor->Height = $this->_sHeight;
         }
         if ($this->_aFckConfigProps !== NULL) {
             $oFCKeditor->Config = $this->_aFckConfigProps;
             // If a relative path is given, then precede it with the editor's basepath (like in fckconfig.js)'
             if (isset($oFCKeditor->Config['SkinPath']) && substr($oFCKeditor->Config['SkinPath'], 0, 1) != '/') {
                 $oFCKeditor->Config['SkinPath'] = $this->_sFckBasePath . $oFCKeditor->Config['SkinPath'];
             }
             if (isset($oFCKeditor->Config['EditorAreaCSS']) && substr($oFCKeditor->Config['EditorAreaCSS'], 0, 1) != '/') {
                 $oFCKeditor->Config['EditorAreaCSS'] = $this->_sFckBasePath . $oFCKeditor->Config['EditorAreaCSS'];
             }
         }
         $oFCKeditor->Value = $this->getValue();
         // Generate the HTML code for the editor
         $sFCKCode = $oFCKeditor->CreateHTML();
         // Destroy FCKeditor object
         unset($oFCKeditor);
         /*
          * return code
          */
         return $this->_gettabs() . $sFCKCode;
     }
 }
Пример #6
0
 function draw()
 {
     global $fsecuence;
     $errors = errorobject::errorParams();
     // return "<tr class=\"form_row".($fsecuence%2==0 ? "_odd":"_even")."\"><td class=\"form_row_caption\"><span class=\"form_caption\"  ".($errors[$this->name] ? "style=\"color: red;\"" : "" ).">".$this->caption."</span><br />".$this->description."</td></tr><tr><td class=\"form_row_field\"><textarea name=\"".$this->name."\"  ".($errors[$this->name] ? "style=\"border: solid 2px red;margin:-2px;\"" : "" ).">".$this->value."</textarea></td></tr>";
     $oFCKeditor = new FCKeditor($this->name);
     $oFCKeditor->BasePath = '/FCKeditor/';
     $oFCKeditor->Value = $this->value;
     $oFCKeditor->Height = $this->height;
     $oFCKeditor->Width = $this->width;
     $out .= $oFCKeditor->CreateHTML();
     return "<tr class=\"form_row" . ($fsecuence % 2 == 0 ? "_odd" : "_even") . "\"><td colspan=\"2\" class=\"form_row_field\">" . $out . "</td></tr>";
 }
Пример #7
0
 /**
  * this static function is a wrapper for fckEditor to create some reuseable layouts
  *
  * @param string $_name name and id of the input-field
  * @param string $_content of the tinymce (will be run through htmlspecialchars !!!), default ''
  * @param string $_mode display mode of the tinymce editor can be: simple, extended or advanced
  * @param array  $_options (toolbar_expanded true/false)
  * @param string $_height='400px'
  * @param string $_width='100%'
  * @param string $base_href='' if passed activates the browser for image at absolute path passed
  * @return string the necessary html for the textarea
  */
 static function fckEditor($_name, $_content, $_mode, $_options = array('toolbar_expanded' => 'true'), $_height = '400px', $_width = '100%', $_base_href = '')
 {
     if (!self::htmlarea_availible() || $_mode == 'ascii') {
         return self::textarea($_name, $_content, 'style="width: ' . $_width . '; height: ' . $_height . ';"');
     }
     include_once PHPGW_INCLUDE_ROOT . "/felamimail/js/fckeditor/fckeditor.php";
     $oFCKeditor = new FCKeditor($_name);
     $oFCKeditor->BasePath = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/felamimail/js/fckeditor/';
     $oFCKeditor->Config['CustomConfigurationsPath'] = $oFCKeditor->BasePath . 'fckeditor.egwconfig.js';
     $oFCKeditor->Value = $_content;
     $oFCKeditor->Width = str_replace('px', '', $_width);
     // FCK adds px if width contains no %
     $oFCKeditor->Height = str_replace('px', '', $_height);
     // by default switch all browsers and uploads off
     $oFCKeditor->Config['LinkBrowser'] = $oFCKeditor->Config['LinkUpload'] = false;
     $oFCKeditor->Config['FlashBrowser'] = $oFCKeditor->Config['FlashUpload'] = false;
     $oFCKeditor->Config['ImageBrowser'] = $oFCKeditor->Config['ImageUpload'] = false;
     // Activate the image browser+upload, if $_base_href exists and is browsable by the webserver
     if ($_base_href && is_dir($_SERVER['DOCUMENT_ROOT'] . $_base_href) && file_exists($_SERVER['DOCUMENT_ROOT'] . $_base_href . '/.')) {
         // Only images for now
         if (substr($_base_href, -1) != '/') {
             $_base_href .= '/';
         }
         // store the path and application in the session, to make sure it can't be called with arbitrary pathes
         $GLOBALS['phpgw']->session->appsession($_base_href, 'FCKeditor', $GLOBALS['phpgw_info']['flags']['currentapp']);
         $oFCKeditor->Config['ImageBrowserURL'] = $oFCKeditor->BasePath . 'editor/filemanager/browser/default/browser.html?ServerPath=' . $_base_href . '&Type=Image&Connector=' . $oFCKeditor->BasePath . 'editor/filemanager/connectors/php/connector.php';
         $oFCKeditor->Config['ImageBrowser'] = true;
         $oFCKeditor->Config['ImageUpload'] = is_writable($_SERVER['DOCUMENT_ROOT'] . $_base_href);
     }
     // By default the editor start expanded
     if ($_options['toolbar_expanded'] == 'false') {
         $oFCKeditor->Config['ToolbarStartExpanded'] = $_options['toolbar_expanded'];
     }
     // switching the encoding as html entities off, as we correctly handle charsets and it messes up the wiki totally
     $oFCKeditor->Config['ProcessHTMLEntities'] = false;
     // Now setting the admin settings
     $spell = '';
     if (isset($GLOBALS['phpgw_info']['server']['enabled_spellcheck'])) {
         $spell = '_spellcheck';
         $oFCKeditor->Config['SpellChecker'] = 'SpellerPages';
         $oFCKeditor->Config['SpellerPagesServerScript'] = 'server-scripts/spellchecker.php?enabled=1';
         if (isset($GLOBALS['phpgw_info']['server']['aspell_path'])) {
             $oFCKeditor->Config['SpellerPagesServerScript'] .= '&aspell_path=' . $GLOBALS['phpgw_info']['server']['aspell_path'];
         }
         if (isset($GLOBALS['phpgw_info']['user']['preferences']['common']['spellchecker_lang'])) {
             $oFCKeditor->Config['SpellerPagesServerScript'] .= '&spellchecker_lang=' . $GLOBALS['phpgw_info']['user']['preferences']['common']['spellchecker_lang'];
         } else {
             $oFCKeditor->Config['SpellerPagesServerScript'] .= '&spellchecker_lang=' . $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];
         }
         $oFCKeditor->Config['FirefoxSpellChecker'] = false;
     }
     // Now setting the user preferences
     if (isset($GLOBALS['phpgw_info']['user']['preferences']['common']['rte_enter_mode'])) {
         $oFCKeditor->Config['EnterMode'] = $GLOBALS['phpgw_info']['user']['preferences']['common']['rte_enter_mode'];
     }
     if (isset($GLOBALS['phpgw_info']['user']['preferences']['common']['rte_skin'])) {
         $oFCKeditor->Config['SkinPath'] = $oFCKeditor->BasePath . 'editor/skins/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['rte_skin'] . '/';
     }
     switch ($_mode) {
         case 'simple':
             $oFCKeditor->ToolbarSet = 'egw_simple' . $spell;
             $oFCKeditor->Config['ContextMenu'] = false;
             break;
         default:
         case 'extended':
             $oFCKeditor->ToolbarSet = 'egw_extended' . $spell;
             break;
         case 'advanced':
             $oFCKeditor->ToolbarSet = 'egw_advanced' . $spell;
             break;
     }
     return $oFCKeditor->CreateHTML();
 }
function approve()
{
    require_once XOOPS_ROOT_PATH . '/class/template.php';
    if (!isset($xoopsTpl)) {
        $xoopsTpl = new XoopsTpl();
    }
    global $xoopsDB, $genrelist, $xoopsModule, $xoopsModuleConfig;
    $filelist = array();
    $sql = "\r\n\tSELECT\r\n\td.xfid, d.filename, d.artist, d.title, d.album, d.year, d.addinfo, d.track, d.genre, d.length, d.link, d.bitrate, d.frequence, d.approved, d.fileext, d.weight, t.genreid, t.genretitle\r\n\tFROM " . $xoopsDB->prefix('debaser_files') . " d, " . $xoopsDB->prefix('debaser_genre') . " t\r\n\tWHERE t.genretitle=d.genre AND d.approved = 0\r\n\tORDER BY d.artist ASC ";
    $result = $xoopsDB->query($sql);
    $hasitems = $xoopsDB->getRowsNum($result);
    if ($hasitems > 0) {
        $i = 0;
        while (list($xfid, $filename, $artist, $title, $album, $year, $addinfo, $track, $genre, $length, $link, $bitrate, $frequence, $approved, $fileext, $weight, $genreid, $genretitle) = $xoopsDB->fetchRow($result)) {
            $i++;
            $edform = new XoopsThemeForm(_AM_DEBASER_EDITMPEG, 'approveform', xoops_getenv('PHP_SELF'));
            $member_handler =& xoops_gethandler('member');
            $group_list =& $member_handler->getGroupList();
            $gperm_handler =& xoops_gethandler('groupperm');
            $groups = $gperm_handler->getGroupIds('DebaserFilePerm', $xfid, $xoopsModule->getVar('mid'));
            $groups = $groups;
            if ($xoopsModuleConfig['usefileperm'] == 1) {
                $edform->addElement(new XoopsFormSelectGroup(_AM_DEBASER_FCATEGORY_GROUPPROMPT, "groups", true, $groups, 5, true));
            }
            $create_tray = new XoopsFormElementTray('', '');
            $create_tray->addElement(new XoopsFormHidden('op', 'deletesong'));
            $create_tray->addElement(new XoopsFormHidden('mpegid', $xfid));
            $create_tray->addElement(new XoopsFormHidden('delfile', $filename));
            $butt_play = new XoopsFormButton('', '', _AM_DEBASER_PLAY, 'button');
            $butt_play->setExtra('onclick="javascript:openWithSelfMain(\'' . XOOPS_URL . '/modules/debaser/player.php?id=' . $xfid . '\',\'player\',10,10)"');
            $create_tray->addElement($butt_play);
            $butt_delete = new XoopsFormButton('', '', _DELETE, 'submit');
            $butt_delete->setExtra('onclick="this.form.elements.op.value=\'deletesong\'"');
            $create_tray->addElement($butt_delete);
            $save_tray = new XoopsFormElementTray('', '');
            $butt_save = new XoopsFormButton('', '', _SUBMIT, 'submit');
            $butt_save->setExtra('onclick="this.form.elements.op.value=\'saveapprove\'"');
            $save_tray->addElement($butt_save);
            $mytreefileext = new debaserTree($xoopsDB->prefix("debaser_mimetypes"), 'mime_ext', 'mime_ext');
            ob_start();
            $mytreefileext->debaserSelBox("mime_ext", "mime_ext", $fileext, 0, "fileext");
            $formfileext = new XoopsFormLabel(_MD_DEBASER_GENRE, ob_get_contents());
            ob_end_clean();
            $formlink = new XoopsFormText(_MD_DEBASER_EXTLINK, 'link', 50, 255, $link);
            //$formartist = new XoopsFormText(_AM_DEBASER_ARTIST, 'artist', 50, 50, $artist);
            $formtitle = new XoopsFormText(_AM_DEBASER_TITLE, 'title', 50, 100, $title);
            $formalbum = new XoopsFormText(_MD_DEBASER_TAMANHO, 'album', 15, 50, $album);
            //$formyear = new XoopsFormText(_AM_DEBASER_YEAR, 'year', 4, 4, $year);
            //$formtrack = new XoopsFormText(_AM_DEBASER_TRACK, 'track', 3, 3, $track);
            $mytreechose = new debaserTree($xoopsDB->prefix("debaser_genre"), 'genreid', 'subgenreid');
            ob_start();
            $mytreechose->debaserSelBox("genretitle", "genretitle", $genreid, 0, "genrefrom");
            $formgenre = new XoopsFormLabel(_MD_DEBASER_GENRE, ob_get_contents());
            ob_end_clean();
            $formlength = new XoopsFormText(_AM_DEBASER_LENGTH, 'length', 5, 5, $length);
            //$formbitrate = new XoopsFormText(_MD_DEBASER_BITRATE, 'bitrate', 3, 3, $bitrate);
            //$formfrequence = new XoopsFormText(_MD_DEBASER_FREQUENCY, 'frequence', 5, 5, $frequence);
            $formweight = new XoopsFormText(_AM_DEBASER_WEIGHT, 'weight', 4, 4, $weight);
            //$formweight->setDescription(_AM_DEBASER_WEIGHT_DSC);
            $formapproved = new XoopsFormRadioYN(_AM_DEBASER_APPROVE2, 'approved', $approved, _YES, _NO);
            $edform->addElement($create_tray);
            $edform->addElement($formfileext);
            $edform->addElement($formlink);
            $edform->addElement($formtitle);
            //$edform->addElement($formalbum);
            //$edform->addElement($formyear);
            $addinfo = str_replace("\\'", "'", $addinfo);
            include_once XOOPS_ROOT_PATH . '/fck/fckeditor.php';
            $oFCKeditor = new FCKeditor('addinfo' . $i);
            $oFCKeditor->Value = $addinfo;
            $oFCKeditor->Height = '200';
            $edform->addElement(new XoopsFormLabel(_AM_DEBASER_COMMENT, $oFCKeditor->CreateHTML()));
            //Instância do FCK número
            $edform->addElement(new XoopsFormHidden('i', $i));
            $edform->addElement($formgenre);
            //$edform->addElement($formtrack);
            $edform->addElement($formalbum);
            $edform->addElement($formlength);
            //$edform->addElement($formbitrate);
            //$edform->addElement($formfrequence);
            $edform->addElement($formweight);
            $edform->addElement($formapproved);
            $edform->addElement($save_tray);
            $xoopsTpl->append('filelist', $edform->render());
        }
        $xoopsTpl->assign('adminmenu', debaseradminMenu(6, _AM_DEBASER_APPROVE));
        $xoopsTpl->display('db:debaser_amapprove.html');
    } else {
        redirect_header('index.php', 1, _AM_DEBASER_NOAPPROVE);
    }
}