Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
001453 authored Dec 24, 2024
1 parent 11a66bb commit d0ec942
Show file tree
Hide file tree
Showing 15 changed files with 582 additions and 0 deletions.
329 changes: 329 additions & 0 deletions Default.asp

Large diffs are not rendered by default.

Binary file added android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions conn.asp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<%
set conn=server.createobject("ADODB.CONNECTION")
connstr = "Provider=MSDASQL;Driver={MySQL ODBC 8.0 ANSI Driver};Server=localhost;Database=agrobot;User=agrobot;Password=AgroGlobal2024!!!;Option=3;"
conn.Open connstr
function checkUser(u,p)
set rs=Server.CreateObject("ADODB.recordset")
sql = "SELECT * FROM botusers WHERE username='" & u & "' AND password='"& p &"'"
rs.open sql,conn
if not rs.eof then
session("username") = rs("username")
checkUser = 1
else
session("username") =""
checkUser = 0
end if
end function
function getDeviceid()
set rs=Server.CreateObject("ADODB.recordset")
sql = "SELECT * FROM agrobot.devices where iddevices=1 "
rs.open sql,conn
if not rs.eof then
getDeviceid = rs("deviceid")
end if
rs.close
end function
%>
Binary file added favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.
Binary file added favicon_io.zip
Binary file not shown.
15 changes: 15 additions & 0 deletions keep_session.asp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!--#include file="conn.asp"-->

<%
id = request.querystring("id")
currentid = getDeviceid()
if (id<>"") then
sql = "UPDATE devices SET deviceid='" & id & "', updatetime=CURRENT_TIMESTAMP() "
conn.execute(sql)
end if
response.write getDeviceid()
%>
146 changes: 146 additions & 0 deletions login.asp
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<!--#include file="conn.asp"-->
<!DOCTYPE html>
<html lang="tr">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">

<title>AGRO MEXC BOT</title>

<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">

<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">


</head>

<body class="bg-gradient-primary">
<%
email = request.form("email")
password = request.form("password")
remember = request.form("remember")
msg = ""
if remember="on" then
Response.Cookies("email") = email
Response.Cookies("remember") = "on"
end if
if len(email)>1 and len(password)>1 then
if checkUser(email,password)=1 then
session("login")=1
response.Cookies("logintime") = now()
response.redirect("/")
else
msg = "<p class'down' style='color:red;'><i class='fa fa-exclamation' aria-hidden='true'></i> "
msg = msg & "Invalid username or password</p>"
end if
end if
%>
<div class="container">

<!-- Outer Row -->
<div class="row justify-content-center">

<div class="col-xl-5 col-lg-6 col-md-6">

<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">

<div class="col-lg-12">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">AGRO MEXC BOT</h1>
</div>
<form class="user" method="post" action="login.asp">
<div class="form-group">
<input type="email" name="email" class="form-control form-control-user"
id="exampleInputEmail" aria-describedby="emailHelp"
placeholder="Enter Email Address..."
<% if request.Cookies("remember")="on" then %>
value="<%=request.Cookies("email")%>"
<%end if%>
>
</div>
<div class="form-group">
<input type="password" name="password" class="form-control form-control-user"
id="exampleInputPassword" placeholder="Password">
</div>
<div class="form-group">
<div class="custom-control custom-checkbox small">
<input type="checkbox" name="remember" class="custom-control-input" id="customCheck"
<% if request.Cookies("remember")="on" then %>
checked
<%end if%>>
<label class="custom-control-label" for="customCheck">Remember
Me</label>
</div>
</div>
<button type="submit" class="btn btn-primary btn-user btn-block">
Login
</button>


</form>
<hr>
<div class="form-group">
<% if msg <>"" then
response.write( msg)
end if %>
</div>
</div>
</div>
</div>
</div>
</div>

</div>

</div>

</div>

<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>

<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>

</body>
<script>
getMachineId();
function getMachineId() {
let machineId = localStorage.getItem('MachineId');
if (!machineId) {
machineId = crypto.randomUUID();
localStorage.setItem('MachineId', machineId);
}
return machineId;
}
</script>
</html>
44 changes: 44 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"ccxt": "^4.2.12"
}
}
1 change: 1 addition & 0 deletions site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
5 changes: 5 additions & 0 deletions web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<configuration>
<system.web>
<httpRuntime requestPathInvalidCharacters="" />
</system.web>
</configuration>

0 comments on commit d0ec942

Please sign in to comment.