Example #1
0
				if ($rate == "ICM") { $callin++; $timein = $timein + $billsec; $costin = $costin + $charge; }
				else if ($rate == "INT") { $callout++; $timeout = $timeout + $billsec; $costout = $costout + $charge; }
				else if ($rate == "CNF") { $callcon++; $timecon = $timecon + $billsec; $costcon = $costcon + $charge; }
				else if ($rate == "LDC") { $calllong++; $timelong = $timelong + $billsec; $costlong = $costlong + $charge; }
				$chargein	= get_format($costin);
				$chargeout	= get_format($costout);
				$chargelong	= get_format($costlong);
				$chargecon	= get_format($costcon);
				$chargettl	= get_format($costin + $costout + $costlong + $costcon);
				$chargetax	= get_format(($costin + $costout + $costlong + $costcon) * 0.13);
				$chargefnal	= get_format(($costin + $costout + $costlong + $costcon) * 1.13);
	
				
				if ($stt % 2) $Table_Class = "TableB"; else $Table_Class = "TableA";
				$CALL_LIST .= '<tr align="center">
								<td class="'.$Table_Class.'">'.$count.'</td>
								<td class="'.$Table_Class.'">'.$date.'</td>
								<td class="'.$Table_Class.'">'.$time.'</td>
								<td class="'.$Table_Class.'">'.$number.'</td>
								<td class="'.$Table_Class.'">'.$rate.'</td>
								<td class="'.$Table_Class.'">'.$billsec.'</td>
								<td class="'.$Table_Class.'">$'.$charge.'</td>
							  </tr>';
			}
			$CALL_LIST .='</table>';
			$billing = "class='active'";
			eval ("\$USER_Info = \"".import_tpl("user_bill")."\";");
		}
	}
}
?>
Example #2
0
        $upost = $User['postal'];
        setcookie("User_Exist", "{$uid}", time() + $aobs_dtl['cookies'], '/');
        // Cookies time is set in config.php
        if ($_REQUEST['tab'] == "mysf" || $_REQUEST['tab'] == "mdfy") {
            include_once 'userinfo.php';
        } else {
            if ($_REQUEST['tab'] == "bill") {
                include_once 'billing.php';
            } else {
                if ($_REQUEST['tab'] == "support" || $_REQUEST['tab'] == "submit_ticket" || $_REQUEST['tab'] == "view_ticket" || $_REQUEST['tab'] == "update_ticket") {
                    include_once 'ticket.php';
                } else {
                    if ($_REQUEST['tab'] == "svcs") {
                        $services = "class='active'";
                        eval("\$USER_Info = \"" . import_tpl("user_services") . "\";");
                    } else {
                        $overview = "class='active'";
                        eval("\$USER_Info = \"" . import_tpl("user_overview") . "\";");
                    }
                }
            }
        }
        eval("\$LAYOUT_CONTENT = \"" . import_tpl("usercp") . "\";");
    }
} else {
    /*No cookie.. expired?*/
    $aobs_tag = '<meta http-equiv="refresh" content="5; url=?aobs=auth&amp;tab=" />';
    $MSG_Title = "Your session has been expired!";
    $MSG_Content = $aobs_msg['auth_cookies'];
    eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
}
Example #3
0
"><span>@LikyhCMS</span></div>
        </div>
        <div id="logo">LikyhCMS管理系统</div>
        <?php 
echo $r['userInfoHtml'];
?>
    </header>
    <div id="main">
        <?php 
echo $r['navHtml'];
?>
        <div id="content">
            <?php 
import_tpl('plugin/cms/contentTitle.php');
?>
            <?php 
echo $r['controlHtml'];
?>
            <div id="data">
                <?php 
import_tpl($r['sourceTpl']);
?>
            </div>
        </div>
    </div>
    <?php 
