Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Help fixing my drop down menu

 
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial)
View previous topic :: View next topic  
Author Message
megatron
Smarty n00b


Joined: 07 Mar 2015
Posts: 1

PostPosted: Sat Mar 07, 2015 12:46 am    Post subject: Help fixing my drop down menu Reply with quote

Hello,

I need some help fixing my drop down menu, it is currently in PHP and I need someone to work their magic and make it work with smarty.

Here is the code (The IP has been removed to prevent hacking)

Code:
 <div id="loginmodal2" class="reveal-modal">
 <h2 class="topmodal">Online Status</h2>
 <center><h5 class="panel radius" style="font-size: 14px;">Have an issue? <a href="contact"><font color="#198C34">Contact Us</font></a></h5></center>
<h4><u>Dallas, Texas</u></h4> <div class="online"><center><?PHP
    $ip = "Insert IP Here";
   $onlinetext = '<div class="alert-box success onlinestyle">Online</div>';
   $offlinetext = '<div class="alert-box alert onlinestyle">Offline</div>';
   $port = "21";

if(@fsockopen($ip,$port,$errno,$errstr,1)) {
echo"$onlinetext";
} else {
echo"$offlinetext";
}

?></center></div>



I tried to fix this code myself and it backfired hardcore on me.

Thank you for your help,
Devin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP