* */ //Haal de pagina met functie op include 'functions.php'; //Maak conectie met de DB connect(); //Zet de titlte van de pagina $title = "Melden"; //Ga niet door al all en host niet zijn toegvoegd aan url if (isset($_GET['all'], $_GET['host'])) { //Kijk of je alles wil melden of niet if ($_GET['all'] == 'all') { //Je gaat alle links melden $all = TRUE; //Selecteer alle links if (!($links = all_link($_GET['host']))) { exit('Het op halen van de links gaat fout'); } //slecteer alle titles if (!($titles = all_title($_GET['host']))) { exit('Er gaat iets mis met ophalen van titles'); } //Selecteer alle namen van rechthebbenden if (!($rightholders = all_rightholder($_GET['host']))) { exit('Er gaat iets mis met ophalen van rechthebbende'); } } elseif ($_GET['all'] == 'notall' and $_GET['number']) { //Selecteer een select aantal links if (!($links = limit_link($_GET['number'], $_GET['host']))) { exit('Er gaat iets fout met ophalen van links'); }
<?php include 'functions.php'; connect(); //Ga niet door al all en host niet zijn toegvoegd aan url if (isset($_GET['all'], $_GET['host'])) { if ($_GET['all'] == 'all') { $x = TRUE; //Selecteer de links $links = all_link($_GET['host']); //slecteer all titles $titles = all_title($_GET['host']); //Selecteer alle namen van rechthebbenden $rightholders = all_rightholder($_GET['host']); } elseif ($_GET['all'] == 'notall' and $_GET['number']) { //Selecteer een select aantal links $links = limit_link($_GET['number'], $_GET['host']); //Seceteer een slect aantal titles $titles = limit_titles($_GET['number'], $_GET['host']); //Selecteer een select aantal rechthebbende $rightholders = limit_rightholder($_GET['number'], $_GET['host']); } else { exit; } } else { exit; } $title_all = implode(", ", $titles); $rightholder_all = implode(", ", $rightholders); $link_all = implode("\n", $links); $tekst = file_get_contents('sommatie.txt');