Irish Low Cost Online Share Trading Broker. Sharewatch execution only service offers better value and security. Irish share prices, UK share prices, US stock quotes. CFD's and Spread Betting covering ISEQ, FTSE, Dow Jones, Nasdaq, Dax, Cac
/* $Id: config.inc.php3,v 1.17 2000/04/24 14:36:22 tobias Exp $ */
// MySQL hostname
$phpAds_hostname = "217.115.112.112";
// MySQL username
$phpAds_mysqluser = "sharewatch";
// MySQL password
$phpAds_mysqlpassword = "euro12munster34";
// The database phpAds lives in
$phpAds_db = "phpadserver";
// phpAds' database tables
$phpAds_tbl_adclicks = "adclicks";
$phpAds_tbl_adviews = "adviews";
$phpAds_tbl_banners = "banners";
$phpAds_tbl_clients = "clients";
$phpAds_tbl_session = "session";
$phpAds_tbl_acls = "acls";
// The URL to your phpAds-installation
$phpAds_url_prefix = "http://www.sharewatch.com/cgi-bin/phpAds";
// Use INSERT DELAYED in logging functions?
$phpAds_insert_delayed = false;
// Your language file
$phpAds_language = "english";
// Enabled logging of adviews?
$phpAds_log_adviews = true;
// Enabled logging of adclicks?
$phpAds_log_adclicks = true;
// Admins's username
$phpAds_admin = "sharewatch";
// Admin's password
$phpAds_admin_pw = "siranto";
// Admin's full name (used when sending stats via email)
$phpAds_admin_fullname = "advert admin";
// Admin's email address (used to set the FROM-address when sending email)
$phpAds_admin_email = "ger@sharewatch.com";
//Mail Headers for the reflection of the sender of the daily ad reports
$phpAds_admin_email_headers = "From: $phpAds_admin_email \n";
// The name of this application
$phpAds_name = "phpAds";
// Hosts to ignore (don't count adviews coming from them)
$phpAds_ignore_hosts = array(); // Example: array("slashdot.org", "microsoft.com");
// Reverse DNS lookup remotes hosts?
$phpAds_reverse_lookup = true;
// Disable magic_quotes_runtime - don't change
set_magic_quotes_runtime(0);
?>
/* $Id: view.inc.php3,v 1.22 2000/04/24 14:58:37 tobias Exp $ */
// Get a banner
function get_banner($what, $clientID, $context=0)
{
global $phpAds_db, $REMOTE_HOST, $phpAds_tbl_banners, $REMOTE_ADDR, $HTTP_USER_AGENT;
$where = "";
if($context == 0)
{
$context = array();
}
for($i=0; $i $value"; break;
case "==": $inclusive[] = "bannerID = $value"; break;
}
}
}
$where_exclusive = !empty($exclusive) ? implode(" AND ", $exclusive): "";
$where_inclusive = !empty($inclusive) ? implode(" OR ", $inclusive): "";
$where = sprintf("$where_inclusive %s $where_exclusive", (!empty($where_inclusive) && !empty($where_exclusive)) ? "AND": "");
$where = trim($where);
if(!empty($where))
{
$where .= " AND ";
}
$select = "SELECT
bannerID,
banner,
format,
width,
height,
alt,
bannertext,
url
FROM
$phpAds_tbl_banners
WHERE
$where
active = 'true' ";
if($clientID != 0)
{
$select .= " AND clientID = $clientID ";
}
if(is_string($what) && !ereg("[0-9]x[0-9]", $what))
{
switch($what)
{
// Get all HTML banners
case "html":
$select .= " AND format = 'html' ";
break;
//Not any of the special words (i.e. 'html'), So, must be a keyword
default:
$select .= " AND (";
$what_array = explode(",",$what);
for($k=0; $k
*/
$select .= "keyword = 'global') ";
} //switch($what)
}
elseif(is_int($what))
{
$select .= " AND bannerID = $what ";
}
else
{
list($width, $height) = explode("x", $what);
// Get all banners with the specified width/height
$select .= " AND width = $width
AND height = $height ";
}
// print($select);
$res = @mysql_db_query($phpAds_db, $select);
if(!$res)
return(false);
$rows = array();
while ($tmprow = @mysql_fetch_array($res)) {
$rows[] = $tmprow;
}
$date = getdate(time());
$request = array('remote_host' => $REMOTE_ADDR,
'user_agent' => $HTTP_USER_AGENT,
'weekday' => $date['wday']);
srand((double)microtime()*1000000);
shuffle($rows);
for ($i = 0; $i < count($rows); $i++) {
if (acl_check($request, $rows[$i])) {
$row = $rows[$i];
break;
}
}
return($row);
}
// Log an adview for the banner with $bannerID
function log_adview($bannerID)
{
global $phpAds_log_adviews, $phpAds_ignore_hosts, $phpAds_reverse_lookup, $phpAds_insert_delayed;
global $row, $phpAds_tbl_adviews;
global $REMOTE_HOST, $REMOTE_ADDR;
if(!$phpAds_log_adviews)
{
return(false);
}
if($phpAds_reverse_lookup)
{
$host = isset($REMOTE_HOST) ? $REMOTE_HOST : @gethostbyaddr($REMOTE_ADDR);
}
else
{
$host = $REMOTE_ADDR;
}
// Check if host is on list of hosts to ignore
$found = 0;
while(($found == 0) && (list($key, $ignore_host)=each($phpAds_ignore_hosts)))
{
if(eregi($ignore_host, $host)) // host found in ignore list
{
$found = 1;
}
}
if($found == 0)
{
$res = @mysql_db_query($GLOBALS["phpAds_db"], sprintf("
INSERT %s
INTO $phpAds_tbl_adviews
VALUES
(
'$bannerID',
null,
'$host'
)
", $phpAds_insert_delayed ? "DELAYED": ""));
}
}
// view a banner
function view($what, $clientID=0, $target = "", $withtext=0, $context=0)
{
global $phpAds_db, $REMOTE_HOST;
if(!is_int($clientID))
{
$target = $clientID;
$clientID = 0;
}
@mysql_pconnect($GLOBALS["phpAds_hostname"], $GLOBALS["phpAds_mysqluser"], $GLOBALS["phpAds_mysqlpassword"]);
$row = get_banner($what, $clientID, $context);
if(!empty($row["bannerID"]))
{
if(!empty($target))
{
$target = " target=\"$target\"";
}
if($row["format"] == "html")
{
if(!empty($row["url"]))
{
echo "";
}
echo $row["banner"];
if(!empty($row["url"]))
{
echo "";
}
}
else
{
echo "";
if($withtext && !empty($row["bannertext"]))
{
echo " \n".$row["bannertext"]."";
}
}
}
log_adview($row["bannerID"]);
return($row["bannerID"]);
}
function view_t($what, $target = "")
{
view ($what, $target, 1);
}
?>
function acl_check($request, $row) {
global $phpAds_tbl_acls;
global $phpAds_db;
$bannerID = $row['bannerID'];
if (($res = mysql_db_query($phpAds_db, "SELECT * FROM $phpAds_tbl_acls
WHERE bannerID = $bannerID ORDER by acl_order ")) == 0){
return(0);
}
while ($aclrow = mysql_fetch_array($res)) {
switch ($aclrow['acl_type']) {
case 'clientip':
$result = acl_check_clientip($request, $aclrow);
break;
case 'useragent':
$result = acl_check_useragent($request,
$aclrow);
break;
case 'weekday':
$result = acl_check_weekday($request,
$aclrow);
break;
default:
return(0);
}
if ($result != -1) {
return($result);
}
}
return(1);
}
function acl_check_weekday($request, $aclrow) {
$data = $aclrow['acl_data'];
$day = $request['weekday'];
if ($day == $data) {
switch ($aclrow['acl_ad']) {
case 'allow':
return(1);
case 'deny';
return(0);
default:
return(-1);
}
}
return(-1);
}
function acl_check_useragent($request, $aclrow) {
$data = $aclrow['acl_data'];
$agent = $request['user_agent'];
if (eregi($data, $agent)) {
switch ($aclrow['acl_ad']) {
case 'allow':
return(1);
case 'deny';
return(0);
default:
return(-1);
}
}
return(-1);
}
function acl_check_clientip($request, $aclrow) {
$data = $aclrow['acl_data'];
$host = $request['remote_host'];
list ($net, $mask) = explode('/', $data);
$net = explode('.', $net);
$pnet = pack('C4', $net[0], $net[1], $net[2], $net[3]);
$mask = explode('.', $mask);
$pmask = pack('C4', $mask[0], $mask[1], $mask[2], $mask[3]);
$host = explode('.', $host);
$phost = pack('C4', $host[0], $host[1], $host[2], $host[3]);
if (($phost & $pmask) == $pnet) {
switch ($aclrow['acl_ad']) {
case 'allow':
return(1);
case 'deny';
return(0);
default:
return(-1);
}
}
return(-1);
}
?>
Sharewatch Low Cost Share Trading, CFD's and Spread Betting. Other featues include stock and share quotes for Ireland, UK, USA, Europe ect. Irish, British and North American level 2 quotes, graphs and news. Make Sharewatch your Homepage
$db=mysql_connect("localhost", "sharewatch" , "euro12munster34"); ?>
Live Stock Quotes for the US Nasdaq, NYSE, UK, Irish, Canadian and Middle East markets. Live prices, charts, options, portfolios, e-minis, mutual funds and currencies.
This program includes a fully customized Sponsorship Page that loads once our E-Gate subscribers log into their accounts. It is a full page advertisement and is open while our E-Gate Menu loads. As part of this package, your company logo will also be placed on our E-Gate menu. This means that our subscribers will be exposed to your company as long as they have our service open (typically 8 hours of the trading day) and your logo will contain a direct link to your site. Sign up now
Login Page is where our subscribers go to log into our stock quote
service everyday. We offer an opportunity here to present your banner
ad and a direct link to your website. There are currently 5 ad spaces
as shown below.
General Website - Sharewatch.com
Sharewatch was Ireland's first financial portal.
Launched in 1996 Sharewatch has served up to 1.2 million page impressions and 100,000 users in a single month. With the provision of several share trading products and high tech business content Sharewatch.com has a large database of clients and readership.
Sharewatch provides the latest business news, quotes, graphs etc to a predominantly Irish audience. Visitors to Sharewatch.com have easy access to a wealth of financial content and throughout 2005 Sharewatch has added several new products and services to ensure
Sharewatch.com maintains the leading Irish Financial Portal. Advertising opportunities consist of Banner Ads at €15 CPM (1,000 page impressions) and Overall Sponsorship (12 months only). Contra advertising also welcome. To contact us about advertising on Sharewatch.com please click here.
E-mail Campaign
This program consists of informing our entire subscriber base with a customized e-mail message about your company and products/services. It is also an effective way to reach a highly targeted prospect base.
Our Pricing
Program
Rate (per month, in USD)
Sponsorship Page
$15,000
E-mail Program
1 time = $5,000
3 times = $10,000
Sponsorship Page + Email Program
$17,500
Login Page
L1 - 468x60 pixels
$2,500
L2 - 468x300 pixels
$5,000
R1, 2, 3 - 252x60 pixels
$1,000
R1+R2, or R2+R3 - 252x138 pixels
$2,000
We require payment in advance. Also, we have in-house designers who can design the Sponsorship Page and banners for the Login Page for you at an additional cost if needed.
Design Specifications:
Sponsorship Page
Look and Feel:
Preferably matches your web site's look and feel
Size/Area for Ad:
Top part of the page or whole page, with Width <= 760 pixels (strict) and Height < 600 (loose)
Style of Presentation:
Text, images and Flash are welcome. No applets are allowed.
Image Format:
JPG, GIF (static or animated), PNG
File Size:
Images and Flash no larger than 60 KB in total please
Links From the Page:
Pop-up or stay (replaces current page), please specify
Login Page
Ad Space
Ad Size
File Format
File Size
L1
468x60
GIF, PNG, JPG, Flash
< 15 KB
L2
468x360
GIF, PNG, JPG, Flash, HTML block (text + graphics)