function dns_create_html_superoverzicht($account) { global $lang; global $mysqli_dns; if (!isset($mysqli_dns) || empty($mysqli_dns)) { create_db_connection('mysqli_dns', 'dns'); } global $mysqli_dns; if (get_value_get('sort') != FALSE) { $supermasters = dns_get_number_supermasters($account, get_value_get('sort')); } else { $supermasters = dns_get_number_supermasters($account); } if ($supermasters == FALSE) { $html .= '<div class="content"><p>' . $lang->translate(779) . '</p></div><br /><br />'; } else { $html .= '<div class=tablestop2><table>'; $html .= '<tr><td colspan="5">'; $html .= '<div style="float: left;"> '; $html .= '</td></tr>'; $html .= '<tr><td>' . $lang->translate(784) . ''; if (get_value_session('from_db', 'is_admin') == '1') { if (get_value_get('id') !== FALSE) { $html .= '<div style="float: right;"><a href="?page=dns&type=supertoevoegen&id=' . get_value_get('id') . '"><img src="' . $template_dir . 'plus.png" border="0" valign="middle" title="' . $lang->translate(334) . '"></a></div>'; } } $html .= '</td><td>' . $lang->translate(785) . ''; if (get_value_session('from_db', 'is_admin') == '1') { if (get_value_get('id') !== FALSE) { $html .= '<div style="float: right;"><a href="?page=dns&type=supertoevoegen&id=' . get_value_get('id') . '"><img src="' . $template_dir . 'plus.png" border="0" valign="middle" title="' . $lang->translate(334) . '"></a></div>'; } } $html .= '</td><td>' . $lang->translate(786) . '</td><td colspan="2">' . $lang->translate(787) . '</td></tr>'; foreach ($supermasters as $supermaster) { $domains = dns_get_value_supermaster($supermaster['ip'], $account); if ($domains === FALSE) { $domains['count'] = 0; } $html .= '<tr><td>'; $html .= $supermaster['ip']; $html .= '</td><td>'; $html .= $supermaster['nameserver']; $html .= '</td><td>'; $html .= $domains['count']; $html .= '</td><td width="25px">'; if (check_user_right(get_value_session('from_db', 'id'), 'dnssmbewerken', get_value_session('from_db', 'is_admin')) != FALSE) { $html .= '<center><a href="?lang=' . lang_get_value_defaultlang() . '&page=dns&type=superbewerken&id=' . get_value_get('id') . '&superid=' . $supermaster['id'] . '"><img src="' . $template_dir . 'wijzigen.png" border="0" title="' . $lang->translate(788) . '"></a></center>'; } $html .= '</td><td width="25px">'; if (check_user_right(get_value_session('from_db', 'id'), 'dnssmverwijderen', get_value_session('from_db', 'is_admin')) != FALSE) { $html .= '<center><a href="javascript:confirm_text(\'' . $lang->translate(797) . '\', \'?lang=' . lang_get_value_defaultlang() . '&page=dns&type=superverwijderen&id=' . get_value_get('id') . '&superid=' . $supermaster['id'] . '\')"><img src="' . $template_dir . 'verwijderen.png" border="0" title="' . $lang->translate(789) . '"></a></center>'; } $html .= '</td></tr>'; } $html .= '</table></div>'; } return $html; }
function stream_do_action_search($id, $search, $admin = 2) { global $lang; global $mysqli; if (!isset($mysqli) || empty($mysqli)) { create_db_connection('mysqli', 'central'); } global $mysqli; $results = 0; $sql = 'SELECT * FROM `stream_streams` WHERE `poort` LIKE "%' . $mysqli->real_escape_string($search) . '%" AND account LIKE "' . $mysqli->real_escape_string($id) . '" OR `bitrate` LIKE "%' . $mysqli->real_escape_string($search) . '%" AND account LIKE "' . $mysqli->real_escape_string($id) . '" OR `admin_user` LIKE "%' . $mysqli->real_escape_string($search) . '%" AND account LIKE "' . $mysqli->real_escape_string($id) . '" OR `name` LIKE "%' . $mysqli->real_escape_string($search) . '%" AND account LIKE "' . $mysqli->real_escape_string($id) . '" OR `host` LIKE "%' . $mysqli->real_escape_string($search) . '%" AND account LIKE "' . $mysqli->real_escape_string($id) . '"'; $query = $mysqli->query($sql); if (!isset($query) || empty($query) || $query->num_rows == "0") { } else { while ($row = $query->fetch_array(MYSQLI_ASSOC)) { $results = 1; $array[$row['id']] = $row; } } if ($results !== 1) { return FALSE; } $html = '<br /><table border="1">'; $html .= '<tr><td>' . $lang->translate(901) . '</td><td>' . $lang->translate(917) . '</td><td>' . $lang->translate(902) . '</td><td>' . $lang->translate(903) . '</td><td>' . $lang->translate(787) . '</td></tr>'; foreach ($array as $stream) { $html .= '<tr><td>'; $html .= $stream['name']; $html .= '</td><td>'; $html .= $stream['host'] . '</td><td>' . $stream['poort']; $html .= '</td><td>'; $html .= $stream['max_listeners']; $html .= '</td><td>'; $slash = 0; if (check_user_right(get_value_session('from_db', 'id'), 'streambekijken', get_value_session('from_db', 'is_admin')) != FALSE) { if ($slash === 1) { $html .= ' / '; } $html .= '<a href="?lang=' . lang_get_value_defaultlang() . '&page=stream&type=streambekijken&id=' . $stream['account'] . '&streamid=' . $stream['id'] . '">' . $lang->translate(216) . '</a>'; $slash = 1; } if (check_user_right(get_value_session('from_db', 'id'), 'streambewerken', get_value_session('from_db', 'is_admin')) != FALSE) { if ($slash === 1) { $html .= ' / '; } $html .= '<a href="?lang=' . lang_get_value_defaultlang() . '&page=stream&type=streambewerken&id=' . $stream['account'] . '&streamid=' . $stream['id'] . '">' . $lang->translate(788) . '</a>'; $slash = 1; } if (check_user_right(get_value_session('from_db', 'id'), 'streamverwijderen', get_value_session('from_db', 'is_admin')) != FALSE) { if ($slash === 1) { $html .= ' / '; } $html .= '<a href="?lang=' . lang_get_value_defaultlang() . '&page=stream&type=streamverwijderen&id=' . $stream['account'] . '&streamid=' . $stream['id'] . '">' . $lang->translate(789) . '</a>'; $slash = 1; } $html .= '</td></tr>'; } $html .= '</table>'; return $html; }
$html .= '<tr>'; $html .= '<td><a href="?page=gegevens&type=email"><img src="' . $template_dir . '/desktop_email.png" border="0"></a></td>'; $html .= '<td><a href="?page=gegevens&type=api"><img src="' . $template_dir . '/desktop_api.png" border="0"></a></td>'; $html .= '<td><a href="?page=gegevens&type=wachtwoord"><img src="' . $template_dir . '/desktop_wachtwoord.png" border="0"></a></td>'; $html .= '<td> </td>'; $html .= '<td> </td>'; $html .= '</tr>'; $html .= '<tr>'; $html .= '<td><a href="?page=gegevens&type=email">' . $lang->translate(9) . '</a></td>'; $html .= '<td><a href="?page=gegevens&type=api">' . $lang->translate(122) . '</a></td>'; $html .= '<td><a href="?page=gegevens&type=wachtwoord">' . $lang->translate(221) . '</a></td>'; $html .= '<td> </td>'; $html .= '<td> </td>'; $html .= '</tr>'; $html .= '</table></div>'; } elseif (get_value_get('type') == 'api' && check_user_right(get_value_session('from_db', 'id'), 'apitoegang', get_value_session('from_db', 'is_admin')) != FALSE) { $html = '<div class="paginatitel">' . $lang->translate(119) . '</div><div class="content"><br /><p>'; $html .= $lang->translate(120) . ': ' . get_value_session('from_db', 'username') . '<br />'; $html .= $lang->translate(121) . ': ' . base64_encode(get_value_session('from_db', 'pass')) . '<br /><br /></p></div>'; } elseif (get_value_get('type') == 'email') { $melding = ''; if (get_value_post('submit') != FALSE) { if (get_value_post('email') == FALSE) { $melding = '<b>' . $lang->translate(114) . '</b><br />' . $lang->translate(115) . '<br />'; } elseif (gegevens_do_action_changemail(get_value_post('email'), get_value_session('from_db', 'id'), get_value_session('from_db', 'pass')) == FALSE) { $melding = '<b>' . $lang->translate(114) . '</b><br />' . $lang->translate(116) . '<br />'; } else { $melding = $lang->translate(117) . '<br />'; $_SESSION['login'] = 0; if (check_is_loggedin() == FALSE) { if (isset($_POST) && !empty($_POST) && isset($_POST['login']) && !empty($_POST['login'])) {
$html .= '<center><a href="?lang=' . lang_get_value_defaultlang() . '&page=producten&type=bekijken&id=' . $product['id'] . '&p=' . $product['type'] . '"><img src="' . $template_dir . '/info.png" border="0" title="' . $lang->translate(1200) . '"></a></center>'; } $html .= '</td><td width="25px">'; if (check_user_right(get_value_session('from_db', 'id'), 'pakketbewerken', get_value_session('from_db', 'is_admin')) != FALSE) { if ($product['user_id'] != get_value_session('from_db', 'id') || get_value_session('from_db', 'is_admin') == 1) { $html .= '<center><a href="?lang=' . lang_get_value_defaultlang() . '&page=producten&type=bewerken&id=' . $product['id'] . '&p=' . $product['type'] . '"><img src="' . $template_dir . '/wijzigen.png" border="0" title="' . $lang->translate(1202) . '"></a></center>'; } } $html .= '</td><td width="25px">'; if (check_user_right(get_value_session('from_db', 'id'), 'pakketoverdragen', get_value_session('from_db', 'is_admin')) != FALSE) { if ($product['user_id'] != get_value_session('from_db', 'id') || get_value_session('from_db', 'is_admin') == 1) { $html .= '<center><a href="?lang=' . lang_get_value_defaultlang() . '&page=producten&type=overdragen&id=' . $product['id'] . '"><img src="' . $template_dir . '/overdragen.png" border="0" title="' . $lang->translate(1201) . '"></a></center>'; } } $html .= '</td><td width="25px">'; if (check_user_right(get_value_session('from_db', 'id'), 'pakketverwijderen', get_value_session('from_db', 'is_admin')) != FALSE) { if ($product['user_id'] != get_value_session('from_db', 'id') || get_value_session('from_db', 'is_admin') == 1) { $html .= '<center><a href="javascript:confirm_text(\'' . $lang->translate(675) . '\', \'?lang=' . lang_get_value_defaultlang() . '&page=producten&type=verwijderen&id=' . $product['id'] . '&p=' . $product['type'] . '\')"><img src="' . $template_dir . '/verwijderen.png" border="0" title="' . $lang->translate(1203) . '"></a></center>'; } } $html .= '</td></tr>'; } $html .= '</table></div>'; } } else { $html .= '<br /><br />' . $lang->translate(626) . '<br /><br />'; } } else { $html = '<b>' . $lang->translate(625) . '</b>'; $html .= '<br /><br />' . $lang->translate(626) . '<br /><br />'; }
function pakketten_do_action_html_stream() { global $lang; $option = '<option value="none"></option>'; if (check_user_right(get_value_session('from_db', 'id'), 'stream', get_value_session('from_db', 'is_admin')) == FALSE) { $html = '' . $lang->translate(635) . '<br /><br />'; } else { if (get_value_session('from_db', 'is_admin') == '1') { $users = get_subusers('0', 3); $userdata = get_userdata(get_value_session('from_db', 'id')); $options = '<option value="' . $userdata['id'] . '">' . $userdata['username'] . '</option>'; } else { $users = get_subusers(get_value_session('from_db', 'id'), 3); $options = '<option value=""></option>'; } if (is_array($users) != FALSE) { foreach ($users as $user) { if ($user['id'] !== get_value_session('from_db', 'id')) { $userdata = get_userdata($user['id']); $options .= '<option value="' . $userdata['id'] . '">' . $userdata['username'] . '</option>'; } } } $html = '<form name="form1" method="post" action=""><input type="hidden" id="step2" name="step2" value="step2"><input type="hidden" id="type" name="type" value="stream">'; $html .= '<table><tr><td>' . $lang->translate(900) . '</td><td><input type="text" id="listeners" name="listeners"></td></tr>'; $html .= '<tr><td>' . $lang->translate(659) . '</td><td><select name="klant">' . $options . '</select></td></tr>'; $html .= '<tr><td></td><td><input type="submit" value="' . $lang->translate(644) . '" id="submit" name="submit"></td></tr></table></form>'; } return $html; }
$replace = stream_do_action_replace_streamdetails(get_value_get('id'), get_value_get('streamid'), get_value_session('from_db', 'is_admin')); if ($replace === FALSE) { $html .= '<br /><br />' . $lang->translate(934) . '<br />'; } else { $html .= '<br /><br />' . $lang->translate(935) . '<br />'; } } $html .= stream_create_html_streamdetails(get_value_get('id'), get_value_get('streamid'), 'bewerk', get_value_session('from_db', 'is_admin')); } elseif (get_value_get('type') == 'streamverwijderen' && check_user_right(get_value_session('from_db', 'id'), 'streamverwijderen', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE) { $html .= stream_do_action_delete(get_value_get('streamid'), get_value_get('id'), get_value_session('from_db', 'is_admin')); } elseif (get_value_get('type') == 'streamstart' && check_user_right(get_value_session('from_db', 'id'), 'stream', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE && get_value_get('streamid') !== FALSE) { $html .= stream_create_html_action(get_value_get('id'), get_value_get('streamid'), get_value_get('type')); $html .= '<br /><br />' . $lang->translate(603) . ''; $html .= stream_create_html_overview(get_value_get('id')); } elseif (get_value_get('type') == 'streamstop' && check_user_right(get_value_session('from_db', 'id'), 'stream', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE && get_value_get('streamid') !== FALSE) { $html .= stream_create_html_action(get_value_get('id'), get_value_get('streamid'), get_value_get('type')); $html .= '<br /><br />' . $lang->translate(603) . ''; $html .= stream_create_html_overview(get_value_get('id')); } elseif (get_value_get('type') == 'streamdjstart' && check_user_right(get_value_session('from_db', 'id'), 'stream', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE && get_value_get('streamid') !== FALSE) { $html .= stream_create_html_action(get_value_get('id'), get_value_get('streamid'), get_value_get('type')); $html .= '<br /><br />' . $lang->translate(603) . ''; $html .= stream_create_html_overview(get_value_get('id')); } elseif (get_value_get('type') == 'streamdjstop' && check_user_right(get_value_session('from_db', 'id'), 'stream', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE && get_value_get('streamid') !== FALSE) { $html .= stream_create_html_action(get_value_get('id'), get_value_get('streamid'), get_value_get('type')); $html .= '<br /><br />' . $lang->translate(603) . ''; $html .= stream_create_html_overview(get_value_get('id')); } else { $html .= '<br /><br />' . $lang->translate(603) . ''; $html .= stream_create_html_overview(get_value_get('id')); } }
$html .= $search; } } else { $html .= dns_create_html_search('super'); } } elseif (get_value_get('type') == 'superoverzicht' && check_user_right(get_value_session('from_db', 'id'), 'dnssmoverzicht', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE) { $html .= dns_create_html_superoverzicht(get_value_get('id')); } elseif (get_value_get('type') == 'supertoevoegen' && check_user_right(get_value_session('from_db', 'id'), 'dnssmtoevoegen', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE) { if (get_value_post('submit') != FALSE) { $html .= dns_do_action_supertoevoegen(get_value_get('id')); } else { $html .= dns_create_html_supertoevoegen(get_value_get('id')); } } elseif (get_value_get('type') == 'superbewerken' && check_user_right(get_value_session('from_db', 'id'), 'dnssmbewerken', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE) { if (get_value_post('submit') != FALSE) { $html .= dns_do_action_superbewerken(get_value_get('id'), get_value_get('superid'), get_value_session('from_db', 'admin')); } else { $html .= dns_create_html_superbewerken(get_value_get('id'), get_value_get('superid'), get_value_session('from_db', 'admin')); } } elseif (get_value_get('type') == 'superverwijderen' && check_user_right(get_value_session('from_db', 'id'), 'dnssmverwijderen', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE) { $html .= dns_do_action_delete(get_value_get('superid'), get_value_get('id'), 'super', get_value_session('from_db', 'is_admin')); $html .= dns_create_html_superoverzicht(get_value_get('id')); } elseif (get_value_get('type') == 'domsuperontkoppelen' && check_user_right(get_value_session('from_db', 'id'), 'dnssmdomontkop', get_value_session('from_db', 'is_admin')) !== FALSE && get_value_get('id') !== FALSE) { $html .= dns_do_action_superontkoppelen(get_value_get('domid'), get_value_get('id'), get_value_session('from_db', 'is_admin')); } else { //$html .= '<br /><br />'.$lang->translate(603).''; $html .= dns_create_html_overview(get_value_get('id'), 'domain'); } } else { $html .= '<br /><br />' . $lang->translate(601) . '<br /><br />'; }