News / New Products

0, // Set to 1 to enable "Debug" mode /* Database */ 'db_host' => 'custsql.sonic.net', // Host name for MySQL Database ('localhost' works for most installations) 'db_user' => 'neip_1-rw', // Username for MySQL login (Reccommend you do NOT use root) 'db_pass' => '15660ad2', // Password for MySQL user 'db_name' => 'neip_1', // MySQL Database name ); /* Header Managment Function. Used to secure HTTP headers inside PHP Code and MySQL Queries */ function real_escape($value, $type = '') { if (get_magic_quotes_gpc()) $value = stripslashes($value); if ($type === 'int') return intval($value); else return mysql_real_escape_string($value); } function get_text($page) { sql_query('SELECT content FROM content WHERE page = "'.$page.'" LIMIT 1'); $r = sql_fetch_array(); if ($r === FALSE) return FALSE; else return $r['content']; } ?> 0,'time' => 0,'count' => 0, 'debug' => $cfg['debug'], 'qstats' => array()); function sql_connect($host, $user, $password = '', $name = '') { global $sql; if (!$sql['con'] = mysql_connect($host, $user, $password)) { sql_error('Could not connect to MySQL Server (Host: '.$host.' | User: '.$user.').', 1); } if ($name !== '' && !mysql_select_db($name)) { mysql_close($sql['con']); sql_error('Database could not be selected (DB: '.$name.')', 1); } return $sql['con']; } function sql_close() { global $sql; if ($sql['con']) { if ($sql['id']) @mysql_free_result($sql['id']); return mysql_close($sql['con']); } else return FALSE; } function sql_query($q = '') { global $sql; unset($sql['id']); if ($q !== '') { $startsqltime = explode(' ', microtime()); if (!$sql['id'] = mysql_query($q, $sql['con'])) sql_error('Bad SQL Query: '.htmlentities($q).'
'.mysql_error().''); $endsqltime = explode(' ', microtime()); $sql['time'] += $endsqltime[0]-$startsqltime[0]+$endsqltime[1]-$startsqltime[1]; ++$sql['count']; if ($sql['debug'] === 1) $sql['qstats'][] = htmlentities($query).'
Querytime: '.$totalsqltime; return $sql['id']; } } function sql_fetch_array($id = -1) { global $sql; if ($id !== -1) $sql['id'] = $id; return mysql_fetch_assoc($sql['id']); } function sql_data_seek($n,$id = -1) { global $sql; if ($id !== -1) $sql['id'] = $id; mysql_data_seek($sql['id'],$n); } function sql_nextid($c,$t) { sql_query('SELECT MAX('.$c.') AS max FROM '.$t); $r = sql_fetch_array(); return (($r['max']+1) > 0) ? $r['max']+1 : 1; } function sql_insert_id($id = -1) { global $sql; return ($id === -1) ? mysql_insert_id() : mysql_insert_id($id); } function sql_free_result($id = -1) { global $sql; if ($id !== -1) $sql['id'] = $id; return mysql_free_result($sql['id']); } function sql_num_rows($id = -1) { global $sql; if ($id !== -1) $sql['id'] = $id; return mysql_num_rows($sql['id']); } function sql_error($e,$h = 0) { global $sql; trigger_error($e,E_USER_ERROR); if ($h !== 0) exit; } ?>News and Status 10/2017 WE ARE NO LONGER ACCEPTING ORDERS! THANKS FOR YOUR SUPPORT AND YOUR BUSINESS!

---