?> <center> <br> <input type=text name='lagu' value='<?php if (isset($_POST['lagu'])) { echo strip_tags($_POST['lagu']); } ?> '> <input type=submit value='search'> </form> </center> <?php // If user make lyrics request, this section will start if (isset($_POST['lagu']) && !empty($_POST['lagu'])) { if (!strpos($_POST['plugins'], ".")) { echo "<center>Error!</center>"; die; } // Verified data so user can't include file from another source $plugins = "plugins/" . str_replace('.', '_', $_POST['plugins']) . ".php"; // Rename data that been send by POST request include $plugins; // Include plugins $class = new lyrics(); $class->search_result(strip_tags($_POST['lagu']), $plugins); } else { echo "<center><font color='red'>Please Insert Song Name</font></center>"; } credit();
<?php error_reporting(0); set_time_limit(0); ini_set('error_log', NULL); ini_set('max_execution_time', 0); ini_set('log_errors', 0); if (file_exists("function.php")) { include 'function.php'; } else { echo "<h1><center>function.php not found ! </center></h1>"; die; } if (file_exists("config.php")) { include 'config.php'; } else { echo "<h1><center>config.php not found ! </center></h1>"; die; } include "plugins/chartlyrics_com.php"; // Include plugins $class = new lyrics(); $class->getFirstResult(strip_tags($_GET["name"]), "chart.php");