Пример #1
0
    } elseif ($do[0] == "edititem") {
        edititem($do[1]);
    } elseif ($do[0] == "drops") {
        drops();
    } elseif ($do[0] == "editdrop") {
        editdrop($do[1]);
    } elseif ($do[0] == "towns") {
        towns();
    } elseif ($do[0] == "edittown") {
        edittown($do[1]);
    } elseif ($do[0] == "monsters") {
        monsters();
    } elseif ($do[0] == "editmonster") {
        editmonster($do[1]);
    } elseif ($do[0] == "levels") {
        levels();
    } elseif ($do[0] == "editlevel") {
        editlevel();
    } elseif ($do[0] == "spells") {
        spells();
    } elseif ($do[0] == "editspell") {
        editspell($do[1]);
    } elseif ($do[0] == "users") {
        users();
    } elseif ($do[0] == "edituser") {
        edituser($do[1]);
    } elseif ($do[0] == "news") {
        addnews();
    }
} else {
    donothing();
Пример #2
0
		<th class="membersHeader">
			Group name
		</th>
		<th class="membersHeader">
			Permission
		</th>
	</tr>' . "\n";
$i = 0;
while ($row = $roster->db->fetch($result)) {
    $body .= '	<tr>' . "\n";
    $body .= '		<td class="membersRow' . ($i % 2 + 1) . '">' . "\n";
    $body .= '			' . $row['groupName'] . "\n";
    $body .= '		</td>' . "\n";
    $body .= '		<td class="membersRow' . ($i % 2 + 1) . '">';
    //."\n";
    $body .= '			' . levels($row['ID_GROUP'], $row['rosterGroup']) . "\n";
    $body .= '		</td>' . "\n";
    $body .= '	</tr>' . "\n";
    $i++;
}
//Close table
$body .= "</table>\n" . border('syellow', 'end') . "\n</div>\n";
//Build the rest of the page
$body = $roster_login->getMessage() . "<br />\n<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" id=\"config\" onsubmit=\"return confirm('" . $roster->locale->act['confirm_config_submit'] . "');submitonce(this);\">\n\t{$body}\n<br /><br />\n<input type=\"submit\" value=\"" . $roster->locale->act['config_submit_button'] . "\" />\n<input type=\"reset\" name=\"Reset\" value=\"" . $roster->locale->act['config_reset_button'] . "\" onclick=\"return confirm('" . $roster->locale->act['confirm_config_reset'] . "')\"/>\n<input type=\"hidden\" name=\"process\" value=\"process\" />\n\n</form>";
//Make the menu
$tab1 = explode('|', $roster->locale->act['admin']['smf_menu_main']);
$tab2 = explode('|', $roster->locale->act['admin']['smf_menu_permissions']);
$menu = messagebox('
<ul class="tab_menu">
	<li><a href="' . makelink('rostercp-addon-smfsync') . '" style="cursor:help;"' . makeOverlib($tab1[1], $tab1[0], '', 1, '', ',WRAP') . '>' . $tab1[0] . '</a></li>
	<li class="selected"><a href="' . makelink('rostercp-addon-smfsync-permissions') . '" style="cursor:help;"' . makeOverlib($tab2[1], $tab2[0], '', 1, '', ',WRAP') . '>' . $tab2[0] . '</a></li>