Example #1
0
 $text .= "<select name='userclass_editclass' class='tbox'>" . $e_userclass->vetted_tree('userclass_editclass', array($e_userclass, 'select'), $userclass_editclass, 'nobody,public,main,admin,classes,matchclass,member, no-excludes') . '</select>';
 $text .= "<div class='field-help'>" . UCSLAN_32 . "</div></td>\n\t   \t</tr>\n\t\t";
 // List of class checkboxes for grouping
 $text .= "\n\t\t<tr id='userclass_type_groups'" . (UC_TYPE_STD == $userclass_type ? " style='display:none'" : "") . ">\n\t\t<td>" . UCSLAN_83 . "</td>\n\t\t<td>";
 $text .= $e_userclass->vetted_tree('group_classes_select', array($e_userclass, 'checkbox'), $userclass_groupclass, "classes,matchclass");
 $text .= "<div class='field-help'>" . UCSLAN_89 . "</div></td>\n\t  \t</tr>\n\t\t";
 $text .= "\n\t\t<tr>\n\t\t<td>" . UCSLAN_34 . "</td>\n\t\t<td>";
 $text .= "<select name='userclass_visibility' class='tbox'>" . $e_userclass->vetted_tree('userclass_visibility', array($e_userclass, 'select'), $userclass_visibility, 'main,admin,classes,matchclass,public,member,nobody') . '</select>';
 $text .= "<div class='field-help'>" . UCSLAN_33 . "</div></td>\n\t \t</tr>\n\t\t";
 $text .= "\n\t\t<tr>\n\t\t<td>" . UCSLAN_35 . "</td>\n\t\t<td>";
 $text .= "<select name='userclass_parent' class='tbox'>" . $e_userclass->vetted_tree('userclass_parent', array($e_userclass, 'select'), $userclass_parent, 'main,admin,nobody,public,classes,matchclass,member, no-excludes') . '</select>';
 //		.r_userclass("userclass_parent", $userclass_parent, "off", "admin,classes,matchclass,public,member").
 $text .= "<div class='field-help'>" . UCSLAN_36 . "</div></td>\n\t\t</tr></table>\n\t\t";
 $text .= "\n\t\t<div class='buttons-bar center'>";
 if ($params == 'edit') {
     $text .= $frm->admin_button('createclass', UCSLAN_14, 'create');
     $text .= $frm->admin_button('updatecancel', LAN_CANCEL, 'cancel');
     //	$text .= "<input class='btn' type='submit' id='createclass' name='createclass' value='".UCSLAN_14."' />";
     //	$text .= "&nbsp;&nbsp;<input class='btn' type='submit' id='updatecancel' name='updatecancel' value='".LAN_CANCEL."' />";
     $text .= "\n\t\t<input type='hidden' name='userclass_id' value='{$userclass_id}' />\n\t\t";
 } else {
     $text .= $frm->admin_button('createclass', UCSLAN_15, 'create');
     $text .= $frm->admin_button('updatecancel', LAN_CANCEL, 'cancel');
     //	$text .= "<input class='btn' type='submit' id='createclass' name='createclass' value='".UCSLAN_15."' />
     //	&nbsp;&nbsp;<input class='btn' type='submit' id='updatecancel' name='updatecancel' value='".LAN_CANCEL."' />";
     $text .= "\n\t    <input type='hidden' name='userclass_id' value='0' />";
 }
 $text .= "</div>";
 $text .= "</form></div><br /><br />";
 // $text .= $e_userclass->show_graphical_tree();
 $title = $params == 'edit' ? LAN_EDIT : LAN_CREATE;
