function analyze($analytics, $purl, $name, $go, $html = 1) { global $blog_settings; if ($analytics == "google-analytics") { $aid = $blog_settings->get('planet_ganalytics'); ga($aid, $purl, $name); } elseif ($analytics == "piwik") { $aid = $blog_settings->get('piwik_id'); $script = piwik_analytics($aid, $purl, $name, $go, $html); } }
<!DOCTYPE html> <html> <head> <title> Bangalore Institute of Technology - The Unofficial website </title> <meta charset="utf-8"> <meta name="Keywords" content="BIT,Bangalore Institute Of Technology,VTU,KR Road,K.R Road,KIMS, About Bangalore Institute Of Technology"> <meta name="Description" content="Everything you need to know about Bangalore Institute Of Technology - The Unofficial Website: The better alternative"> <meta name="viewport" content="width=device-width" initial-scale=1> <link rel="stylesheet" type="text/css" href="Style_Folder/outline.css"> <link rel="shortcut icon" href="http://bitunofficial.com/Images/Logo.ico"> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="js/basic.js"></script> <?php require_once 'outline.php'; ga(); ?> </head> <body> <?php head(); ?> <section> <div id="content"> <h2>About</h2> <h3>Who we are <b>:</b></h3> <p> <span class="redText">We</span> are a group BIT students. Nothing more, nothing less. </p> <h3>Why did we create this website? <b>:</b></h3> <p> Well, you've seen the actual BIT website. This compelled us into creating an alternative, which would be student friendly and provide timely updates.
<?php header("Content-type: text/html; charset=utf-8"); header("message-queue: 1"); if (!session_id()) { session_start(); } // error_reporting(E_ALL ^ E_DEPRECATED); date_default_timezone_set('Asia/Shanghai'); if (defined("SAE_MYSQL_HOST_M")) { include_once "mysql.class.php"; } else { include_once "mysqli.class.php"; } include_once "common.php"; if (defined("SAE_MYSQL_HOST_M")) { $mysql = new mysql(SAE_MYSQL_HOST_M . ':' . SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS, SAE_MYSQL_DB, 'utf8'); } else { $mysql = new mysql('127.0.0.1', 'root', '', 'familydecoration', 'utf8'); } if (!strpos($_SERVER["REQUEST_URI"], "user.php?action=log") && !strpos($_SERVER["REQUEST_URI"], "cron_sendmail.php") && !strpos($_SERVER["REQUEST_URI"], "cron_busialert.php") && !strpos($_SERVER["REQUEST_URI"], "mode=application_request_url")) { checkUserOnlineUniqueness(); } if (isset($_GET["action"]) && $_GET["action"] == "ga") { ga($_POST); }
if (!$mail) { if ($row['people']) { $db->query("DELETE FROM people WHERE id = " . $row['people']); } } else { if ($row['people']) { $post = false; $suburb = ga($id, 'live', true); if ($suburb) { $post['suburb'] = $suburb; $post['city'] = mysql_clean("Cape Town"); } $age = ga($id, 'age'); if ($age) { $post['age'] = $age; } if ($post) { $db->update("people", $post, "id = " . $row['people']); } } else { $q = ga($id, 'firstname'); if ($q) { $post = array('firstname' => mysql_clean(ga($id, 'firstname')), 'lastname' => mysql_clean(ga($id, 'lastname')), 'email' => mysql_clean(ga($id, 'email'))); $db->insert("people", $post); $people = $db->insert_id; logThis(1, $people); $db->query("UPDATE surveys SET people = {$people} WHERE id = {$id} LIMIT 1"); } } } }