403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/wamp/apps/sqlbuddy1.3.3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/apps/sqlbuddy1.3.3//browse.php
<?php
/*

SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/

browse.php
- browse table - just grabs variables and passes them to include_browse.php

MIT license

2008 Calvin Lough <http://calv.in>

*/

include "functions.php";

loginCheck();

requireDatabaseAndTableBeDefined();

if (isset($db))
	$conn->selectDB($db);

//run delete queries

if (isset($_POST['runQuery'])) {
	$runQuery = $_POST['runQuery'];
	
	$queryList = splitQueryText($runQuery);
	foreach ($queryList as $query) {
		$conn->query($query);
	}
}

if ($conn->getAdapter() == "sqlite") {
	$query = "SELECT * FROM '$table'";
} else {
	$query = "SELECT * FROM `$table`";
}

$queryTable = $table;

if (isset($_POST['s']))
	$start = (int)($_POST['s']);
else
	$start = 0;

if (isset($_POST['sortKey']))
	$sortKey = $_POST['sortKey'];

if (isset($_POST['sortDir']))
	$sortDir = $_POST['sortDir'];
else if (isset($sortKey))
	$sortDir = "ASC";

if (isset($_POST['view']) && $_POST['view'] == "1")
	$view = 1;
else
	$view = 0;

if (isset($sortKey) && $sortKey != "" && isset($sortDir) && $sortDir != "") {
	$sort = "ORDER BY `" . $sortKey . "` " . $sortDir;
} else {
	$sort = "";
}

require "includes/browse.php";

?>

Youez - 2016 - github.com/yon3zu
LinuXploit