Example #2
0
    function showMaint()
    {
        $mes = e107::getMessage();
        $mes->addInfo("Deprecated Area - please use filter instead under 'Manage' ");
        global $pref;
        $ns = e107::getRender();
        $sql = e107::getDb();
        $frm = e107::getForm();
        $tp = e107::getParser();
        if (isset($_POST['dl_maint'])) {
            switch ($_POST['dl_maint']) {
                case 'duplicates':
                    $title = DOWLAN_166;
                    $query = 'SELECT GROUP_CONCAT(d.download_id SEPARATOR ",") as gc, d.download_id, d.download_name, d.download_url, dc.download_category_name
		                      FROM #download as d
		                      LEFT JOIN #download_category AS dc ON dc.download_category_id=d.download_category
		                      GROUP BY d.download_url
		                      HAVING COUNT(d.download_id) > 1
		               ';
                    $text = "";
                    $count = $sql->gen($query);
                    $foundSome = false;
                    if ($count) {
                        $currentURL = "";
                        while ($row = $sql->fetch()) {
                            if (!$foundSome) {
                                //  $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                $text .= '<form method="post" action="' . e_SELF . '?' . e_QUERY . '" id="myform">
		                     			<table class="table adminform">';
                                $text .= '<tr>';
                                $text .= '<th>' . DOWLAN_13 . '</th>';
                                $text .= '<th>' . LAN_ID . '</th>';
                                $text .= '<th>' . DOWLAN_27 . '</th>';
                                $text .= '<th>' . DOWLAN_11 . '</th>';
                                $text .= '<th>' . LAN_OPTIONS . '</th>';
                                $text .= '</tr>';
                                $foundSome = true;
                            }
                            $query = "SELECT d.*, dc.* FROM `#download` AS d\n\t\t                     LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category\n\t\t                     WHERE download_id IN (" . $row['gc'] . ")\n\t\t                     ORDER BY download_id ASC";
                            $count = $sql2->gen($query);
                            while ($row = $sql2->fetch()) {
                                $text .= '<tr>';
                                if ($currentURL != $row['download_url']) {
                                    $text .= '<td>' . $tp->toHTML($row['download_url']) . '</td>';
                                    $currentURL = $row['download_url'];
                                } else {
                                    $text .= '<td>*</td>';
                                }
                                $text .= '<td>' . $row['download_id'] . '</td>';
                                $text .= "<td><a href='" . e_PLUGIN . "download/download.php?view." . $row['download_id'] . "'>" . $e107->tp->toHTML($row['download_name']) . '</a></td>';
                                $text .= '<td>' . $tp->toHTML($row['download_category_name']) . '</td>';
                                $text .= '<td>
		                                 <a href="' . e_SELF . '?create.edit.' . $row["download_id"] . '.maint.duplicates">' . ADMIN_EDIT_ICON . '</a>
		   				                  <input type="image" title="' . LAN_DELETE . '" name="delete[main_' . $row["download_id"] . ']" src="' . ADMIN_DELETE_ICON_PATH . '" onclick=\'return jsconfirm("' . $tp->toJS(DOWLAN_33 . ' [ID: ' . $row["download_id"] . ' ]') . '") \'/>
		   				               </td>';
                                $text .= '</tr>';
                            }
                        }
                    }
                    if ($foundSome) {
                        $text .= '</table></form>';
                    } else {
                        e107::getMessage()->addInfo(DOWLAN_172);
                    }
                    break;
                case 'orphans':
                    $title = DOWLAN_167;
                    $text = "";
                    require_once e_HANDLER . "file_class.php";
                    $efile = new e_file();
                    $files = $efile->get_files(e_DOWNLOAD);
                    $foundSome = false;
                    foreach ($files as $file) {
                        if (0 == $sql->db_Count('download', '(*)', " WHERE download_url='" . $file['fname'] . "'")) {
                            if (!$foundSome) {
                                // $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                $text .= '<form method="post" action="' . e_SELF . '?' . e_QUERY . '" id="myform">
		                     <table class="table adminform">';
                                $text .= '<tr>';
                                $text .= '<th>' . DOWLAN_13 . '</th>';
                                $text .= '<th>' . DOWLAN_182 . '</th>';
                                $text .= '<th>' . DOWLAN_66 . '</th>';
                                $text .= '<th>' . LAN_OPTIONS . '</th>';
                                $text .= '</tr>';
                                $foundSome = true;
                            }
                            $filesize = is_readable(e_DOWNLOAD . $row['download_url']) ? $e107->parseMemorySize(filesize(e_DOWNLOAD . $file['fname'])) : DOWLAN_181;
                            $filets = is_readable(e_DOWNLOAD . $row['download_url']) ? $gen->convert_date(filectime(e_DOWNLOAD . $file['fname']), "long") : DOWLAN_181;
                            $text .= '<tr>';
                            $text .= '<td>' . $tp->toHTML($file['fname']) . '</td>';
                            $text .= '<td>' . $filets . '</td>';
                            $text .= '<td>' . $filesize . '</td>';
                            //TODO               $text .= '<td>
                            //TODO                           <a href="'.e_SELF.'?create.add.'. urlencode($file["fname"]).'">'.E_16_CREATE.'</a>
                            //TODO					            <input type="image" title="'.LAN_DELETE.'" name="delete[main_'.$file["fname"].']" src="'.ADMIN_DELETE_ICON_PATH.'" onclick=\'return jsconfirm("'.$tp->toJS(DOWLAN_173.' [ '.$file["fname"].' ]').'") \'/>
                            //TODO					         </td>';
                            $text .= '</tr>';
                        }
                    }
                    if ($foundSome) {
                        $text .= '</table></form>';
                    } else {
                        e107::getMessage()->addInfo(DOWLAN_174);
                    }
                    break;
                case 'missing':
                    $title = DOWLAN_168;
                    $text = "";
                    $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category";
                    $count = $sql->gen($query);
                    $foundSome = false;
                    if ($count) {
                        while ($row = $sql->fetch()) {
                            if (!is_readable(e_DOWNLOAD . $row['download_url'])) {
                                if (!$foundSome) {
                                    // $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                    $text .= '<form method="post" action="' . e_SELF . '?' . e_QUERY . '" id="myform">
		                        		<table class="adminlist">';
                                    $text .= '<tr>';
                                    $text .= '<th>' . LAN_ID . '</th>';
                                    $text .= '<th>' . DOWLAN_27 . '</th>';
                                    $text .= '<th>' . DOWLAN_11 . '</th>';
                                    $text .= '<th>' . DOWLAN_13 . '</th>';
                                    $text .= '<th>' . LAN_OPTIONS . '</th>';
                                    $text .= '</tr>';
                                    $foundSome = true;
                                }
                                $text .= '<tr>';
                                $text .= '<td>' . $row['download_id'] . '</td>';
                                $text .= "<td><a href='" . e_PLUGIN . "download/download.php?view." . $row['download_id'] . "'>" . $tp->toHTML($row['download_name']) . '</a></td>';
                                $text .= '<td>' . $tp->toHTML($row['download_category_name']) . '</td>';
                                $text .= '<td>' . $tp->toHTML($row['download_url']) . '</td>';
                                $text .= '<td>
		                                 <a href="' . e_SELF . '?create.edit.' . $row["download_id"] . '.maint.missing">' . ADMIN_EDIT_ICON . '</a>
		   					               <input type="image" title="' . LAN_DELETE . '" name="delete[main_' . $row["download_id"] . ']" src="' . ADMIN_DELETE_ICON_PATH . '" onclick=\'return jsconfirm("' . $tp->toJS(DOWLAN_33 . ' [ID: ' . $row["download_id"] . ' ]') . '") \'/>
		   					            </td>';
                                $text .= '</tr>';
                            }
                        }
                    }
                    if ($foundSome) {
                        $text .= '</table></form>';
                    } else {
                        e107::getMessage()->addInfo(DOWLAN_172);
                        //  $text = DOWLAN_172;
                    }
                    break;
                case 'inactive':
                    $title = DOWLAN_169;
                    $text = "";
                    $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category WHERE download_active=0";
                    $count = $sql->gen($query);
                    $foundSome = false;
                    if ($count) {
                        while ($row = $sql->fetch()) {
                            if (!$foundSome) {
                                // $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                $text .= '<form method="post" action="' . e_SELF . '?' . e_QUERY . '" id="myform">
		                     		<table class="table adminform">';
                                $text .= '<tr>';
                                $text .= '<th>' . LAN_ID . '</th>';
                                $text .= '<th>' . DOWLAN_27 . '</th>';
                                $text .= '<th>' . DOWLAN_11 . '</th>';
                                $text .= '<th>' . DOWLAN_13 . '</th>';
                                $text .= '<th>' . LAN_OPTIONS . '</th>';
                                $text .= '</tr>';
                                $foundSome = true;
                            }
                            $text .= '<tr>';
                            $text .= '<td>' . $row['download_id'] . '</td>';
                            $text .= "<td><a href='" . e_PLUGIN . "download/download.php?view." . $row['download_id'] . "'>" . $e107->tp->toHTML($row['download_name']) . '</a></td>';
                            $text .= '<td>' . $e107->tp->toHTML($row['download_category_name']) . '</td>';
                            if (strlen($row['download_url']) > 0) {
                                $text .= '<td>' . $row['download_url'] . '</td>';
                            } else {
                                $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE);
                                $text .= '<td>';
                                foreach ($mirrorArray as $mirror) {
                                    $text .= $mirror['url'] . '<br/>';
                                }
                                $text .= '</td>';
                            }
                            $text .= '<td>
		                              <a href="' . e_SELF . '?create.edit.' . $row["download_id"] . '.maint.inactive">' . ADMIN_EDIT_ICON . '</a>
		   				               <input type="image" title="' . LAN_DELETE . '" name="delete[main_' . $row["download_id"] . ']" src="' . ADMIN_DELETE_ICON_PATH . '" onclick=\'return jsconfirm("' . $tp->toJS(DOWLAN_33 . ' [ID: ' . $row["download_id"] . ' ]') . '") \'/>
		   				            </td>';
                            $text .= '</tr>';
                        }
                    }
                    if ($foundSome) {
                        $text .= '</table></form>';
                    } else {
                        e107::getMessage()->addInfo(DOWLAN_172);
                        // $text = DOWLAN_172;
                    }
                    break;
                case 'nocategory':
                    $title = DOWLAN_178;
                    $text = "";
                    $query = "SELECT * FROM `#download` WHERE download_category=0";
                    $count = $sql->gen($query);
                    $foundSome = false;
                    if ($count) {
                        while ($row = $sql->fetch()) {
                            if (!$foundSome) {
                                //  $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                $text .= '
		                     <form method="post" action="' . e_SELF . '?' . e_QUERY . '" id="myform">
		                     <table class="table adminlist">';
                                $text .= '<tr>';
                                $text .= '<th>' . LAN_ID . '</th>';
                                $text .= '<th>' . DOWLAN_27 . '</th>';
                                $text .= '<th>' . DOWLAN_13 . '</th>';
                                $text .= '<th>' . LAN_OPTIONS . '</th>';
                                $text .= '</tr>';
                                $foundSome = true;
                            }
                            $text .= '<tr>';
                            $text .= '<td>' . $row['download_id'] . '</td>';
                            $text .= "<td><a href='" . e_PLUGIN . "download/download.php?view." . $row['download_id'] . "'>" . $e107->tp->toHTML($row['download_name']) . '</a></td>';
                            if (strlen($row['download_url']) > 0) {
                                $text .= '<td>' . $e107->tp->toHTML($row['download_url']) . '</td>';
                            } else {
                                $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE);
                                $text .= '<td>';
                                foreach ($mirrorArray as $mirror) {
                                    $text .= $mirror['url'] . '<br/>';
                                }
                                $text .= '</td>';
                            }
                            $text .= '<td>
		                              <a href="' . e_SELF . '?create.edit.' . $row["download_id"] . '.maint.nocategory">' . ADMIN_EDIT_ICON . '</a>
		   				               <input type="image" title="' . LAN_DELETE . '" name="delete[main_' . $row["download_id"] . ']" src="' . ADMIN_DELETE_ICON_PATH . '" onclick=\'return jsconfirm("' . $tp->toJS(DOWLAN_33 . ' [ID: ' . $row["download_id"] . ' ]') . '") \'/>
		   				            </td>';
                            $text .= '</tr>';
                        }
                    }
                    if ($foundSome) {
                        $text .= '</table></form>';
                    } else {
                        e107::getMessage()->addInfo(DOWLAN_172);
                        // $text = DOWLAN_172;
                    }
                    break;
                case 'filesize':
                    $title = DOWLAN_66;
                    $text = "";
                    $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category WHERE d.download_url<>''";
                    $count = $sql->gen($query);
                    $foundSome = false;
                    if ($count) {
                        while ($row = $sql->fetch()) {
                            if (is_readable(e_DOWNLOAD . $row['download_url'])) {
                                $filesize = filesize(e_DOWNLOAD . $row['download_url']);
                                if ($filesize != $row['download_filesize']) {
                                    if (!$foundSome) {
                                        // $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
                                        $text .= '<form method="post" action="' . e_SELF . '?' . e_QUERY . '" id="myform">
		                           		<table class="table adminlist">';
                                        $text .= '<tr>';
                                        $text .= '<th>' . LAN_ID . '</th>';
                                        $text .= '<th>' . DOWLAN_27 . '</th>';
                                        $text .= '<th>' . DOWLAN_11 . '</th>';
                                        $text .= '<th>' . DOWLAN_13 . '</th>';
                                        $text .= '<th>' . DOWLAN_180 . '</th>';
                                        $text .= '<th>' . LAN_OPTIONS . '</th>';
                                        $text .= '</tr>';
                                        $foundSome = true;
                                    }
                                    $text .= '<tr>';
                                    $text .= '<td>' . $row['download_id'] . '</td>';
                                    $text .= "<td><a href='" . e_PLUGIN . "download/download.php?view." . $row['download_id'] . "'>" . $e107->tp->toHTML($row['download_name']) . '</a></td>';
                                    $text .= '<td>' . $e107->tp->toHTML($row['download_category_name']) . '</td>';
                                    $text .= '<td>' . $e107->tp->toHTML($row['download_url']) . '</td>';
                                    $text .= '<td>' . $row['download_filesize'] . ' / ';
                                    $text .= $filesize;
                                    $text .= '</td>';
                                    $text .= '<td>
		                                    <a href="' . e_SELF . '?create.edit.' . $row["download_id"] . '.maint.filesize">' . ADMIN_EDIT_ICON . '</a>
		   					                  <input type="image" title="' . LAN_DELETE . '" name="delete[main_' . $row["download_id"] . ']" src="' . ADMIN_DELETE_ICON_PATH . '" onclick=\'return jsconfirm("' . $tp->toJS(DOWLAN_33 . ' [ID: ' . $row["download_id"] . ' ]') . '") \'/>
		   					               </td>';
                                    $text .= '</tr>';
                                }
                            }
                        }
                    }
                    if ($foundSome) {
                        $text .= '</table></form>';
                    } else {
                        e107::getMessage()->addInfo(DOWLAN_172);
                        // $text = DOWLAN_172;
                    }
                    break;
                case 'log':
                    $text = "log - view manage download history log";
                    header('location: ' . e_ADMIN . 'admin_log.php?downlog');
                    exit;
                    break;
            }
        } else {
            $title = DOWLAN_193;
            $text = DOWLAN_179;
            $eform = new e_form();
            $text = "\n\t\t      \t<form method='post' action='" . e_SELF . "?" . e_QUERY . "' id='core-db-main-form'>\n\t\t      \t\t<fieldset id='core-db-plugin-scan'>\n\t\t      \t\t<legend class='e-hideme'>" . DOWLAN_10 . "</legend>\n\t\t      \t\t\t<table class='table adminform'>\n\t\t      \t\t\t<colgroup span='2'>\n\t\t      \t\t\t\t<col style='width: 40%'></col>\n\t\t      \t\t\t\t<col style='width: 60%'></col>\n\t\t      \t\t\t</colgroup>\n\t\t      \t\t\t<tbody>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_166 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'duplicates') . $eform->label(DOWLAN_185, 'dl_maint', 'duplicates') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_167 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'orphans') . $eform->label(DOWLAN_186, 'dl_maint', 'orphans') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_168 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'missing') . $eform->label(DOWLAN_187, 'dl_maint', 'missing') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_169 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'inactive') . $eform->label(DOWLAN_188, 'dl_maint', 'inactive') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_178 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'nocategory') . $eform->label(DOWLAN_189, 'dl_maint', 'nocategory') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_66 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'filesize') . $eform->label(DOWLAN_190, 'dl_maint', 'filesize') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t      \t\t\t\t<tr>\n\t\t      \t\t\t\t\t<td>" . DOWLAN_171 . "</td>\n\t\t      \t\t\t\t\t<td>\n\t\t      \t\t\t\t\t\t" . $eform->radio('dl_maint', 'log') . $eform->label(DOWLAN_191, 'dl_maint', 'log') . "\n\t\t      \t\t\t\t\t</td>\n\t\t      \t\t\t\t</tr>\n\t\t\n\t\t      \t\t\t\t</tbody>\n\t\t      \t\t\t</table>\n\t\t      \t\t\t<div class='buttons-bar center'>\n\t\t      \t\t\t\t" . $eform->admin_button('trigger_db_execute', DOWLAN_192, 'execute') . "\n\t\t      \t\t\t</div>\n\t\t      \t\t</fieldset>\n\t\t      \t</form>\n\t\t      \t";
        }
        echo $text;
        // 	$ns->tablerender(DOWLAN_165.$title, $text);
    }