import_tpl('plugin/cms/footer.php');
?>
</div>
</body>
</html>
Example #4
0
            setcookie("User_Pass", "{$User_Pass}", time() + $aobs_dtl['cookies'], '/');
            // Cookies time is set in config.php
            $aobs_tag = '<meta http-equiv="refresh" content="3; url=?aobs=user&amp;tab=" />';
            $MSG_Title = "Welcome!";
            $MSG_Content = $aobs_msg['auth_login'];
            eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
        } else {
            $aobs_tag = '<meta http-equiv="refresh" content="3; url=?aobs=auth&amp;tab=" />';
            $MSG_Title = "Incorrect Password!";
            $MSG_Content = $aobs_msg['auth_password'];
            eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
        }
    } else {
        $aobs_tag = '<meta http-equiv="refresh" content="5; url=?aobs=auth&amp;tab=" />';
        $MSG_Title = "Invalid Username!";
        $MSG_Content = $aobs_msg['auth_username'];
        eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
    }
} else {
    if (isset($_REQUEST['tab']) && $_REQUEST['tab'] == "lgo") {
        setcookie("User_Name", "null", time() + 0, '/');
        setcookie("User_Pass", "null", time() + 0, '/');
        $aobs_tag = '<meta http-equiv="refresh" content="2; url=?" />';
        $aobs_title = "Logged Out";
        $MSG_Title = 'Logging out';
        $MSG_Content = $aobs_msg['auth_logout'];
        eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
    } else {
        eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_login") . "\";");
    }
}
Example #5
0
                    } else {
                        $unique_ext = "5001";
                    }
                    $aobs->query("INSERT INTO " . $aobs->tbl['user'] . " " . "(user_name, user_pass, user_email, user_ext, firstname, lastname, address, city, province, postal) " . "VALUES ('" . $_POST['username'] . "', '" . $_POST['password'] . "', '" . $_POST['email'] . "', '" . $unique_ext . "', " . "'" . $_POST['firstname'] . "', '" . $_POST['lastname'] . "', '" . $_POST['address'] . "', '" . $_POST['city'] . "', " . "'" . $_POST['province'] . "', '" . $_POST['postal'] . "')");
                    $aobs_tag = '<meta http-equiv="refresh" content="5; url=?aobs=auth&amp;tab=" />';
                    $MSG_Title = "Successfully registered!";
                    $MSG_Content = $aobs_msg['reg_done'];
                    eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
                    // Trigger perl script
                } else {
                    $aobs_tag = '<meta http-equiv="refresh" content="5; url=javascript:history.go(-1)" />';
                    $MSG_Title = "Password not matched!";
                    $MSG_Content = $aobs_msg['reg_password'];
                    eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
                }
            } else {
                $aobs_tag = '<meta http-equiv="refresh" content="5; url=javascript:history.go(-1)" />';
                $MSG_Title = "All fields must be filled!";
                $MSG_Content = $aobs_msg['reg_fields'];
                eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
            }
        } else {
            $aobs_tag = '<meta http-equiv="refresh" content="5; url=javascript:history.go(-1)" />';
            $MSG_Title = "You must agree to our terms!";
            $MSG_Content = $aobs_msg['reg_terms'];
            eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_message") . "\";");
        }
    }
} else {
    eval("\$LAYOUT_CONTENT = \"" . import_tpl("tpl_register") . "\";");
}
Example #6
0
		$support = "class='active'";
		eval ("\$USER_Info = \"".import_tpl("ticket_info")."\";");
	} else if ($_REQUEST['tab'] == "submit_ticket") {
		if ((!empty($_POST['ticket_subject'])) && (!empty($_POST['ticket_category'])) && (!empty($_POST['Init_Tickmsg']))) {
			$TicketQuery = $aobs->query("SELECT ticket_id FROM ".$aobs->tbl['tickets']." WHERE ticket_id > 0 ORDER BY ticket_id DESC");
			$Ticket = $aobs->fetch_array($TicketQuery);
			$Current_TimeStamp = date('Y-m-d H:i:s');
			if($aobs->num_rows($TicketQuery) > 0){
				$uTicket_ID = $Ticket['ticket_id'] + 1;
			} else {
					$uTicket_ID = "1";
			}
			$aobs->query("INSERT INTO ".$aobs->tbl['tickets']." "."(ticket_id, ticket_subject, ticket_category, user_poster, ticket_time) ".
				"VALUES ('".$uTicket_ID."', '".$_POST['ticket_subject']."', '".$_POST['ticket_category']."', '".$user."', '".$Current_TimeStamp."')");
			$aobs->query("INSERT INTO ".$aobs->tbl['ticket_msgs']." "."(user_poster, ticket_id, ticket_message, convo_time) ".
				"VALUES ('".$user."', '".$uTicket_ID."', '".$_POST['Init_Tickmsg']."', '".$Current_TimeStamp."')");
			
			eval ("\$USER_Info = \"".import_tpl("ticket_submitted")."\";");
			/*$aobs_tag = '<meta http-equiv="refresh" content="5; url=?aobs=user&amp;tab=ticket_submitted" />';
			$MSG_Title = "Your support request has been submitted.";
			$MSG_Content =	$aobs_msg['Ticket_Submitted'];
			eval ("\$USER_Info = \"".import_tpl("tpl_message")."\";");*/
		} else {
			$aobs_tag = '<meta http-equiv="refresh" content="5; url=javascript:history.go(-1)" />';
			$MSG_Title = "All fields must be filled!";
			$MSG_Content =	$aobs_msg['reg_fields'];
			eval ("\$USER_Info = \"".import_tpl("tpl_message")."\";");
		}
	} 
}
?>
Example #7
0
<?php

