Exemplo n.º 1
0


	    </head>

	    <body>
			<div id="header">
	        	<div id="container">
	                <div id="login">
	                   <p >' . $lang->translate(21) . '</p>  
					   ' . get_value_session('from_db', 'username') . '<br />
					   ' . get_value_session('from_db', 'email') . '
	                </div> 
	                <div id="slogan">
					<h1> ' . get_value_session('from_db', 'handelsnaam') . ' </h1>
	                    <p> <a href="' . get_value_session('from_db', 'home_page') . '" target="_blank">' . $lang->translate(20) . '</a> </p>
	                </div> 
	                 <div id="logo">
	                    <a href="index.php"><img src="img/default/logo.jpg" alt=""/></a>
	                </div> 
	             </div>
	        </div>
	        <div id="menu_top">
	    	    <p>     </p>
	        </div> 
			<div id="wrapper_main">
	            <div id="wrapper_left">    
	            	<div id="wrapper_mainmenu">';
foreach ($menu as $hoofdmenu => $hmitem) {
    $content .= '<div class="item_parent">' . $hoofdmenu . '</div>';
    foreach ($hmitem as $submenu => $smitem) {
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
function stream_do_action_toevoegen($account, $admin = 2)
{
    global $lang;
    global $stream_bitrates;
    global $stream_host_poorten;
    global $mysqli;
    if (!isset($mysqli) || empty($mysqli)) {
        create_db_connection('mysqli', 'central');
    }
    global $mysqli;
    $bitrate = FALSE;
    $host = FALSE;
    $poort = FALSE;
    $admin_user = FALSE;
    $admin_pass = FALSE;
    $name = FALSE;
    $max_listeners = FALSE;
    foreach ($stream_bitrates as $type) {
        if (get_value_post('bitrate') == $type) {
            $bitrate = $type;
        }
    }
    $post_port = get_value_post('poort');
    if ($post_port !== FALSE) {
        $post_port2 = explode(':', $post_port);
        foreach ($stream_host_poorten as $hostname => $ports) {
            if ($post_port2[0] == $hostname) {
                foreach ($ports as $port) {
                    if ($post_port2[1] == $port) {
                        $sql = 'SELECT * FROM `stream_streams` WHERE `host` LIKE "' . $mysqli->real_escape_string($hostname) . '" AND `poort` LIKE "' . $mysqli->real_escape_string($port) . '" LIMIT 1';
                        $query = $mysqli->query($sql);
                        if (!isset($query) || empty($query) || $query->num_rows == "0") {
                            $poort = $port;
                            $host = $hostname;
                        }
                    }
                }
            }
        }
    }
    $admin_user = get_value_post('admin_user');
    $admin_pass = get_value_post('admin_pass');
    $name = get_value_post('name');
    $max_listeners = get_value_post('max_listeners');
    $genre = get_value_post('genre');
    $description = get_value_post('description');
    $url = get_value_post('url');
    $source_pass = get_value_post('source_pass');
    $relay_pass = get_value_post('relay_pass');
    $mountpoint = get_value_post('mountpoint');
    $master_server = get_value_post('master_server');
    $master_port = get_value_post('master_port');
    $master_user = get_value_post('master_user');
    $master_pass = get_value_post('master_pass');
    $ftp_pass = get_value_post('ftp_pass');
    $streamtype = get_value_post('streamtype');
    $shoutcastkey = get_value_post('shoutcastkey');
    if ($bitrate === FALSE || $host === FALSE || $poort === FALSE || $admin_user === FALSE || $admin_pass === FALSE || $name === FALSE || $max_listeners === FALSE) {
        $html = '<br /><br />' . $lang->translate(929) . '<br /><br />';
    } else {
        $availablelisteners = pakketten_get_value_size_stream(get_value_session('from_db', 'id'), 'listeners') - pakketten_get_value_used_stream(get_value_session('from_db', 'id'), 'listeners');
        if ($max_listeners < $availablelisteners) {
            $sql2 = 'INSERT INTO `stream_streams` (`poort`,`admin_user`,`admin_pass`,`max_listeners`,`bitrate`,`account`,`name`,`host`,`genre`,`description`,`url`,`source_pass`,`relay_pass`,`mountpoint`,`master_server`,`master_port`,`master_user`,`master_pass`,`changed2`,`changed`,`type`,`shoutcastkey`) VALUES ("' . $mysqli->real_escape_string($poort) . '","' . $mysqli->real_escape_string($admin_user) . '","' . $mysqli->real_escape_string($admin_pass) . '","' . $mysqli->real_escape_string($max_listeners) . '","' . $mysqli->real_escape_string($bitrate) . '","' . $mysqli->real_escape_string($account) . '","' . $mysqli->real_escape_string($name) . '","' . $mysqli->real_escape_string($host) . '","' . $mysqli->real_escape_string($genre) . '","' . $mysqli->real_escape_string($description) . '","' . $mysqli->real_escape_string($url) . '","' . $mysqli->real_escape_string($source_pass) . '","' . $mysqli->real_escape_string($relay_pass) . '","' . $mysqli->real_escape_string($mountpoint) . '","' . $mysqli->real_escape_string($master_server) . '","' . $mysqli->real_escape_string($master_port) . '","' . $mysqli->real_escape_string($master_user) . '","' . $mysqli->real_escape_string($master_pass) . '","1","1","' . $mysqli->real_escape_string($streamtype) . '","' . $mysqli->real_escape_string($shoutcastkey) . '")';
            $mysqli->query($sql2);
            $id = $mysqli->insert_id;
            if (get_value_post('ftp_pass') != FALSE && get_value_post('ftp_pass') != '') {
                $sql = 'INSERT INTO `stream_ftpuser` (`userid`,`passwd`,`homedir`) VALUES ("stream' . $id . '","' . $mysqli->real_escape_string(get_value_post('ftp_pass')) . '","/home/icecast/stream' . $id . '")';
                $mysqli->query($sql);
                $sql = 'INSERT INTO `stream_ftpquotalimits` (`name`,`limit_type`) VALUES ("stream' . $id . '","hard")';
                $mysqli->query($sql);
            }
            $html = '<br /><br />' . $lang->translate(930) . '<br /><br />';
        } else {
            $html = '<br /><br />' . $lang->translate(931) . '<br /><br />';
        }
    }
    return $html;
}
Exemplo n.º 4
0
            //var_dump($submenu);
            //var_dump($smitem);
            $content .= '<div class="item_child"><img src="' . $template_dir . '' . $smitem['plaatje'] . '" border="0" valign=middle><a href="?lang=' . lang_get_value_defaultlang() . '' . $smitem['url'] . '">' . $submenu . '</a></div>';
        }
    }
}
$content .= ' </div>	
	                
	                <div id="bottom"> 
	                </div>  			
	             </div>
	             <div id="wrapper_center">';
