-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex1.php
More file actions
87 lines (75 loc) · 2.12 KB
/
index1.php
File metadata and controls
87 lines (75 loc) · 2.12 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<? session_start();?>
<? include("stdio.php"); ?>
<? include("connect.php"); ?>
<vxml version="2.1"
xmlns="http://www.w3.org/2001/vxml">
<?
$adress = $_REQUEST["userID"];
//we get the data for the user - if it exists
$resultat = mysql_query("SELECT * FROM `avxml_user` WHERE auto_login='$adress'");
while ($raekke = mysql_fetch_array($resultat)) {
extract($raekke);
}
//If the user doesn't have a autologin, the database will return "false"
//We can't know what the auto_login is, but if it is NOT false, it's there.
if (isset($auto_login) && $auto_login!="false"){
$SESSION["user"]=$ID;
$user = strtolower($user);
?>
<form id="welcome">
<block> <!-- we welcoms the user... -->
<audio src="<?php get_audio(10, "file") ?>">
<?php get_audio(10, "message") ?>
</audio>
<audio> <!-- ...by name -->
<?php echo $user; ?>
</audio>
<goto next="main_menu.php"/>
</block>
</form>
<?
}else{
?>
<form id="form_Main">
<block>
<audio src="<?php get_audio(1, "file") ?>"> <!-- welcome -->
<?php get_audio(1, "message") ?>
</audio>
</block>
<field name="user_ident" type="digits?length=1">
<prompt>
<audio src="<?php get_audio(12, "file") ?>"> <!-- we ask for id-number -->
<?php get_audio(12, "message") ?>
</audio>
</prompt>
</field>
<noinput>
<audio src="<?php get_audio(14, "file") ?>">
<?php get_audio(14, "message") ?>
</audio>
<reprompt />
</noinput>
<nomatch>
<audio src="<?php get_audio(4, "file") ?>">
<?php get_audio(4, "message") ?>
</audio>
<reprompt />
</nomatch>
<field name="user_pass" type="digits?length=1">
<prompt>
<audio src="<?php get_audio(8, "file") ?>"> <!-- thanks for the ID -->
<?php get_audio(8, "message") ?>
</audio>
</prompt>
<prompt>
<audio src="<?php get_audio(5, "file") ?>"><!-- - and for passcode -->
<?php get_audio(5, "message") ?>
</audio>
</prompt>
<filled>
<submit next="validate.php" method="post" namelist="user_ident user_pass"/>
</filled>
</field>
</form>
<? } ?>
</vxml>