Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,171,860 members, 7,883,021 topics. Date: Sunday, 07 July 2024 at 09:24 PM

Phantomcat's Posts

Nairaland Forum / Phantomcat's Profile / Phantomcat's Posts

(1) (2) (of 2 pages)

Art, Graphics & Video / Re: How To Make Comics? by phantomcat(m): 12:03pm On Jun 12, 2009
Hi guys

Namzo, Adjain and Artboy send me a mail i might have a job for you guys. send ma a mail a tosan@eagle8consulting.com if you are iinterested.
Webmasters / Re: Session Variables by phantomcat(m): 3:29pm On Jul 29, 2008
this is the source code from one of the pages.

<?php require_once('Connections/gidox.php'); ?>
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}

// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != ""wink){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true"wink){
//to fully log out a visitor we need to clear the session varialbles
$_SESSION['MM_Username'] = NULL;
$_SESSION['MM_UserGroup'] = NULL;
$_SESSION['PrevUrl'] = NULL;
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
unset($_SESSION['PrevUrl']);

$logoutGoTo = "logout.php";
if ($logoutGoTo) {
header("Location: $logoutGoTo"wink;
exit;
}
}
?>
<?php
if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;

// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == ""wink && true) {
$isValid = true;
}
}
return $isValid;
}

$MM_restrictGoTo = "sorry.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?"wink) $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<?php
mysql_select_db($database_gidox, $gidox);
$query_news = "SELECT * FROM news ORDER BY `no` ASC";
$news = mysql_query($query_news, $gidox) or die(mysql_error());
$row_news = mysql_fetch_assoc($news);
$totalRows_news = mysql_num_rows($news);

$colname_user = "-1";
if (isset($_SESSION['ID'])) {
$colname_user = (get_magic_quotes_gpc()) ? $_SESSION['ID'] : addslashes($_SESSION['ID']);
}
mysql_select_db($database_gidox, $gidox);
$query_user = sprintf("SELECT * FROM reg WHERE ID = %s", $colname_user);
$user = mysql_query($query_user, $gidox) or die(mysql_error());
$row_user = mysql_fetch_assoc($user);
$totalRows_user = mysql_num_rows($user);

