<?php
	require_once('ls_admin/inc/conn.php');
	$opendb = new mydb();

	$is_ajax = $_REQUEST['is_ajax'];
	if(isset($is_ajax) && $is_ajax)
	{
		//$username = $_REQUEST['username'];
		$password = $_REQUEST['password'];
		$sql = "select * from ls_config";
		$query = $opendb->query($sql);
		$value = mysql_fetch_assoc($query);
		//file_put_contents('text.txt',$password."--".$value['indexPassword']);
		
		if($password == $value['indexPassword'])
		{
			echo "success";
		}
	}

?>
