- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
if (isset($_GET["ADD"])) {$ADD=$_GET["ADD"];}
/* вырезано http://govnokod.ru/610 */
if (!isset($ADD)) {$ADD=0;}
if ($ADD=="1") {$hh='users'; echo "Add New User";}
if ($ADD=="1A") {$hh='users'; echo "Copy User";}
if ($ADD==11) {$hh='campaigns'; $sh='basic'; echo "Add New Campaign";}
if ($ADD==12) {$hh='campaigns'; $sh='basic'; echo "Copy Campaign";}
if ($ADD==111) {$hh='lists'; echo "Add New List";}
if ($ADD==121) {$hh='lists'; echo "Add New DNC";}
if ($ADD==1111) {$hh='ingroups'; echo "Add New In-Group";}
if ($ADD==1211) {$hh='ingroups'; echo "Copy In-Group";}
if ($ADD==11111) {$hh='remoteagent'; echo "Add New Remote Agents";}
if ($ADD==111111) {$hh='usergroups'; echo "Add New Users Group";}
if ($ADD==1111111) {$hh='scripts'; echo "Add New Script";}
/* вырезано 200 строк аналогичного содержания */
/* теперь внимание */
if ( ($ADD>9) && ($ADD < 99998) )
{
##### get scripts listing for dynamic pulldown
$stmt="SELECT script_id,script_name from vicidial_scripts order by script_id";
$rslt=mysql_query($stmt, $link);
/* censored ~ 400 lines */
}
if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD<70)) or ($ADD=="4A") or ($ADD=="4B") or (strlen($ADD)==12) )
{
##### get server listing for dynamic pulldown
$stmt="SELECT server_ip,server_description from servers order by server_ip";
/* censored ~ 1000 lines */
}
######################
# ADD=99999 display the HELP SCREENS
######################
if ($ADD==99999)
{
echo "</title>\n";
echo "</head>\n";
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
echo "<CENTER>\n";
echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN=LEFT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=4><B>VICIDIAL ADMIN: HELP<BR></B></FONT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><BR><BR>\n";
?>
<B><FONT SIZE=3>VICIDIAL_USERS TABLE</FONT></B><BR><BR>
<!-- 22Kb help screen here -->
vicidial. Новый революционный паттерн. МВЦ это прошлый век.
Читаем каменты, принцип будет понятен.
guest 25.02.2009 18:53 # 0
# admin.php - VICIDIAL administration page
#
#
# Copyright (C) 2007 Matt Florell <[email protected]> LICENSE: GPLv2
#
guest 29.04.2011 12:35 # 0