taggragg Posted June 18, 2008 Share Posted June 18, 2008 My index.php will not display the style.css. Any help would be amazing. Quote Link to comment Share on other sites More sharing options...
Stephen Posted June 18, 2008 Share Posted June 18, 2008 Can you post the index page (and possibly the syle.css page)? Quote Link to comment Share on other sites More sharing options...
taggragg Posted June 18, 2008 Author Share Posted June 18, 2008 <? $vars = $_POST; if (strstr($_SERVER['HTTP_REFERER'],'http://www.processnation.com/')) { $errors = Array(); $errors = validate_fields($vars); if (count($errors) == 0) { $message = "Thank you.<br>A representative will be in contact with you shortly."; $body = <<<end ======================= = CONTACT INFORMATION = ======================= First Name: {$vars['first_name']} Last Name: {$vars['last_name']} Company Name: {$vars['company_name']} Phone: {$vars['phone']} Email: {$vars['email']} ======================== = MERCHANT INFORMATION = ======================== Average Ticket: {$vars['average_ticket']} High Ticket: {$vars['high_ticket']} Monthly Volume: {$vars['volume']} Currently Processing: {$vars['currently_processing']} ======================== = TRACKING INFORMATION = ======================== Engine: {$vars['engine']} Custom ID: {$vars['custom_id']} Keyword: {$vars['keyword']} ======================== = VISITOR INFORMATION = ======================== IP: {$_SERVER['REMOTE_ADDR']} User Agent: {$_SERVER['HTTP_USER_AGENT']} Referrer: {$vars['referrer']} end; mysql_connect('localhost','snip','snip'); $vars['date'] = date('Y-m-d H:i:s'); $vars['ip'] = $_SERVER['REMOTE_ADDR']; $vars['user_agent'] = $_SERVER['HTTP_USER_AGENT']; unset($vars['submit']); $query = construct_query($vars,"INSERT INTO processnation.leads (##columns##) VALUES(##values##)"); mysql_query($query); $subject = "Live Prospect - ProcessNation.com - ".mysql_insert_id(); mail('jon.taggart@gmail.com',$subject,$body,'From: prospect@processnation.com'); //mail('jon.taggart@gmail.com',$subject,$body,'From: prospect@processnation.com'); unset($vars); } else { $message = ''; foreach ($errors as $error) $message .= "ERROR: $error<br>"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>High Risk and Offshore Merchant Accounts - ProcessNation.com</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <meta name="Author" content="Tjobbe Andrews, SiteCreative.net" /> </head> <body> <div id="container"> <div id="holder" class="clearfix"> <div id="logo"> <h1>Process Nation</h1> </div> <div id="navigation"> <ul> <li><a href="index.php">HOME</a></li> <li><a href="/about">ABOUT US</a></li> <li><a href="/contact">CONTACT</a></li> </ul> </div> <div id="header"></div> <h1>Welcome to Process Nation</h1> <p>Process Nation is a leading provider for Higher Risk Merchants, who want to take advantage of the full benefits of accepting Visa, MasterCard, American Express and Discover Cards. The bottom line for almost every business can be increased substantially by accepting credit cards as well as checks. Process Nation specialists are trained in assisting merchants who may have experienced difficulty in securing a merchant account. <p>In addition, if you have been unable to get approved for a domestic merchant processing account (in the U.S.), Process Nation has the capabilities to help you apply for, and secure, a merchant account with an offshore bank. This will allow your business to enjoy the benefits of a merchant account in the event that other credit card processing options have already been considered. </p> <p>Process Nation can also help merchants who have been denied merchant account privileges to find suitable processing and payment alternatives for their business. Let us know how we can assist your business!</p> <? $message_inject = ''; if ($message) { if (stristr($message,'error')) $color = 'red'; else $color = 'green'; $message_inject = <<<end <div class="panel" align="justify" style="text-align: center;"> <span class="bodytext" style="font-size: 15px;font-weight: bold; color: $color;"> $message </span> </div> end; } if ($color == 'green') { $message_inject .= <<<end <!-- 7Search Code for Conversion Page (start) --> <script language="JavaScript" type="text/javascript"> var _7search_conversion_advid = 150876; var _7search_conversion_type = "lead"; var _7search_conversion_value = 20; </script> <script language="JavaScript" type="text/javascript" src="http://conversion.7search.com/conversion/v1/conversion.js"></script> <noscript><img width="1" height="1" border="0" src="http://conversion.7search.com/conversion/v1/?advid=150876&urlid=&type=lead&value=20&noscript=1" /></noscript> <!-- 7Search Code for Conversion Page (end) --> end; } print $message_inject; ?> <div class="panel" align="justify"> <span class="bodytext"> <strong style="font-size: 14px; color: #000000">Please fill out the form below for a free, no-obligation consultation:</strong> <br /> <form action="/" method="POST"> <input type="hidden" name="engine" value="<?=$_REQUEST['engine']?>"> <input type="hidden" name="custom_id" value="<?=$_REQUEST['custom_id']?>"> <input type="hidden" name="keyword" value="<? if ($_GET['OVRAW']) print $_GET['OVRAW']; else print $_REQUEST['keyword'];?>"> <input type="hidden" name="referrer" value="<?=$_SERVER['HTTP_REFERER']?>"> <table class="form" style="margin-left: 30px;"> <tr> <td style="text-align: right;">First Name:</td> <td><input type="text" name="first_name" value="<?=$vars['first_name']?>"></td> </tr> <tr> <td style="text-align: right;">Last Name:</td> <td><input type="text" name="last_name" value="<?=$vars['last_name']?>"></td> </tr> <tr> <td style="text-align: right;">Email:</td> <td><input type="text" name="email" value="<?=$vars['email']?>"></td> </tr> <tr> <td style="text-align: right;">Phone:</td> <td><input type="text" name="phone" value="<?=$vars['phone']?>"></td> </tr> <tr> <td style="text-align: right;">Company Name:</td> <td><input type="text" name="company_name" value="<?=$vars['company_name']?>"></td> </tr> <tr> <td style="text-align: right;">What is your average ticket?</td> <td><input type="text" name="average_ticket" value="<?=$vars['average_ticket']?>"></td> </tr> <tr> <td style="text-align: right;">What is your high ticket?</td> <td><input type="text" name="high_ticket" value="<?=$vars['high_ticket']?>"></td> </tr> <tr> <td style="text-align: right;">Please select your monthly volume:</td> <td><select name="volume"> <option value="$10,000 - $50,000"<? if ($vars['volume'] == "$10,000 - $50,000") print ' selected'; ?>>$10,000 - $50,000</option> <option value="$50,001 - $100,000"<? if ($vars['volume'] == "$50,001 - $100,000") print ' selected'; ?>>$50,001 - $100,000</option> <option value="$100,001 - $200,000"<? if ($vars['volume'] == "$100,001 - $200,000") print ' selected'; ?>>$100,001 - $200,000</option> <option value="$200,001 - $1 million"<? if ($vars['volume'] == "$200,001 - $1 million") print ' selected'; ?>>$200,001 - $1 million</option> <option value="$1 million or above"<? if ($vars['volume'] == "$1 million or above") print ' selected'; ?>>$1 million or above</option> </select></td> </tr> <tr> <td style="text-align: right;">Are you currently processing credit cards? </td> <td><input type="radio" name="currently_processing" value="Yes"<? if ($vars['currently_processing'] == "Yes") print ' checked'; ?>/> Yes <input type="radio" name="currently_processing" id="currently_processing_1" value="No"<? if ($vars['currently_processing'] == "No") print ' checked'; ?>/> No</td> </tr> <tr> <td></td> <td style="text-align: center;"><input type="submit" name="submit" value="Submit"></td> </tr> </table></form> <br><b><i>* Agent and ISO partnerships are available with strong splits and residuals. Please contact us through this online form. A representative will contact you within 24 hours.</i></b> </span> </div> </div> </div> <div id="footer" class="smallgraytext" align="center"> ProcessNation.com © 2008<br /> </div> </div> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-3823202-1"); pageTracker._initData(); pageTracker._trackPageview(); </script> </body> </html> <? function validate_fields($vars) { $errors = Array(); if (trim($vars['first_name']) == '') $errors[] = 'First Name is required'; if (trim($vars['last_name']) == '') $errors[] = 'Last Name is required'; if (trim($vars['email']) == '') $errors[] = 'Email is required'; else { if (!valid_email($vars['email'])) $errors[] = 'Email is invalid'; } if (trim($vars['phone']) == '') $errors[] = 'Phone is required'; else { if (strlen($vars['phone']) < 10) $errors[] = 'Phone is invalid'; } if (trim($vars['company_name']) == '') $errors[] = 'Company Name is required'; if (trim($vars['currently_processing']) == '') $errors[] = 'Currently Processing is required'; return $errors; } function valid_email($email) { // checks proper syntax if( !preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email)) return false; else return true; } function construct_query($data,$query,$no_update=Array()) { $columns = ''; $values = ''; $updates = ''; foreach ($data as $key => $value) { $columns .= $key.','; $values .= "'".mysql_escape_string($value)."',"; if (!in_array($key,$no_update)) $updates .= $key.'='."'".mysql_escape_string($value)."',"; } $columns = trim($columns,' ,'); $values = trim($values,' ,'); $updates = trim($updates,' ,'); $query = str_ireplace('##columns##',$columns,$query); $query = str_ireplace('##values##',$values,$query); $query = str_ireplace('##updates##',$updates,$query); return $query; } ?> <div id="footer"> <span id="copyright">Design by <a href="http://www.sitecreative.net" target="_blank" title="Opens link to SiteCreative.net in a New Window">SiteCreative</a></span> <ul> <li><a href="#">Home</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">Contact</a></li> </ul> </div> </div> </body> </html> The CSS: /*defaults*/ body {background:#2765AF url('../images/body_bg.jpg') repeat-x 0 0; color:#000000; margin:20px 0; padding:0; font-family:"Trebuchet MS", verdana, arial, "Times New Roman", serif; font-size:90%; } p {margin:0; padding:0 0 15px 0; } a {color:#000000; text-decoration:underline; } a:hover {color:#225799; text-decoration:none;} /*structural elements*/ #container {margin:0px auto; text-align:center; width:760px; } #holder {width:100%; padding:20px 20px 5px 20px; background:#FFFFFF; text-align:left; } #logo {background:url('../images/logo.gif') no-repeat 180px 0; border-bottom:1px solid #DADADA; padding:5px 30px 20px 0px; } #navigation {padding:10px 0; } #header {background:#DADADA url('../images/header_home.jpg') no-repeat 10px 10px; padding:10px; height:200px; } #content {float:left; width:490px; padding:20px 10px 0 0; line-height:160%; } #news {float:right; width:250px; padding:20px 0; line-height:140%; text-align:justify; } .newsItem {padding:20px 20px 5px 20px; background:#FEFFD5; border:1px solid #FFEB70; font-size:90%; margin-bottom:20px; } #footer {clear:both; width:100%; font-size:80%; background:#DADADA; padding:20px; text-align:left; border-top:2px solid #2765AF; } #copyright {float:right; } /*headings*/ .newsItem h1 {color:#225799; margin:0 0 10px 0; padding:0; font-size:130%; font-weight:normal; } #content h1 {font-size:170%; font-weight:normal; line-height:130%; margin:0; padding:0 0 20px 0; } #logo h1 {font-weight:normal; font-size:170%; margin:0; padding:0; color:#225799; } /*navigation*/ #navigation ul {margin:0; padding:0; } #navigation li {margin:0; padding:0; list-style:none; display:inline; } #navigation a {color:#225799; padding:0 20px 0 0; text-decoration:none; } #navigation a:hover {color:#000000; } #footer ul {margin:0; padding:0; } #footer li {margin:0; padding:0; list-style:none; display:inline; } #footer a {color:#000000; font-weight:bold; padding:0 5px 0 0; text-decoration:underline; } #footer a:hover {color:#000000; text-decoration:none; } /*shamelessly borrowed styles from http://www.positioniseverything.net/easyclearing.html*/ .clearfix:after {content:"."; display:block; height:0; clear:both; visibility:hidden; } .clearfix {display:inline-block; } /* Hides from IE-mac \*/ * html .clearfix {height:1%; } .clearfix {display:block; } /* End hide from IE-mac */ Quote Link to comment Share on other sites More sharing options...
serverman Posted June 18, 2008 Share Posted June 18, 2008 why would you use fedora for a server platform it meant for desktop use and uses a lot of memory so it kinda heavy for a server you not use a more light wight Linux like Ubuntu or even go to bsd witch you can turn off your x server(desktop environment) and have more memory for your server i use freebsd ... also bsd comes with inetd witch has ftp and other server technology in it and why are you using Apache 2.0.x when there is 2.2.x sorry just bugs me Quote Link to comment Share on other sites More sharing options...
taggragg Posted June 18, 2008 Author Share Posted June 18, 2008 It was set up for me about 3 years ago for my website myindietones.com. He told me that was the set up we needed for certain scripts we are running. I am new to all of this and trying to take it all in as fast as I can. Thank you for the information I will definitely look into updating my server set up. Quote Link to comment Share on other sites More sharing options...
bluejay002 Posted June 18, 2008 Share Posted June 18, 2008 ow... i think you are too honest with your code... and i mean WAY TOO HONEST. whenever you post something, replace the values with something else unless you intentionally want it to be visible to all... that's generous of you. well if that's dummy values, then it should be fine. such values are: emails, sites, your host's address, username, password, etc. dont give spill out vital info and replace it with a different one. my two cents... Quote Link to comment Share on other sites More sharing options...
taggragg Posted June 18, 2008 Author Share Posted June 18, 2008 ow... i think you are too honest with your code... and i mean WAY TOO HONEST. whenever you post something, replace the values with something else unless you intentionally want it to be visible to all... that's generous of you. well if that's dummy values, then it should be fine. such values are: emails, sites, your host's address, username, password, etc. dont give spill out vital info and replace it with a different one. my two cents... Thank you for the heads up. I am way to new and I am trying to figure this out. I didn't think there were usernames and passwords in the code. Quote Link to comment Share on other sites More sharing options...
bluejay002 Posted June 18, 2008 Share Posted June 18, 2008 its really no big deal for now (the info you presented) but you must avoid doing this for other important info: mysql_connect('localhost','snip','snip'); and etc. nah, you might just want to neglect it but it is better not to post real values. Quote Link to comment Share on other sites More sharing options...
taggragg Posted June 18, 2008 Author Share Posted June 18, 2008 its really no big deal for now (the info you presented) but you must avoid doing this for other important info: mysql_connect('localhost','snip','snip'); and etc. nah, you might just want to neglect it but it is better not to post real values. Thanks so much!!! I am just trying to get my site to display the css. It is super frustrating. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.