403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/projects/ilink_2.0/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/ilink_2.0/sel-ord7.php
<?php
//
// iLink - SELECT i ORDER v7
//
	// po vremenu promena unazad
	if ($t_sel=="GST") {
		$sql = "SELECT * FROM $dbt ORDER BY dt DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	//
	if ($t_sel=="USR") {
		$sql = "SELECT * FROM $dbt ORDER BY dt DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	//
	if ($t_sel=="ADM") {
		$sql = "SELECT * FROM $dbt ORDER BY dt DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
    //
	// po ID
	if (($t_sel=="Sel_1")and($t_txt=='')) {
		$sql = "SELECT * FROM $dbt ORDER BY id ASC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	if (($t_sel=="Sel_1")and($t_txt!='')) { 
		$sql = "SELECT * FROM $dbt WHERE id='".$t_txt."'";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
    //	
	// po vremenu promena unazad
	if ($t_sel=="Sel_2") {
		$sql = "SELECT * FROM $dbt ORDER BY dt DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	//
	// po popularnosti glasanja vot
	if (($t_sel=="Sel_3")and($t_txt=='')) {
		$sql = "SELECT * FROM $dbt ORDER BY vot DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	if (($t_sel=="Sel_3")and($t_txt!='')) {
	    $sql = "SELECT * FROM $dbt WHERE vot='".$t_txt."'";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}	
	//
	// po opstoj temi
	if (($t_sel=="Sel_4")and($t_txt=='')) {
		$sql = "SELECT * FROM $dbt ORDER BY notes ASC, notem ASC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	if (($t_sel=="Sel_4")and($t_txt!='')) {
		$sql = "SELECT * FROM $dbt WHERE notes LIKE '%".$t_txt."%' ORDER BY notem ASC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);	
	}
	//
	// po autoru
	if (($t_sel=="Sel_5")and($t_txt=='')) {
		$sql = "SELECT * FROM $dbt ORDER BY notem ASC, vot DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	if (($t_sel=="Sel_5")and($t_txt!='')) {	
		$sql = "SELECT * FROM $dbt WHERE notem LIKE '%".$t_txt."%' ORDER BY vot DESC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
    //
	// po kompoziciji
	if (($t_sel=="Sel_6")and($t_txt=='')) {
		$sql = "SELECT * FROM $dbt ORDER BY notel ASC";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	if (($t_sel=="Sel_6")and($t_txt!='')) {
		$sql = "SELECT * FROM $dbt WHERE notel LIKE '%".$t_txt."%'";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$numofrows = mysqli_num_rows($result);
	}
	//
	mysqli_close($conn);
	
?>

Youez - 2016 - github.com/yon3zu
LinuXploit