forked from filipi/onde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
f-main.php
85 lines (77 loc) · 2.54 KB
/
f-main.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
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
<?PHP
if (isset($_GET['demanda'])) $demanda = intval($_GET['demanda']); else $demanda = 0;
if (isset($_GET['form'])) $form = $form = intval($_GET['form']); else $form = 0;
//echo $_SERVER[REQUEST_URI];
if (isset($_GET['alvo'])){
$alvo = intval($_GET['alvo']);
if ($alvo)
while (strlen($alvo)<6) $alvo = "0" . $alvo;
}
$useSessions = 1; $ehXML = 1;
$myPATH = ini_get('include_path') . ':./include:../include:../../include';
ini_set('include_path', $myPATH);
include_once("include/php_backwards_compatibility.inc");
include_once("include/escapeConfVars.inc");
include("conf.inc");escapeConfVars();
if (!stripos("_" . $_theme, "frameless")){
include "page_header.inc";
}
//include_once("masterFormStartup.inc");
if (!$_debug)
ini_set ( "error_reporting", "E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR" );
if (isset($_GET['PHPSESSID']))
$PHPSESSID = $_GET['PHPSESSID'];
$isdeveloper = 0;
reset($developer);
while (list($key, $val) = each($developer)){
if (isset($_SESSION)){
if ($developer[$key] == $_SESSION['matricula'])
$isdeveloper=1;
}
}
if (!stripos("_" . $_theme, "frameless")){
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Frameset//EN\">\n";
echo "<HTML>\n";
echo " <HEAD>\n";
echo " <TITLE>ONDE fLame Work ";
echo " isdeveloper=" . $isdeveloper;
echo " matricula=" . $_SESSION['matricula'];
echo " </TITLE>\n";
echo " <META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=" . $encoding . "\">\n";
echo " </HEAD>\n";
}
if (stripos("_" . $_theme, "frameless")){
if ($demanda){
$formID = SOLICITACOES_MINHAS_DETALHES;
$codigo = $demanda;
unset($form);
//include("masterForm.php");
}else
if ($form){
unset($form);
include("forms.php");
}
else{
include("inicio.php");
}
}
else{
?>
<FRAMESET COLS="20%,*" BORDER=0 MARGINWIDTH="0" MARGINHEIGHT="0"
FRAMEBORDER="0" NORESIZE>
<FRAME NAME="menu" SRC="menu.php?PHPSESSID=<?PHP echo $PHPSESSID;?>"
BORDER=0 MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="0"
NORESIZE SCROLLING="auto">
<FRAME NAME="centro" SRC="<?PHP
if ($demanda)
echo "masterForm.php?PHPSESSID=". $PHPSESSID . "&formID=" . SOLICITACOES_MINHAS_DETALHES . "&codigo=" . $demanda;
if ($form)
echo "forms.php?PHPSESSID=" . $PHPSESSID . "&form=" . $form . ($alvo ? "#" . $alvo : ""); else echo "inicio.php?PHPSESSID=" . $PHPSESSID;?>"
BORDER=0 MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto"
FRAMEBORDER="0" NORESIZE>
</FRAMESET>
<NOFRAMES>
</NOFRAMES>
<?PHP
}
?>