// Trim by length (by FELIXONE.it)
function TrimByLength($str, $len, $word) {
$end = "";
if (strlen($str) > $len) $end = ", ";
$str = substr($str, 0, $len);
if ($word) $str = substr($str,0,strrpos($str," "wink+1);
return $str.$end;
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Go-GO Global member downline</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="images/BrightSide1.css" type="text/css" />
<style type="text/css">
<!--
.style3 {color: #CC0000; font-weight: bold; }
.style4 {
color: #000099;
font-style: italic;
}
.style5 {color: #330000}
.style1 { color: #6297BC;
font-weight: bold;
}
-->
</style>
</head>
<body>
<!-- wrap starts here -->
<div id="wrap">
<div id="header">
<h1 id="logo">Gidok<span class="green"> Global</span><span class="gray"> Enterpise</span></h1>
<h2 id="slogan">, giving you a lift.</h2>
<!-- Menu Tabs -->
<ul>
<li><a href="index.html"><span>Home</span></a></li>
<li><a href="admin_area.php"><span>About</span></a></li>
<li><a href="registration.php"><span>Register</span></a></li>
<li><a href="support.php"><span>Support</span></a></li>
<li><a href="contact.php"><span>Contact</span></a></li>
</ul>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap"> <img src="images/headerphoto.jpg" width="820" height="120" alt="headerphoto" class="no-border" />
<div id="sidebar" >
<h1>&nbsp;</h1>
<ul class="sidemenu">
<li><a href="index.html">Home</a></li>
<li><a href="about.php">About us </a></li>
<li><a href="registration.php">Register</a></li>
<li><a href="<?php echo $logoutAction ?>"> Logout</a></li>
<li><a href="services.php">Services</a></li>
</ul>
<h1>Wise Words</h1>
<p>&quot;Men are disturbed, not by the things that happen,
but by their opinion of the things that happen.&quot;</p>
<p class="align-right">- Epictetus</p>
</div>
<div id="main">
<h1>Gato <span class="green">Investment <span class="gray">Project</span> </span></h1>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td colspan="2"><strong>Welcome <span class="style5">
<?php if ($totalRows_user > 0) { // Show if recordset not empty ?>
<?php /*START_PHP_SIRFCIT*/ if ($row_user['ID']=="-1"wink{ ?>
<?php echo $row_user['firstname']; ?>
<?php } /*END_PHP_SIRFCIT*/ ?>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_user > 0) { // Show if recordset not empty ?>
<?php echo $row_user['surname']; ?>
<?php } // Show if recordset not empty ?></span></strong></td>
</tr>
<tr>
<td colspan="2"><div align="center" class="style4">Below is the status of your downline </div></td>
</tr>
<tr>
<td width="33%"><span class="style3">First Stage </span></td>
<td width="67%">&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Second Stage </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Third Stage </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Forth Stage </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Fifth Stage </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Sixth Stage </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="style3">Seventh Stage </span></td>
<td>&nbsp;</td>
</tr>
</table>
<p>

</p>
</div>
<div id="rightbar">
<h1>News</h1>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td><?php do { ?>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td valign="top"><p><span class="style1"><?php echo $row_news['subject']; ?></span>

<?php echo $row_news['date']; ?>



<?php echo TrimByLength($row_news['news_details'], 100, true); ?></p>
</td>
</tr>
</table>
<?php } while ($row_news = mysql_fetch_assoc($news)); ?></td>
</tr>
</table>
<h1>&nbsp;</h1>
</div>
<!-- content-wrap ends here -->
</div>
<!-- footer starts here -->
<div id="footer">
<div class="footer-left">
<p class="align-left"> &copy; 2008 <strong>Gidok Global Enterprise </strong> |
Design by <a href="http://www.robertrover.com/">Robert Rover Ent.</a></p>
</div>
</div>
<!-- footer ends here -->
<!-- wrap ends here -->
</div>
</body>
</html>
<?php
mysql_free_result($news);

mysql_free_result($user);
?>


expecting ur reply

Webmasters / Session Variables by phantomcat(m): 8:55am On Jul 29, 2008
guys i need some help here.

I am working on a php mysql job, the issue I've created an app that i want to use session variables for. so that when a user logs in, he will be identified sitewide. i am working with dreamweaver. though i have put in the server behaviours on the pages it is not showing the loged in user details.

please i am open for suggestions
Webmasters / Nairahost.com? Anyone? by phantomcat(m): 11:23am On May 20, 2008
Please is anyone hosting with nairahost.com? i have been having issues connection to my database and their support is not responding on the issue so please if anyone hosting on nairahost.com has connected successfully to a database on nairahost, please let me know the method you used.
Webmasters / Re: Connection String by phantomcat(m): 3:40pm On Apr 21, 2008
thanks guys and lady I appreciate.
Webmasters / Connection String by phantomcat(m): 3:26pm On Apr 15, 2008
guys i am having an issue connecting to mysql database, do any one have a sample php connection string to database
Webmasters / Dreamweaver Cs3 Error by phantomcat(m): 1:29pm On Nov 29, 2007
Guys pls I need help on this one.

I'm working on a project with dreamweaver CS3 using PHP and MySQL Database, all was goin well until i tried building a form to insert record, this error pops up.

Error at line 646 of file "C:\Program Files\Adobe\Adobe Dreamweaver CS3\Configuration\Server Behaviors\PHP_MySQL\InsertRecord.js
TypeError: name has no proberties


I'm stuck here, I'm open to suggestions
Webmasters / Mail Script With Sms Alert by phantomcat(m): 10:17pm On Oct 06, 2007
Guys

is there a form to mail script with sms alert.
Webmasters / How Do I Upload Sql Database by phantomcat(m): 9:12am On Sep 28, 2007
Guys i need help on this issue, I'm new to databases, i developed a site using asp and access database and i want to migrate to SQL. On my local machine i have exported the database to SQL and tested it, the question is how do i move the SQL database to the hosting server? How do i locate the script to upload in SQL?
Webmasters / Re: Dreamweaver Php Database Connection by phantomcat(m): 11:53am On Aug 30, 2007
Thanks Smartsoft. i will try them i need it badly.
Webmasters / Dreamweaver Php Database Connection by phantomcat(m): 6:49pm On Aug 29, 2007
Guys

I have been trying to use php with my dreamweaver to access my sql database but it keep telling me sql is not supported in my server module. I'm using a IIS server on my desktop. I have followed the dreamweaver help to the last but its still not connecting.

I need some help on this one.
Webmasters / Php Code For A Form by phantomcat(m): 3:23pm On Mar 10, 2007
guys there is this form i did for www.hospitalityafric.com this is the link http://www.hospitalityafric.com/spirit%20of%20hospitality%20registration.html i am hopping that some one will be able to put me tru cos all that i av don keep bringing out error message or an option to download the php script i wrote.
Webmasters / Re: Website Review by phantomcat(m): 2:35pm On Mar 10, 2007
guy nice one i see u are improving keep it up.

but the logo is not really clear, the nav on the left is not too clear it would be better with a mouse over effect. and some more pics would make it a little lighter. but its a good one
Gaming / Re: Which Computer Games Do You Play? by phantomcat(m): 4:11pm On Feb 12, 2007
Is any one on GTA vice city now i'm stuck on a particular stage anmd cant move
Webmasters / Online Notification by phantomcat(m): 4:01pm On Dec 08, 2006
just got a job and will need some help. how is the online notification coded for either msn, yahoo, or other instant messanger services just as we have on nairaland? pls some one help
Webmasters / Re: Web Designer Wanted For Pat Utomi's Campaign by phantomcat(m): 11:24am On Jun 30, 2006
Guys no mind the guy he just ey hussle for the job like every one else. but there should be professionalism too. i will keep tabs on that site to see the magic that is about to happen.
Webmasters / Re: New Website For The Critics by phantomcat(m): 1:44pm On Jun 29, 2006
One thing i like about niaraland is the amout of resource available. This is a big thanks to you netzymes i am reviewing all replyes to this post. i will tell u when to check for changes.
Webmasters / Re: New Website For The Critics by phantomcat(m): 4:59pm On Jun 22, 2006
Thanks Garuba i dont think its harsh. According to tradition it is those that listen that grow. thanks i will check the points highlighted.
Webmasters / Re: New Website For The Critics by phantomcat(m): 8:32pm On Jun 18, 2006
Apart fdrom the landing page what else is wrong? just want specifics so i will know what to correct.
Art, Graphics & Video / Re: I Need Toon Boon Studio 2.0 For My Project by phantomcat(m): 8:18pm On Jun 18, 2006
the thing is how can i get it to you. the option is that u can download the trial version and get the crack ore serial at keygen.us. before u go there make sure ur antivirus is up to date
Webmasters / Re: Creating Screensavers by phantomcat(m): 8:06pm On Jun 11, 2006
Just go to Ikeja there are screensavers creators there. i cant remember one now but u will get one there
Webmasters / Re: New Website For The Critics by phantomcat(m): 8:00pm On Jun 11, 2006
Thanks guys it really was my first wink. and the client really liked the animation. I think the site is too slow in loading suprised nobody mentioned that cool, and I think that i should change some of the pics on it. some are just too big for it lipsrsealed.
Webmasters / New Website For The Critics by phantomcat(m): 2:35pm On Jun 10, 2006
Guys check this one out www.eagle8consulting.com tell me what u think.
Webmasters / Re: Online Video Player by phantomcat(m): 5:56pm On May 27, 2006
Thanks prodigalson i am doin the download of both i will get back to you and tell you which is better.
Webmasters / Re: Online Video Player by phantomcat(m): 4:45pm On May 26, 2006
just saw the aflax option, so how do i use it my2cents?
Webmasters / Online Video Player by phantomcat(m): 4:40pm On May 26, 2006
Hey guys as usual i am back to the best resource center online wink (dont mind the sykes). this is my issue. i want to add a video to a web page with windows media player controls an all that. how do i go about it. i am trying to do it with flash but i know it is possible. so guys hit me up. shocked
Webmasters / Re: 3d Icons For Site Design by phantomcat(m): 4:21pm On May 26, 2006
now this is one of the badest contribution ever made on this forum thanks guys i'll surely make use of them.
Webmasters / Re: Website Review by phantomcat(m): 2:58pm On May 24, 2006
Masters dont say they are masters. i checked it out its cool, i will try the css image thing. and try reducing the flash on my site. sometimes its hard walkin the thin line between beauty and effectiveness. thanks Bro
Webmasters / Re: Can One De-register A Domain Name? by phantomcat(m): 5:03pm On May 22, 2006
guy abeg what would it take to do it i am open to all ideas.
Webmasters / Re: Can One De-register A Domain Name? by phantomcat(m): 5:26pm On May 21, 2006
Thanks guys i guess i will just av to allow iot lie till it expires. props to u my2cents.
Webmasters / Re: How To Advertize Using Pop-ups by phantomcat(m): 2:28pm On May 19, 2006
Sometime we have no choice especially when cliensts ask for it. I actually enjoy the smiles on their faces when they experience a mouse over pop up in a demo. You give the client what they want.
Webmasters / Can One De-register A Domain Name? by phantomcat(m): 2:14pm On May 19, 2006
Deregistring A Domain Name. Is It Possible?

I want to remove a domain name from the net. Is this possible?

(1) (2) (of 2 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 61
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.