Example #3
0
    }
    $message .= "<br />";
    $message .= "</div>";
    $input .= "\n\n?>";
    // Write to file.
    $fp = @fopen($writeit, "w");
    if (!@fwrite($fp, $input)) {
        $caption = LAN_CHECK_PAGE_TITLE . ' - ' . LAN_ERROR;
        $message = '';
        $emessage->add(LAN_CHECK_17, E_MESSAGE_ERROR);
    } else {
        $caption = LAN_CHECK_PAGE_TITLE . ' - ' . LAN_CHECK_24;
        $emessage->add(sprintf(LAN_CHECK_23, basename($writeit)), E_MESSAGE_SUCCESS);
    }
    fclose($writeit);
    $message .= "\n\t<form method='post' action='" . e_SELF . "' id='core-lancheck-save-file-form'>\n\t<div class='center'>\n\t\t" . $frm->admin_button('language_sel', LAN_BACK) . "\n\t\t" . $frm->hidden('language', $lan) . "\n\t</div>\n\t</form>";
    $e107->ns->tablerender($caption, $emessage->render() . $message);
    require_once e_ADMIN . "footer.php";
    exit;
}
// ============================================================================
// Edit the Language File.
if ($f != "") {
    if (!$mode) {
        $dir1 = e_BASE . $LANGUAGES_DIRECTORY . "English/";
        $f1 = $f;
        $dir2 = e_BASE . $LANGUAGES_DIRECTORY . $lan . "/";
        $f2 = $f;
    } else {
        $fullpath_orig = $f;
        $fullpath_trans = str_replace("English", $lan, $f);
Example #4
0
File: fla.php Project: notzen/e107
}
$gen = new convert();
$fla_total = $sql->db_Count('generic', '(*)', "WHERE gen_type='failed_login'");
if (!$sql->db_Select('generic', '*', "gen_type='failed_login' ORDER BY gen_datestamp DESC LIMIT {$from},{$amount}")) {
    $text = $emessage->render() . "<div class='center'>" . FLALAN_2 . "</div>";
} else {
    $faArray = $sql->db_getList('ALL', FALSE, FALSE);
    $text = "\n\t\t<form method='post' action='" . e_SELF . "' id='flaform' >\n\t\t\t<fieldset id='core-fla'>\n\t\t\t\t<legend class='e-hideme'>" . ADLAN_146 . "</legend>\n\t\t\t\t<table class='table adminlist'>\n\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t<col style='width: 20%' />\n\t\t\t\t\t\t<col style='width: 40%' />\n\t\t\t\t\t\t<col style='width: 20%' />\n\t\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t\t</colgroup>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>" . LAN_DATE . "</th>\n\t\t\t\t\t\t\t<th>" . FLALAN_7 . "</th>\n\t\t\t\t\t\t\t<th>" . FLALAN_8 . "</th>\n\t\t\t\t\t\t\t<th class='center last'>\n\t\t\t\t\t\t\t\t" . LAN_DELETE . "<br/>\n\t\t\t\t\t\t\t\t" . $frm->checkbox('check_all_del', 'jstarget:fladelete', false, array('id' => false, 'class' => 'checkbox toggle-all')) . "\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th class='center last'>\n\t\t\t\t\t\t\t\t" . LAN_BAN . "<br/>\n\t\t\t\t\t\t\t\t" . $frm->checkbox_toggle('check-all-ban', 'flaban') . "\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t";
    foreach ($faArray as $fa) {
        extract($fa);
        //FIXME kill extract()
        $gen_chardata = str_replace(":::", "<br />", $e107->tp->toHTML($gen_chardata));
        $host = e107::getIPHandler()->get_host_name(getenv($gen_ip));
        $text .= "\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>" . $gen->convert_date($gen_datestamp, "forum") . "</td>\n\t\t\t\t\t\t\t<td>" . $gen_chardata . "</td>\n\t\t\t\t\t\t\t<td>" . e107::getIPHandler()->ipDecode($fa['gen_ip']) . "<br />{$host}</td>\n\t\t\t\t\t\t\t<td class='center middle autocheck e-pointer'>\n\t\t\t\t\t\t\t\t" . $frm->checkbox('fladelete[]', $gen_id) . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class='center middle autocheck e-pointer'>\n\t\t\t\t\t\t\t\t" . $frm->checkbox('flaban[]', $gen_id) . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t";
    }
    $text .= "\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t\t<div class='buttons-bar center'>\n\t\t\t\t\t" . $frm->admin_button('delbanSubmit', FLALAN_10, 'delete', FLALAN_10, 'title=') . "\n\t\t\t\t</div>\n\t\t\t</fieldset>\n\t\t</form>\n\t";
    $parms = $fla_total . "," . $amount . "," . $from . "," . e_SELF . '?' . "[FROM]." . $amount;
    $nextprev = $tp->parseTemplate("{NEXTPREV={$parms}}");
    if ($nextprev) {
        $text .= "<div class='nextprev-bar'>" . $nextprev . "</div>";
    }
}
$e107->ns->tablerender(ADLAN_146, $emessage->render() . $text);
require_once "footer.php";
/**
 * Handle page DOM within the page header
 *
 * @return string JS source
 */
function headerjs()
{
Example #5
0
         $pref['enable_rdns_on_ban'] = intval($_POST['ban_rdns_on_ban']);
         $pref['ban_max_online_access'] = intval($_POST['ban_access_guest']) . ',' . intval($_POST['ban_access_member']);
         $pref['ban_retrigger'] = intval($_POST['ban_retrigger']);
         $pref['ban_date_format'] = $tp->toDB($_POST['ban_date_format']);
         save_prefs();
         // @todo FIXME log detail of changes. Right prefs to use?
         $emessage->add(LAN_SETSAVED, E_MESSAGE_SUCCESS);
     }
     if (isset($_POST['remove_expired_bans'])) {
         $result = $sql->db_Delete('banlist', "`banlist_bantype` < " . eIPHandler::BAN_TYPE_WHITELIST . " AND `banlist_banexpires` > 0 AND `banlist_banexpires` < " . time());
         banlist_adminlog('12', $result);
         $emessage->add(str_replace('--NUM--', $result, BANLAN_48), E_MESSAGE_SUCCESS);
     }
     list($ban_access_guest, $ban_access_member) = explode(',', varset($pref['ban_max_online_access'], '100,200'));
     $ban_access_member = max($ban_access_guest, $ban_access_member);
     $text = "\n\t\t\t<form method='post' action='" . e_SELF . "?options'>\n\t\t\t\t<fieldset id='core-banlist-options'>\n\t\t\t\t\t<legend>" . BANLAN_72 . "</legend>\n\t\t\t\t\t<table class='table adminform'>\n\t\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t\t\t<col class='col-control' />\n\t\t\t\t\t\t</colgroup>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_63 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('ban_rdns_on_access', 1, $pref['enable_rdns'] == 1) . "\n\t\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_65 . "</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_64 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('ban_rdns_on_ban', 1, $pref['enable_rdns_on_ban'] == 1) . "\n\t\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_66 . "</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_67 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='field-spacer'>" . drop_box('ban_access_guest', $ban_access_guest) . BANLAN_70 . "</div>\n\t\t\t\t\t\t\t\t\t<div class='field-spacer'>" . drop_box('ban_access_member', $ban_access_member) . BANLAN_69 . "</div>\n\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_68 . "</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_71 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('ban_retrigger', 1, $pref['ban_retrigger'] == 1) . "\n\t\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_73 . "</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t  <td>" . BANLAN_91 . "</td>\n\t\t\t\t\t\t\t  <td>\n\t\t\t\t\t\t\t  " . $frm->text('ban_date_format', varset($pref['ban_date_format'], '%H:%M %d-%m-%y'), 40) . "\n\t\t\t\t\t\t\t  <div class='field-help'>" . BANLAN_92 . "</div>\n\t\t\t\t\t\t\t  </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t<div class='buttons-bar center'>\n\t\t\t\t\t\t" . $frm->admin_button('update_ban_options', LAN_UPDATE, 'update') . "\n\t\t\t\t\t\t<input type='hidden' name='e-token' value='" . e_TOKEN . "' />\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset id='core-banlist-options-ban'>\n\t\t\t\t\t<legend>" . BANLAN_74 . "</legend>\n\t\t\t\t\t<table class='table adminform'>\n\t\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t\t\t<col class='col-control' />\n\t\t\t\t\t\t</colgroup>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_75 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t" . $frm->admin_button('remove_expired_bans', BANLAN_76, 'delete') . "\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='e-token' value='" . e_TOKEN . "' />\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t";
     e107::getRender()->tablerender(BANLAN_72, $emessage->render() . $text);
     break;
 case 'times':
     if (!getperms('0')) {
         exit;
     }
     $text = '';
     if (!isset($pref['ban_messages']) || !is_array($pref['ban_messages'])) {
         foreach ($ipAdministrator->getValidReasonList() as $bt) {
             $pref['ban_messages'][$bt] = '';
         }
     }
     if (!isset($pref['ban_durations']) || !is_array($pref['ban_durations'])) {
         foreach ($ipAdministrator->getValidReasonList() as $bt) {
             $pref['ban_durations'][$bt] = 0;
Example #6
0
$max_file_size = get_user_max_upload();
if ($path != e_FILE) {
    if (substr_count($path, "/") == 1) {
        //$pathup = e_SELF;
        $pathup = '';
    } else {
        $pathup = "<a class='action' href='" . e_SELF . "?" . substr($path, 0, strrpos(substr($path, 0, -1), "/")) . "/'><img class='icon S24' src='" . $imagedir . "updir.png' alt='" . FMLAN_30 . "' /></a>";
    }
}
$text .= "\n\t<form enctype='multipart/form-data' action='" . e_SELF . (e_QUERY ? "?" . e_QUERY : "") . "' method='post'>\n\t\t<fieldset id='core-filemanager'>\n\t\t\t<legend class='e-hideme'>XX</legend>\n\t\t\t<table class='table adminlist'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col style='width:  5%' />\n\t\t\t\t\t<col style='width: 40%' />\n\t\t\t\t\t<col style='width: 20%' />\n\t\t\t\t\t<col style='width: 15%' />\n\t\t\t\t</colgroup>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class='center'>\n\t\t\t\t\t\t\t" . $pathup . "\n\t\t\t\t\t\t<!-- <a href='filemanager.php'><img src='" . $imagedir . "home.png' alt='" . FMLAN_16 . "' /></a> -->\n\t\t\t\t\t\t\t<input type='hidden' name='MAX_FILE_SIZE' value='{$max_file_size}' />\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th class='center'>" . FMLAN_17 . "</th>\n\t\t\t\t\t\t<th class='center'>" . FMLAN_18 . "</th>\n\t\t\t\t\t\t<th class='center'>" . FMLAN_19 . "</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n";
$c = 0;
while ($dirs[$c]) {
    $dirsize = dirsize($path . $dirs[$c]);
    $el_id = str_replace(array('/', '_', ' ', '\\'), '-', $path . $dirs[$c]);
    if (FILE_UPLOADS && is_writable(e_BASE . $path . $dirs[$c])) {
        $up_button = $frm->admin_button('erquest', FMLAN_21, 'action', '', array('id' => false, 'other' => "onclick='e107Helper.toggle(\"{$el_id}\")'"));
    } else {
        $up_button = "&nbsp;leave_32.png";
    }
    //FIXME - upload link not working, raplace with image
    $text .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='center middle'><a href='#{$el_id}' class='e-expandit'>upload</a></td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a class='action' href='" . e_SELF . "?" . $path . $dirs[$c] . "/'><img class='icon action S16' src='" . $imagedir . "folder.png' alt='" . $dirs[$c] . " " . FMLAN_31 . "' /></a>\n\t\t\t\t\t\t\t<a href='" . e_SELF . "?" . $path . $dirs[$c] . "/'>" . $dirs[$c] . "</a>\n\t\t\t\t\t\t\t<div class='e-hideme' id='{$el_id}'>\n\t\t\t\t\t\t\t\t<div class='field-spacer'>" . $frm->file('file_userfile[]', array('id' => false, 'size' => '20')) . $frm->admin_button('upload', FMLAN_22, '', '', array('id' => false)) . "</div>\n\t\t\t\t\t\t\t\t<input type='hidden' name='upload_dir[]' value='" . $path . $dirs[$c] . "' />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class='right'>" . $dirsize . "</td>\n\t\t\t\t\t\t<td class='right'>&nbsp;</td>\n\t\t\t\t\t</tr>\n\t";
    $c++;
}
$c = 0;
while ($files[$c]) {
    $img = strtolower(substr(strrchr($files[$c], "."), 1, 3));
    if (!$img || !preg_match("/css|exe|gif|htm|jpg|js|php|png|txt|xml|zip/i", $img)) {
        $img = "def";
    }
    $size = $e107->parseMemorySize(filesize(e_BASE . $path . "/" . $files[$c]));
    $gen = new convert();
Example #7
0
    //	define('USER_AUDIT_BOUNCE_RESET', 23); 		// User bounce reset
    //	define('USER_AUDIT_TEMP_ACCOUNT', 24); 		// User temporary account
    $audit_checkboxes = array(USER_AUDIT_SIGNUP => RL_LAN_071, USER_AUDIT_EMAILACK => RL_LAN_072, USER_AUDIT_LOGIN => RL_LAN_073, USER_AUDIT_NEW_DN => RL_LAN_075, USER_AUDIT_NEW_PW => RL_LAN_076, USER_AUDIT_PW_RES => RL_LAN_078, USER_AUDIT_NEW_EML => RL_LAN_077, USER_AUDIT_NEW_SET => RL_LAN_079, USER_AUDIT_ADD_ADMIN => RL_LAN_080, USER_AUDIT_MAIL_BOUNCE => RL_LAN_081, USER_AUDIT_BANNED => RL_LAN_082, USER_AUDIT_BOUNCE_RESET => RL_LAN_083, USER_AUDIT_TEMP_ACCOUNT => RL_LAN_084);
    if (!isset($e_userclass) && !is_object($e_userclass)) {
        require_once e_HANDLER . "userclass_class.php";
        $e_userclass = new user_class();
    }
    $user_signup_opts = array_flip(explode(',', varset($pref['user_audit_opts'], '')));
    // Common to all logs
    $text = "\r\n\t<fieldset id='core-admin-log-config'>\r\n\t<legend class='e-hideme'>" . RL_LAN_121 . "</legend>\r\n\t<form method='post' action='" . e_SELF . "?config'>\r\n\t\t<fieldset id='core-admin-log-options'>\r\n\t\t\t<legend>" . RL_LAN_122 . "</legend>\r\n\t\t\t<table class='table adminform'>\r\n\t\t\t\t<colgroup>\r\n\t\t\t\t\t<col class='col-label' />\r\n\t\t\t\t\t<col class='col-control' />\r\n\t\t\t\t</colgroup>\r\n\t\t\t\t<tbody>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>" . RL_LAN_044 . "</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<select name='sys_log_perpage' class='tbox select'>\r\n\t\t\t\t\t\t\t\t<option value='10' " . ($pref['sys_log_perpage'] == '10' ? " selected='selected' " : "") . " >10</option>\r\n\t\t\t\t\t\t\t\t<option value='20' " . ($pref['sys_log_perpage'] == '20' ? " selected='selected' " : "") . " >20</option>\r\n\t\t\t\t\t\t\t\t<option value='30' " . ($pref['sys_log_perpage'] == '30' ? " selected='selected' " : "") . " >30</option>\r\n\t\t\t\t\t\t\t\t<option value='40' " . ($pref['sys_log_perpage'] == '40' ? " selected='selected' " : "") . " >40</option>\r\n\t\t\t\t\t\t\t\t<option value='50' " . ($pref['sys_log_perpage'] == '50' ? " selected='selected' " : "") . " >50</option>\r\n\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t<div class='field-help'>" . RL_LAN_064 . "</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t";
    // User Audit Trail Options
    $text .= "\r\n\t\t<tr>\r\n\t\t\t<td>" . RL_LAN_123 . "</td>\r\n\t\t\t<td>\r\n\t\t\t\t<select class='tbox' name='user_audit_class'>\r\n\t\t\t\t\t" . $e_userclass->vetted_tree('user_audit_class', array($e_userclass, 'select'), varset($pref['user_audit_class'], ''), 'nobody,admin,member,new,mods,main,classes') . "\r\n\t\t\t\t</select>\r\n\t\t\t\t<div class='field-help'>" . RL_LAN_026 . "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>" . RL_LAN_124 . "</td>\r\n\t\t\t<td>\r\n\t\t\t\t" . RL_LAN_031 . "\r\n\t";
    foreach ($audit_checkboxes as $k => $t) {
        $text .= "\r\n\t\t\t\t\t\t\t<div class='field-spacer'><input class='checkbox' type='checkbox' id='user-audit-opts-{$k}' name='user_audit_opts[]' value='{$k}' " . (isset($user_signup_opts[$k]) ? " checked='checked' " : "") . " /><label for='user-audit-opts-{$k}'>{$t}</label></div>\r\n\t\t";
    }
    $text .= "\r\n\t\t\t\t\t\t\t<div class='field-spacer f-left'>" . $frm->admin_button('check_all', 'jstarget:user_audit_opts', 'action', LAN_CHECKALL) . $frm->admin_button('uncheck_all', 'jstarget:user_audit_opts', 'action', LAN_UNCHECKALL) . "</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t";
    // Rolling log options
    //====================
    $text .= "\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>" . RL_LAN_008 . "</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\r\n\t\t\t\t\t\t\t\t<input class='checkbox' type='checkbox' name='roll_log_active' value='1' " . ($pref['roll_log_active'] == 1 ? " checked='checked' " : "") . " />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>" . RL_LAN_009 . "</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t   <input class='tbox' type='text' name='roll_log_days' size='10' value='" . $pref['roll_log_days'] . "' maxlength='5' />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</tbody>\r\n\t\t\t</table>\r\n\t\t\t<div class='buttons-bar center'>\r\n\t\t\t\t" . $frm->admin_button('setoptions', 'no-value', 'update', LAN_UPDATE) . "\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t</form>\r\n\t";
    // Admin log maintenance
    //==================
    $text .= "\r\n\t<form method='post' action='" . e_SELF . "?config'>\r\n\t\t<fieldset id='core-admin-log-maintenance'>\r\n\t\t\t<legend>" . RL_LAN_125 . "</legend>\r\n\t\t\t<table class='table adminform'>\r\n\t\t\t\t<colgroup>\r\n\t\t\t\t\t<col class='col-label' />\r\n\t\t\t\t\t<col class='col-control' />\r\n\t\t\t\t</colgroup>\r\n\t\t\t\t<tbody>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>" . RL_LAN_045 . " </td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . gen_log_delete('rolllog_clearadmin') . RL_LAN_046 . $frm->admin_button('deleteoldadmin', 'no-value', 'delete', RL_LAN_049) . "\t\t\t\t\t\t\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t";
    // User log maintenance
    //====================
    $text .= "\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>" . RL_LAN_066 . " </td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . gen_log_delete('rolllog_clearaudit') . RL_LAN_046 . $frm->admin_button('deleteoldaudit', 'no-value', 'delete', RL_LAN_049) . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</tbody>\r\n\t\t\t</table>\r\n\t\t</fieldset>\r\n\t</form>\r\n\r\n\t</fieldset>\r\n\t";
    $ns->tablerender(RL_LAN_121, $emessage->render() . $text);
}
//====================================================================
//					LOG VIEW MENU
//====================================================================
if (isset($page_title[$action])) {
Example #8
0
    $ns->tablerender(WMLAN_00, $text);
}
// Create and Edit
if ($action == "create" || $action == "edit") {
    if ($sub_action == "edit") {
        $sql->db_Select("generic", "gen_intdata, gen_ip, gen_chardata", "gen_id = {$id}");
        $row = $sql->db_Fetch();
    }
    $text = "\n\t\t<div style='text-align:center'>\n\t\t<form method='post' action='" . e_SELF . "'  id='wmform'>\n\t\t<fieldset id='code-wmessage-create'>\n        <table class='table adminform'>\n\t\t<colgroup>\n\t\t\t<col class='col-label' />\n\t\t\t<col class='col-control' />\n\t\t</colgroup>\n\t\t";
    $text .= "\n\t\t<tr>\n\t\t<td>" . WMLAN_10 . "</td>\n\t\t<td>\n\t\t<input type='text' class='tbox' id='wm_caption' name='wm_caption' maxlength='80' style='width:95%' value=\"" . $tp->toForm($row['gen_ip']) . "\" />\n\t\t</td>\n\t\t</tr>";
    $text .= "<tr>\n\t\t<td>" . WMLAN_04 . "</td>\n\t\t<td>\n\t\t<textarea class='e-wysiwyg tbox' id='data' name='data' cols='70' rows='15' style='width:95%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this)'>" . $tp->toForm($row['gen_chardata']) . "</textarea>\n\t\t<br />";
    $text .= display_help("helpb", "admin");
    $text .= "\n\t\t</td>\n\t\t</tr>\n\t\t<tr><td>" . WMLAN_03 . "</td>\n\t\t<td>" . r_userclass("wm_active", $row['gen_intdata'], "off", "public,guest,nobody,member,admin,classes") . "</td></tr>\n\t\t</table>";
    $text .= "\n\t\t<div class='buttons-bar center'>";
    if ($sub_action == "edit") {
        $text .= $frm->admin_button('wm_update', LAN_UPDATE, 'update');
    } else {
        $text .= $frm->admin_button('wm_insert', LAN_CREATE);
    }
    $text .= "<input type='hidden' name='wm_id' value='" . $id . "' />";
    $text .= "</div>\n\t\t</fieldset>\n\t\t</form>\n\t\t</div>";
    $ns->tablerender(WMLAN_01, $text);
}
if ($action == "opt") {
    global $pref, $ns;
    $text = "<div style='text-align:center'>\n\t\t<form method='post' action='" . e_SELF . "?" . e_QUERY . "'>\n\n\t\t<fieldset id='code-wmessage-options'>\n        <table class='table adminform'>\n\t\t<colgroup>\n\t\t\t<col class='col-label' />\n\t\t\t<col class='col-control' />\n\t\t</colgroup>\n\t\t<tr>\n\n\t\t<td>\n\t\t" . WMLAN_05 . "<br />\n\t\t<span class='smalltext'>" . WMLAN_06 . "</span>\n\t\t</td>\n\t\t<td>" . (varset($pref['wm_enclose'], 0) ? "<input type='checkbox' name='wm_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='wm_enclose' value='1' />") . "\n\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\n\t\t<td>\n\t\t" . WMLAN_07 . "\n\t\t</td>\n\t\t<td>" . (varset($pref['wmessage_sc'], 0) ? "<input type='checkbox' name='wmessage_sc' value='1' checked='checked' />" : "<input type='checkbox' name='wmessage_sc' value='1' />") . "\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\n\t\t<div class='buttons-bar center'>";
    $text .= $frm->admin_button('updateoptions', LAN_SAVE);
    $text .= "\n\t\t</div>\n\t\t</fieldset>\n\t\t</form>\n\t\t</div>";
    $ns->tablerender(WMLAN_00 . ": " . LAN_PREFS, $text);
}
function wmessage_adminmenu()
Example #9
0
            }
            break;
        case 'rss':
            if (rssImport() == false) {
                $abandon = true;
            }
            break;
    }
    if ($msg) {
        $emessage->add($msg, E_MESSAGE_INFO);
        //  $ns -> tablerender(LAN_CONVERT_30, $msg);
        $msg = '';
    }
    if ($abandon) {
        //	unset($_POST['do_conversion']);
        $text = "\n\t\t<form method='get' action='" . e_SELF . "'>\n\t\t<div class='center'>\n\t\t" . $frm->admin_button('dummy_continue', LAN_CONTINUE, 'execute') . "\n\t\t</div>\n\t\t</form>";
        $ns->tablerender(LAN_CONVERT_30, $emessage->render() . $text);
        require_once e_ADMIN . "footer.php";
        exit;
    }
}
function rssImport()
{
    global $current_db_type, $db_import_blocks, $import_delete_existing_data, $db_blocks_to_import;
    $mes = e107::getMessage();
    $mes->addDebug("Loading: RSS");
    if (!varset($_POST['do_conversion'])) {
        $mes->addWarning("Under Construction");
    }
    return dbImport('xml');
}
Example #10
0
        save_prefs();
        $emessage->{$emessage_method}(UGFLAN_1, E_MESSAGE_SUCCESS);
    } else {
        $emessage->{$emessage_method}(UGFLAN_7);
    }
    if (!e_AJAX_REQUEST) {
        header("location:" . e_SELF);
        exit;
    }
}
require_once "auth.php";
$text = "\n\t<form method='post' action='" . e_SELF . "' id='core-ugflag-form'>\n\t\t<fieldset id='core-ugflag'>\n\t\t\t<legend class='e-hideme'>" . UGFLAN_4 . "</legend>\n\t\t\t<table class='table adminform'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t<col class='col-control' />\n\t\t\t\t</colgroup>\n\t\t\t\t<tbody>";
$elements = array(e_UC_PUBLIC => LAN_DISABLED, e_UC_ADMIN => UGFLAN_8, e_UC_MAINADMIN => UGFLAN_9);
$text .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . UGFLAN_2 . ": </td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_multi('maintainance_flag', $elements, $pref['maintainance_flag'], TRUE) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>";
//TODO multilanguage pref
$text .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . UGFLAN_5 . "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->bbarea('maintainance_text', $pref['maintainance_text'], 'maintenance', 'maintenance_bbhelp') . "\n\t\t\t\t\t\t<div class='field-help'>" . UGFLAN_6 . "</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div class='buttons-bar center'>\n\t\t\t\t" . $frm->admin_button('updatesettings', UGFLAN_3, 'update') . "\n\t\t\t</div>\n\t\t</fieldset>\n\t</form>\n\n";
//Ajax Support
if (!e_AJAX_REQUEST) {
    echo "<div id='ajax-container'>\n";
    $e107->ns->tablerender(UGFLAN_4, $emessage->render() . $text, 'core-ugflag');
    echo "\n</div>";
    require_once e_ADMIN . "footer.php";
    exit;
}
$e107->ns->tablerender(UGFLAN_4, $emessage->render() . $text, 'core-ugflag');
/**
 * Handle page DOM within the page header
 *
 * @return string JS source
 */