$content .= '<div id="path">
	                	<div class="wrapper">
	                    </div>
	                </div><div id="content">';
$linkback = get_linkback();
if ($linkback !== FALSE) {
    $content .= '<div class="back"><a href="' . $linkback . '"><img src="' . $template_dir . 'back_top.png" border="0" valign="middle" title="' . $lang->translate(1105) . '"></a></div>';
} else {
    $content .= '<div class="back"><img src="' . $template_dir . 'home_top.png" border="0" valign="middle"></div>';
}
if (get_value_session('from_db', 'is_admin') != FALSE || get_value_session('from_db', 'is_admin') != 0) {
    $html .= get_current_version($cp_version);
}
$content .= '<p>' . $html . '<br /></p></div>
	            
	    		</div>          
			</div>  
			<div class="footer"><div id="footertext">ver.' . $cp_version . '</div></div>
</html>';
Exemplo n.º 5
0
    $html .= '<tr><td>' . $lang->translate(103) . '</td><td><input type="password" id="password" name="password"></td></tr>';
    $html .= '<tr><td>' . $lang->translate(104) . '</td><td><input type="password" id="password2" name="password2"></td></tr></table></div>';
    $html .= '<div class="content"><p><input type="submit" value="' . $lang->translate(105) . '" id="submit" name="submit" class="button"></p></div></form><br /><br />';
} elseif (get_value_get('type') == 'feedback') {
    $melding = '';
    if (get_value_post('submit') != FALSE) {
        $melding = '<br /><br />' . $lang->translate(150) . '<br /><br />';
        $message = "Via het contact formulier op dnsshop heeft " . get_value_post('naam') . " (" . get_value_post('mail234') . ") onderstaande feedback gegevens: \r\n\r\n " . get_value_post('inhoud') . "\r\n Het IP adres van " . get_value_post('naam') . " is " . $_SERVER["REMOTE_ADDR"] . " en de login is " . get_value_session('from_db', 'username') . ".";
        $subject = "Feedback via contactformulier op dnsshop: " . get_value_post('onderwerp');
        $headers = "MIME-Version: 1.0\r\n" . "Content-type: multipart/alternative\r\n" . " \tboundary=\"----=_NextPart_000_002A_01C5CD23.F7D29650\"\r\n" . "X-Priority: 3\r\n" . "X-MSMail-Priority: Normal\r\n" . "X-Mailer: Microsoft Outlook Express 6.00.2900.2670\r\n" . "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670\r\n" . "From: " . get_value_post('mail234') . "  (" . get_value_post('naam') . " )\r\n" . "Subject: " . $subject . "";
        mail("info@streamservice.nl", $subject, $message, $header);
    }
    $html = '<div class="paginatitel">' . $lang->translate(33) . '</div><div class="content"><p><br />' . $melding . '<br /></p></div>';
    $html .= '<form name="form1" method="post" action=""><div class="formtable"><table><tr><td colspan="2"><b>' . $lang->translate(33) . '</b><br></td>';
    $html .= '<tr><td  width="200px">' . $lang->translate(151) . '</td><td><input type="text" id="naam" name="naam" value="' . get_value_session('from_db', 'username') . '"></td></tr>';
    $html .= '<tr><td>' . $lang->translate(152) . '</td><td><input type="text" id="mail1234" name="mail1234" value="' . get_value_session('from_db', 'email') . '"></td></tr>';
    $html .= '<tr><td>' . $lang->translate(153) . '</td><td><input type="text" id="onderwerp" name="onderwerp"></td></tr>';
    $html .= '<tr><td>' . $lang->translate(154) . '</td><td><textarea name="inhoud" rows="10" cols="42"></textarea></td></tr></table></div>';
    $html .= '<div class="content"><p><input type="submit" value="' . $lang->translate(155) . '" id="submit" name="submit" class="button"></p></div></form><br /><br />';
} else {
    $html = '<div class="paginatitel">' . $lang->translate(30) . '</div>';
    $html .= '<br><br><div class="tablehome"><table>';
    $html .= '<tr>';
    //$html .= '<td><a href="?page=gegevens&type=overzicht"><img src="'.$template_dir.'/desktop_mijngegevens.png" border="0"></a></td>';
    $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>&nbsp;</td>';
    $html .= '<td>&nbsp;</td>';
    $html .= '</tr>';
    $html .= '<tr>';
Exemplo n.º 6
0
                    $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 />';
}
Exemplo n.º 7
0
function pakketten_do_action_create_stream()
{
    global $mysqli;
    if (!isset($mysqli) || empty($mysqli)) {
        create_db_connection('mysqli', 'central');
    }
    global $mysqli;
    $temp = 1;
    if (get_value_session('from_db', 'is_admin') == 1) {
        $sql = 'INSERT INTO `pakketten_stream` (`max_listeners`) VALUES ("' . $mysqli->real_escape_string(get_value_post('listeners')) . '")';
        $mysqli->query($sql);
        $id = $mysqli->insert_id;
        if ($id != 0) {
            $sql = 'INSERT INTO `pakketten` (`type`,`user_id`,`pakket_id`) VALUES ("stream","' . $mysqli->real_escape_string(get_value_post('klant')) . '","' . $mysqli->real_escape_string($id) . '")';
            $mysqli->query($sql);
            $id2 = $mysqli->insert_id;
            if ($id2 != 0) {
                return TRUE;
            } else {
                return FALSE;
            }
        } else {
            return FALSE;
        }
    } else {
        if (check_user_subuser(get_value_session('from_db', 'id'), get_value_post('klant'))) {
            $availablelisteners = pakketten_get_value_size_stream(get_value_session('from_db', 'id'), 'listeners') - pakketten_get_value_used_stream(get_value_session('from_db', 'id'), 'listeners');
            if (get_value_post('listeners') < $availablelisteners) {
                $sql = 'INSERT INTO `pakketten_stream` (`max_listeners`) VALUES ("' . $mysqli->real_escape_string(get_value_post('listeners')) . '")';
                $mysqli->query($sql);
                $id = $mysqli->insert_id;
                if ($id != 0) {
                    $sql = 'INSERT INTO `pakketten` (`type`,`user_id`,`pakket_id`) VALUES ("stream","' . $mysqli->real_escape_string(get_value_post('klant')) . '","' . $mysqli->real_escape_string($id) . '")';
                    $mysqli->query($sql);
                    $id2 = $mysqli->insert_id;
                    if ($id2 != 0) {
                        return TRUE;
                    } else {
                        return FALSE;
                    }
                } else {
                    return FALSE;
                }
            } else {
                return FALSE;
            }
        } else {
            return FALSE;
        }
    }
}
Exemplo n.º 8
0
            $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'));
    }
}
Exemplo n.º 9
0
                         $html .= '<center><a href="javascript:confirm_text(\'' . $lang->translate(1218) . '\', \'?lang=' . lang_get_value_defaultlang() . '&page=klanten&type=wwreset&id=' . $userdata['id'] . '\')"><img src="' . $template_dir . '/wachtwoord.png" border="0" title="' . $lang->translate(1217) . '"></center></a>';
                     }
                     $html .= '</td>';
                     $html .= '<td width="25px">';
                     if (check_user_right(get_value_session('from_db', 'id'), 'klantoverzetten', get_value_session('from_db', 'is_admin')) != FALSE) {
                         $html .= '<center><a href="?lang=' . lang_get_value_defaultlang() . '&page=klanten&type=overzetten&id=' . $userdata['id'] . '"><img src="' . $template_dir . '/overdragen.png" border="0" title="' . $lang->translate(1220) . '"></center></a>';
                     }
                     $html .= '</td>';
                     $html .= '<td width="25px">';
                     if (get_subusers($userdata['id'], 1) != FALSE) {
                         $html .= '&nbsp;<a href="?lang=' . lang_get_value_defaultlang() . '&page=klanten&type=overzicht&id=' . $userdata['id'] . '"><img src="' . $template_dir . '/Klanten.png" border="0" title="' . $lang->translate(11) . ' van ' . $userdata['username'] . '"></a>';
                     }
                     $html .= '</td>';
                     $html .= '<td  width="25px">';
                     if (check_user_right(get_value_session('from_db', 'id'), 'klantverwijderen', get_value_session('from_db', 'is_admin')) != FALSE) {
                         if ($userdata['id'] != get_value_session('from_db', 'id')) {
                             $html .= '<center><a href="javascript:confirm_text(\'' . $lang->translate(224) . '\', \'?lang=' . lang_get_value_defaultlang() . '&page=klanten&type=verwijderen&id=' . $userdata['id'] . '\')"><img src="' . $template_dir . '/verwijderen.png" border="0" title="' . $lang->translate(1219) . '"></a></center>';
                         }
                     }
                     $html .= '</td>';
                     $html .= '</tr>';
                 }
             }
             $html .= '</table></DIV>';
         }
     } else {
         $html .= '<br /><br /><div class="content"><p>' . $lang->translate(212) . '</p></div><br /><br />';
     }
 } else {
     $html = '<b>' . $lang->translate(202) . '</b>';
     $html .= '<br /><br />' . $lang->translate(203) . '<br /><br />';
Exemplo n.º 10
0
                $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 />';
}