<tr> <td><b>' . $_language->module['position'] . '</b></td> <td><input type="text" name="position[' . $ds['sqmID'] . ']" value="' . getinput($ds['position']) . '" size="60" />' . $activity . '</td> </tr> <tr> <td><b>' . $_language->module['access_rights'] . '</b></td> <td>' . $_language->module['joinus_admin'] . ': ' . $join . ' ' . $_language->module['fightus_admin'] . ': ' . $fight . '</td> </tr>'; } } if (isnewsadmin($id)) { $news = '<input type="checkbox" name="newsadmin" value="1" onmouseover="showWMTT(\'id1\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $news = '<input type="checkbox" name="newsadmin" value="1" onmouseover="showWMTT(\'id1\')" onmouseout="hideWMTT()" />'; } if (isnewswriter($id)) { $newswriter = '<input type="checkbox" name="newswriter" value="1" onmouseover="showWMTT(\'id2\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $newswriter = '<input type="checkbox" name="newswriter" onmouseover="showWMTT(\'id2\')" onmouseout="hideWMTT()" value="1" />'; } if (ispollsadmin($id)) { $polls = '<input type="checkbox" name="pollsadmin" value="1" onmouseover="showWMTT(\'id3\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $polls = '<input type="checkbox" name="pollsadmin" value="1" onmouseover="showWMTT(\'id3\')" onmouseout="hideWMTT()" />'; } if (isfeedbackadmin($id)) { $feedback = '<input type="checkbox" name="feedbackadmin" value="1" onmouseover="showWMTT(\'id4\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $feedback = '<input type="checkbox" name="feedbackadmin" value="1" onmouseover="showWMTT(\'id4\')" onmouseout="hideWMTT()" />'; } if (isuseradmin($id)) {
if ($ds['link3'] && $ds['url3'] != "http://" && $ds['window3']) { $related .= '• <a href="' . $ds['url3'] . '" target="_blank">' . $ds['link3'] . '</a> '; } if ($ds['link3'] && $ds['url3'] != "http://" && !$ds['window3']) { $related .= '• <a href="' . $ds['url3'] . '">' . $ds['link3'] . '</a> '; } if ($ds['link4'] && $ds['url4'] != "http://" && $ds['window4']) { $related .= '• <a href="' . $ds['url4'] . '" target="_blank">' . $ds['link4'] . '</a> '; } if ($ds['link4'] && $ds['url4'] != "http://" && !$ds['window4']) { $related .= '• <a href="' . $ds['url4'] . '">' . $ds['link4'] . '</a> '; } if (empty($related)) { $related = "n/a"; } if (isnewsadmin($userID) or isnewswriter($userID) and $ds['poster'] == $userID) { $adminaction = '<input type="button" onclick="MM_openBrWindow(\'news.php?action=edit&newsID=' . $ds['newsID'] . '\',\'News\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=600\')" value="' . $_language->module['edit'] . '" /> <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'news.php?action=delete&id=' . $ds['newsID'] . '\')" value="' . $_language->module['delete'] . '" />'; } else { $adminaction = ''; } $bg1 = BG_1; eval("\$news = \"" . gettemplate("news") . "\";"); echo $news; if (isnewsadmin($userID)) { if (!$ds['published']) { echo '<form method="post" action="news.php?quickactiontype=publish"><input type="hidden" name="newsID[]" value="' . $ds['newsID'] . '" /><input type="submit" name="submit" value="' . $_language->module['publish_now'] . '" /></form>'; } else { echo '<form method="post" action="news.php?quickactiontype=unpublish"><input type="hidden" name="newsID[]" value="' . $ds['newsID'] . '" /><input type="submit" name="submit" value="' . $_language->module['unpublish'] . '" /></form>'; } }
if ($ds['link3'] && $ds['url3'] != "http://" && $ds['window3']) { $related .= '• <a href="' . $ds['url3'] . '" target="_blank">' . $ds['link3'] . '</a> '; } if ($ds['link3'] && $ds['url3'] != "http://" && !$ds['window3']) { $related .= '• <a href="' . $ds['url3'] . '">' . $ds['link3'] . '</a> '; } if ($ds['link4'] && $ds['url4'] != "http://" && $ds['window4']) { $related .= '• <a href="' . $ds['url4'] . '" target="_blank">' . $ds['link4'] . '</a> '; } if ($ds['link4'] && $ds['url4'] != "http://" && !$ds['window4']) { $related .= '• <a href="' . $ds['url4'] . '">' . $ds['link4'] . '</a> '; } if (empty($related)) { $related = "n/a"; } if (isnewsadmin($userID) || isnewswriter($userID) && $ds['poster'] == $userID) { $adminaction = '<input type="button" onclick="window.open( \'news.php?action=edit&newsID=' . $ds['newsID'] . '\', \'News\', \'toolbar=no,status=no,scrollbars=yes,width=800,height=600\' )" value="' . $_language->module['edit'] . '" class="btn btn-danger"> <input type="button" onclick="MM_confirm( \'' . $_language->module['really_delete'] . '\', \'news.php?action=delete&id=' . $ds['newsID'] . '\' )" value="' . $_language->module['delete'] . '" class="btn btn-danger">'; } else { $adminaction = ''; } $query1 = safe_query("SELECT * FROM " . PREFIX . "user"); $qry1 = mysqli_fetch_array($query1); if ($qry1['username'] || $qry1['nickname']) { if ($qry1['userpic'] == '') {