function headerjs()
Example #11
0
}
if ($action == "delete" && $sub_action && varsettrue($_POST['delete_confirm'])) {
    if ($sql->db_Delete("banner", "banner_id=" . intval($sub_action))) {
        $emessage->addSession(sprintf(BNRLAN_1, $sub_action), E_MESSAGE_SUCCESS);
        banners_adminlog('04', 'Id: ' . intval($sub_action));
    } else {
        $emessage->addSession(LAN_DELETED_FAILED, E_MESSAGE_WARNING);
    }
    //redirect to main
    session_write_close();
    header('Location:' . e_SELF);
    exit;
} elseif ($action == "delete" && $sub_action) {
    // shown only if JS is disabled or by direct url hit (?delete.banner_id)
    $emessage->add(BNRLAN_2, E_MESSAGE_WARNING);
    $text = "\n\t\t<form method='post' action='" . e_SELF . "?" . e_QUERY . "'>\n\t\t<fieldset id='core-banner-delete-confirm'>\n\t\t<legend class='e-hideme'>" . BNRLAN_5 . "</legend>\n\t\t\t<div class='buttons-bar center'>\n\t\t\t\t" . $frm->admin_button('delete_confirm', LAN_CONFDELETE, 'delete no-confirm') . "\n\t\t\t\t" . $frm->admin_button('delete_cancel', LAN_CANCEL, 'cancel') . "\n\t\t\t\t<input type='hidden' name='id' value='" . $sub_action . "' />\n\t\t\t</div>\n\t\t</fieldset>\n\t\t</form>\n\t";
    $e107->ns->tablerender(BNRLAN_5, $emessage->render() . $text);
    require_once e_ADMIN . "footer.php";
    exit;
}
if ($sql->db_Select("banner")) {
    while ($banner_row = $sql->db_Fetch()) {
        //extract($row); - killed by SecretR
        if (strpos($banner_row['banner_campaign'], "^") !== FALSE) {
            $campaignsplit = explode("^", $banner_row['banner_campaign']);
            $banner_row['banner_campaign'] = $campaignsplit[0];
        }
        if ($banner_row['banner_campaign']) {
            $campaigns[] = $banner_row['banner_campaign'];
        }
        if ($banner_row['banner_clientname']) {
Example #12
0
        $emessage->add(LAN_NO_CHANGE);
    }
    //info
    unset($temp);
    $temp['search_restrict'] = intval($_POST['search_restrict']);
    $temp['search_highlight'] = intval($_POST['search_highlight']);
    if ($admin_log->logArrayDiffs($temp, $pref, 'SEARCH_02')) {
        //XXX - additional lan search messages
        save_prefs();
    }
}
require_once e_HANDLER . "form_handler.php";
$rs = new form();
$handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']);
if ($query[0] == 'settings') {
    $text = "\n\t<form method='post' action='" . e_SELF . "?settings'>\n\t\t<fieldset id='core-search-settings'>\n\t\t\t<legend class='e-hideme'>" . SEALAN_20 . "</legend>\n\t\t\t<table class='table adminform'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t<col class='col-control' />\n\t\t\t\t</colgroup>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_15 . ": </td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $e_userclass->uc_dropdown('search_restrict', $pref['search_restrict'], 'public,guest,nobody,member,admin,classes', "tabindex='" . $frm->getNext() . "'") . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_30 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('search_highlight', $pref['search_highlight']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_10 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('relevance', $search_prefs['relevance']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_11 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('user_select', $search_prefs['user_select']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_19 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('multisearch', $search_prefs['multisearch']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_35 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_multi('selector', array(2 => SEALAN_36, 1 => SEALAN_37, 0 => SEALAN_38), $search_prefs['selector']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_12 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_multi('time_restrict', array(0 => LAN_DISABLED, 1 => SEALAN_13), $search_prefs['time_restrict']) . "&nbsp;\n\t\t\t\t\t\t\t" . $frm->text('time_secs', $tp->toForm($search_prefs['time_secs']), 3, 'class=tbox&size=5') . "&nbsp;" . SEALAN_14 . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_3 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('search_sort', $search_prefs['mysql_sort'], 'MySql', SEALAN_31) . "&nbsp;\n\t\t\t\t\t\t\t" . $frm->text('php_limit', $tp->toForm($search_prefs['php_limit']), 5, 'class=tbox&size=5') . "&nbsp;" . SEALAN_32 . "\n\t\t\t\t\t\t\t<div class='field-help'>" . SEALAN_49 . "</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_47 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('boundary', $search_prefs['boundary']) . "\n\t\t\t\t\t\t\t<div class='field-help'>" . SEALAN_48 . "</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div class='buttons-bar center'>\n\t\t\t\t" . $frm->admin_button('update_prefs', LAN_UPDATE, 'update') . "\n\t\t\t</div>\n\t\t</fieldset>\n\t</form>\n\n";
    $e107->ns->tablerender(SEALAN_20, $emessage->render() . $text);
} elseif ($query[0] == 'edit') {
    if ($query[1] == 'c') {
        $handlers = $search_handlers;
        $handler_type = 'core_handlers';
    } elseif ($query[1] == 'p') {
        $handlers = $search_prefs['plug_handlers'];
        $handler_type = 'plug_handlers';
    } else {
        exit;
    }
    $caption = SEALAN_43 . ": " . $query[2];
    $text = "\n\t<form method='post' action='" . e_SELF . "?main." . $query[1] . "." . $query[2] . "'>\n\t\t<fieldset id='core-search-edit'>\n\t\t\t<legend class='e-hideme'>{$caption}</legend>\n\t\t\t<table class='table adminform'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t<col class='col-control' />\n\t\t\t\t</colgroup>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_44 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . r_userclass("class", $search_prefs[$handler_type][$query[2]]['class'], "off", "public,guest,nobody,member,admin,classes") . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_45 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='results' value='" . $tp->toForm($search_prefs[$handler_type][$query[2]]['results']) . "' size='4' maxlength='4' />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_46 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='chars' value='" . $tp->toForm($search_prefs[$handler_type][$query[2]]['chars']) . "' size='4' maxlength='4' />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_26 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type='radio' class='radio' id='pre-title-1' name='pre_title' value='1'" . ($search_prefs[$handler_type][$query[2]]['pre_title'] == 1 ? " checked='checked'" : "") . " /><label for='pre-title-1'>" . SEALAN_22 . "</label><br />\n\t\t\t\t\t\t\t<input type='radio' class='radio' id='pre-title-0' name='pre_title' value='0'" . ($search_prefs[$handler_type][$query[2]]['pre_title'] == 0 ? " checked='checked'" : "") . " /><label for='pre-title-0'>" . SEALAN_17 . "</label><br />\n\t\t\t\t\t\t\t<input type='radio' class='radio' id='pre-title-2' name='pre_title' value='2'" . ($search_prefs[$handler_type][$query[2]]['pre_title'] == 2 ? " checked='checked'" : "") . " /><label for='pre-title-2'>" . SEALAN_23 . "</label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='pre_title_alt' value='" . $tp->toForm($search_prefs[$handler_type][$query[2]]['pre_title_alt']) . "' size='20' />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div class='buttons-bar center'>\n\t\t\t\t<button class='update' type='submit' name='update_handler' value='no-value'><span>" . LAN_UPDATE . "</span></button>\n\t\t\t</div>\n\t\t</fieldset>\n\t</form>\n\t";
    $e107->ns->tablerender($caption, $emessage->render() . $text);
} else {
Example #13
0
 $text .= "<select name='userclass_editclass' class='tbox'>" . $e_userclass->vetted_tree('userclass_editclass', array($e_userclass, 'select'), $userclass_editclass, 'nobody,public,main,admin,classes,matchclass,member') . '</select>';
 $text .= "<div class='field-help'>" . UCSLAN_32 . "</div></td>\n\t   \t</tr>\n\t\t";
 // List of class checkboxes for grouping
 $text .= "\n\t\t<tr id='userclass_type_groups'" . (UC_TYPE_STD == $userclass_type ? " style='display:none'" : "") . ">\n\t\t<td>" . UCSLAN_83 . "</td>\n\t\t<td>";
 $text .= $e_userclass->vetted_tree('group_classes_select', array($e_userclass, 'checkbox'), $userclass_groupclass, "classes,matchclass");
 $text .= "<div class='field-help'>" . UCSLAN_89 . "</div></td>\n\t  \t</tr>\n\t\t";
 $text .= "\n\t\t<tr>\n\t\t<td>" . UCSLAN_34 . "</td>\n\t\t<td>";
 $text .= "<select name='userclass_visibility' class='tbox'>" . $e_userclass->vetted_tree('userclass_visibility', array($e_userclass, 'select'), $userclass_visibility, 'main,admin,classes,matchclass,public,member,nobody') . '</select>';
 $text .= "<div class='field-help'>" . UCSLAN_33 . "</div></td>\n\t \t</tr>\n\t\t";
 $text .= "\n\t\t<tr>\n\t\t<td>" . UCSLAN_35 . "</td>\n\t\t<td>";
 $text .= "<select name='userclass_parent' class='tbox'>" . $e_userclass->vetted_tree('userclass_parent', array($e_userclass, 'select'), $userclass_parent, 'main,admin,nobody,public,classes,matchclass,member') . '</select>';
 //		.r_userclass("userclass_parent", $userclass_parent, "off", "admin,classes,matchclass,public,member").
 $text .= "<div class='field-help'>" . UCSLAN_36 . "</div></td>\n\t\t</tr></table>\n\t\t";
 $text .= "\n\t\t<div class='buttons-bar center'>";
 if ($params == 'edit') {
     $text .= $frm->admin_button('createclass', UCSLAN_14, 'create');
     $text .= $frm->admin_button('updatecancel', LAN_CANCEL, 'cancel');
     //	$text .= "<input class='button' type='submit' id='createclass' name='createclass' value='".UCSLAN_14."' />";
     //	$text .= "&nbsp;&nbsp;<input class='button' type='submit' id='updatecancel' name='updatecancel' value='".LAN_CANCEL."' />";
     $text .= "\n\t\t<input type='hidden' name='userclass_id' value='{$userclass_id}' />\n\t\t";
 } else {
     $text .= $frm->admin_button('createclass', UCSLAN_15, 'create');
     $text .= $frm->admin_button('updatecancel', LAN_CANCEL, 'cancel');
     //	$text .= "<input class='button' type='submit' id='createclass' name='createclass' value='".UCSLAN_15."' />
     //	&nbsp;&nbsp;<input class='button' type='submit' id='updatecancel' name='updatecancel' value='".LAN_CANCEL."' />";
     $text .= "\n\t    <input type='hidden' name='userclass_id' value='0' />";
 }
 $text .= "</div>";
 $text .= "</form></div><br /><br />";
 $text .= $e_userclass->show_graphical_tree();
 $ns->tablerender(UCSLAN_21, $text);
Example #14
0
/**
 *	Master routine to call to check for updates
 */
function update_check()
{
    global $ns, $dont_check_update, $e107info;
    $update_needed = FALSE;
    if ($dont_check_update === FALSE) {
        global $dbupdate, $dbupdatep, $e107cache;
        // See which core functions need update
        foreach ($dbupdate as $func => $rmks) {
            if (function_exists('update_' . $func)) {
                if (!call_user_func('update_' . $func, FALSE)) {
                    $update_needed = TRUE;
                    continue;
                }
            }
        }
        // Now check plugins
        foreach ($dbupdatep as $func => $rmks) {
            if (function_exists('update_' . $func)) {
                if (!call_user_func('update_' . $func, FALSE)) {
                    $update_needed = TRUE;
                    continue;
                }
            }
        }
        $e107cache->set_sys('nq_admin_updatecheck', time() . ',' . ($update_needed ? '2,' : '1,') . $e107info['e107_version'], TRUE);
    } else {
        $update_needed = $dont_check_update == '2';
    }
    if ($update_needed === TRUE) {
        require_once e_HANDLER . 'form_handler.php';
        $frm = new e_form();
        $txt = "\r\n\t\t<form method='post' action='" . e_ADMIN_ABS . "e107_update.php'>\r\n\t\t<div>\r\n\t\t\t" . ADLAN_120 . "\r\n\t\t\t" . $frm->admin_button('e107_system_update', LAN_UPDATE, 'update') . "\r\n\t\t</div>\r\n\t\t</form>\r\n\t\t";
        require_once e_HANDLER . 'message_handler.php';
        $emessage =& eMessage::getInstance();
        $emessage->add($txt);
    }
}