-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtoken.php
52 lines (35 loc) · 1.17 KB
/
token.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
//including common files
require_once './include/common.php';
require_once './template/header.php';
//Checking stock already exists in table
$id = $_GET['id'];
$field = array("sName,murl,curl,cSymbol,notes");
$table = "stocklistbackup";
$condition = "id='$id'";
$arugment = array( "field" => $field , "table" => $table, "condition" => $condition);
$data = select($arugment,"one");
?>
<br/>
<center>
<form action="token_process.php" method="post" enctype="multipart/form-data">
<table class="gridtable">
<tr>
<td><a href="https://kite.zerodha.com/connect/login?v=3&api_key=asx9hj1ykmv09kgc" target="_blank">Copy Token</a></td>
<td><textarea name="token" rows="5" cols="50"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="save" value="Generate Token"></td>
</tr>
<tr>
<td colspan="2" align="center">
<?php
if(!empty($_GET['token_name'])) {
echo $_GET['token_name'];
}
?>
</td>
</tr>
</table>
</form>
</center>