|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
megatron Smarty n00b
Joined: 07 Mar 2015 Posts: 1
|
Posted: Sat Mar 07, 2015 12:46 am Post subject: Help fixing my drop down menu |
|
|
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 |
|
|
|
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
|