Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: adminfunctions.php 2263 2006-09-26 09:24:25Z chris $
| * $Id: adminfunctions.php 2454 2006-11-28 17:30:16Z CraKteR $
|
*/
$cssselectors = array(
| */
$cssselectors = array(
|
Zeile 116 | Zeile 116 |
---|
echo "<tr><td class=\"hoptobuttons\">"; if(!is_array($links)) {
|
echo "<tr><td class=\"hoptobuttons\">"; if(!is_array($links)) {
|
$links[] = $links;
| $links = array($links);
|
} foreach($links as $key => $val) {
| } foreach($links as $key => $val) {
|
Zeile 369 | Zeile 369 |
---|
} if(!is_array($options)) {
|
} if(!is_array($options)) {
|
$options[] = $options;
| $options = array($options);
|
} foreach($options as $value => $label) {
| } foreach($options as $value => $label) {
|
Zeile 971 | Zeile 971 |
---|
{ if(!is_array($values)) {
|
{ if(!is_array($values)) {
|
$values[] = $values;
| $values = array($values);
|
} foreach($values as $action => $title) {
| } foreach($values as $action => $title) {
|
Zeile 980 | Zeile 980 |
---|
$buttononchange = ""; if($onchange) {
|
$buttononchange = ""; if($onchange) {
|
$buttononchange = " onclick=\"{$onchange} this.form.submit(); return false;\""; $onchange .= " "; }
| $buttononchange = " onclick=\"{$onchange} this.form.submit(); return false;\""; $onchange .= " "; }
|
return "<select name=\"$name\" onchange=\"{$onchange}this.form.submit();\">\n$options</select>\n \n<input type=\"submit\" value=\"Go\"$buttononchange />\n"; }
| return "<select name=\"$name\" onchange=\"{$onchange}this.form.submit();\">\n$options</select>\n \n<input type=\"submit\" value=\"Go\"$buttononchange />\n"; }
|
Zeile 997 | Zeile 997 |
---|
* @param string Optional label for the value -1 * @param string Optional label for the value -2 * @return string The completed dropdown
|
* @param string Optional label for the value -1 * @param string Optional label for the value -2 * @return string The completed dropdown
|
*/
| */
|
function forumselect($name, $selected="",$fid="0",$depth="", $shownone="1", $extra="", $extra2="") { global $db, $forumselect, $lang, $cforumcache;
|
function forumselect($name, $selected="",$fid="0",$depth="", $shownone="1", $extra="", $extra2="") { global $db, $forumselect, $lang, $cforumcache;
|
if(!is_array($cforumcache)) { $options = array( 'order_by' => 'disporder' ); $query = $db->simple_select(TABLE_PREFIX."forums", "name, fid, pid", "", $options); while($forum = $db->fetch_array($query)) { $cforumcache['pid'][$forum['pid']][$forum['fid']] = $forum; $cforumcache['fid'][$forum['fid']] = $forum; } }
| if(!is_array($cforumcache)) { $options = array( 'order_by' => 'disporder' ); $query = $db->simple_select(TABLE_PREFIX."forums", "name, fid, pid", "", $options); while($forum = $db->fetch_array($query)) { $cforumcache['pid'][$forum['pid']][$forum['fid']] = $forum; $cforumcache['fid'][$forum['fid']] = $forum; } }
|
if(!$fid) { $forumselect .= "<select name=\"$name\">";
| if(!$fid) { $forumselect .= "<select name=\"$name\">";
|
Zeile 1043 | Zeile 1043 |
---|
if($shownone) { $forumselect .= "<option value=\"0\">$lang->parentforum_none</option><option value=\"0\">-----------</option>";
|
if($shownone) { $forumselect .= "<option value=\"0\">$lang->parentforum_none</option><option value=\"0\">-----------</option>";
|
} $fid = 0;
| } $fid = 0;
|
} else {
| } else {
|
Zeile 1092 | Zeile 1092 |
---|
); $query = $db->simple_select(TABLE_PREFIX."forums", "name, fid, pid", "", $options); while($forum = $db->fetch_array($query))
|
); $query = $db->simple_select(TABLE_PREFIX."forums", "name, fid, pid", "", $options); while($forum = $db->fetch_array($query))
|
{
| {
|
$cforumcache['pid'][$forum['pid']][$forum['fid']] = $forum; $cforumcache['fid'][$forum['fid']] = $forum; }
| $cforumcache['pid'][$forum['pid']][$forum['fid']] = $forum; $cforumcache['fid'][$forum['fid']] = $forum; }
|
Zeile 1108 | Zeile 1108 |
---|
$selected = array($selected); } if(in_array(-1, $selected))
|
$selected = array($selected); } if(in_array(-1, $selected))
|
{
| {
|
$selected1 = ' checked="checked"'; } $forumchecklist .= "<input type=\"checkbox\" name=\"{$name}[]\" value=\"-1\"$selected1 /> $extra <br /><br />\n";
| $selected1 = ' checked="checked"'; } $forumchecklist .= "<input type=\"checkbox\" name=\"{$name}[]\" value=\"-1\"$selected1 /> $extra <br /><br />\n";
|
Zeile 1139 | Zeile 1139 |
---|
}
function checkadminpermissions($action)
|
}
function checkadminpermissions($action)
|
{
| {
|
global $mybb, $lang; $perms = getadminpermissions($mybb->user['uid']); if($perms[$action] != "yes")
| global $mybb, $lang; $perms = getadminpermissions($mybb->user['uid']); if($perms[$action] != "yes")
|
Zeile 1169 | Zeile 1169 |
---|
// What are we trying to find? if($get_gid && !$get_uid)
|
// What are we trying to find? if($get_gid && !$get_uid)
|
{ $options = array( "order_by" => "uid",
| { $options = array( "order_by" => "uid",
|
"order_dir" => "ASC", "limit" => "1" );
| "order_dir" => "ASC", "limit" => "1" );
|
Zeile 1235 | Zeile 1235 |
---|
if(trim($vale[0]) != "" && trim($vale[1]) != "") { if($vale[0] != "action" && $vale[0] != "adminsid")
|
if(trim($vale[0]) != "" && trim($vale[1]) != "") { if($vale[0] != "action" && $vale[0] != "adminsid")
|
{
| {
|
$querystring .= "$sep$vale[0] = $vale[1]"; $sep = " / "; }
| $querystring .= "$sep$vale[0] = $vale[1]"; $sep = " / "; }
|
Zeile 1995 | Zeile 1995 |
---|
} echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>"; echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";
|
} echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>"; echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";
|
| |
} echo "<option value=\"\" style=\"font-weight: bold;\">$lang->other_options</option>\n"; echo "<option value=\"download\">- $lang->export_theme</option>\n";
| } echo "<option value=\"\" style=\"font-weight: bold;\">$lang->other_options</option>\n"; echo "<option value=\"download\">- $lang->export_theme</option>\n";
|