require_once "_function.php";
require_once "_classes.php";
global $aobs_dtl, $aobs_admin, $aobs_msg;
global $ADMIN_Error, $ADMIN_Message;
if ($_GET['aobs'] == 'user') {
    include_once 'php/usercp.php';
} else {
    if ($_GET['aobs'] == 'reg') {
        include_once 'php/register.php';
    } else {
        include_once 'php/login.php';
    }
}
/*if(isset($_COOKIE['Admin_Name']) && isset($_COOKIE['Admin_Pass'])) {
	$aobsADMIN = '| <a href="?intl='.$aobs_dtl['lang'].'"><b>cPanel</b></a>';
	eval ("\$LAYOUT_MENU = \"".import_tpl("tpl_adminnavi")."\";");
} else */
if (isset($_COOKIE['User_Name']) && isset($_COOKIE['User_Pass'])) {
    eval("\$LAYOUT_MENU = \"" . import_tpl("tpl_usernavi") . "\";");
}
eval("export_tpl(\"" . import_tpl("tpl_index") . "\");");
Example #8
0
function get_page($aobs_query, $aobs_max = 1, $aobs_url)
{
    global $aobs_dtl, $PAGE_NUM;
    if (empty($_GET['p'])) {
        $aobs = 0;
    } else {
        $aobs = 4;
    }
    $link = substr($aobs_url, 0, strlen($aobs_url) - $aobs);
    $page = isset($_GET['p']) ? $_GET['p'] : 1;
    $query = mysql_query($aobs_query);
    $start = $aobs_max * $page - $aobs_max;
    $total = mysql_num_rows($query);
    if ($total <= $aobs_max) {
        $totalpg = 1;
    } else {
        if ($total % $aobs_max == 0) {
            $totalpg = $total / $aobs_max;
        } else {
            $totalpg = $total / $aobs_max + 1;
        }
        $totalpg = (int) $totalpg;
    }
    if ($total > $aobs_max) {
        $aobs_query = $aobs_query . " LIMIT " . $start . "," . $aobs_max;
        for ($i = 1; $i <= $totalpg; $i++) {
            if ($i == $_GET['p']) {
                eval("\$PAGE_NUM .= \"" . import_tpl("tpl_current") . "\";");
            } else {
                $page = $link . "&p=" . $i;
                eval("\$PAGE_NUM .= \"" . import_tpl("tpl_list") . "\";");
            }
        }
    }
    return $aobs_query;
}