Guest User

relay pro 4rele

a guest
Apr 10th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.06 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <meta name="author" content="KMTronic LTD" />
  7. <meta name="description" content="KMTronic LTD" />
  8. <meta name="keywords" content="KMTronic LTD Mobile" />
  9. <title>KMTronic Mobile</title>
  10. <link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
  11. <script type="text/javascript" src="jquery.min.js" ></script>
  12. <!-- Hide Mobiles Browser Navigation Bar -->
  13. <script type="text/javascript">
  14.     window.addEventListener("load",function() {
  15.     // Set a timeout...
  16.     setTimeout(function(){
  17.     // Hide the address bar!
  18.     window.scrollTo(0, 1);
  19.     }, 0);
  20.     });
  21. </script>
  22. </head>
  23.  
  24. <body>
  25. <div id="main_container">
  26.     <div class="header">
  27.     <a href="index.html" tppabs="" class="left_bt">home</a>
  28.     <span>CPanel</span></div>
  29.    
  30.         <div class="box" id="box">
  31.             <div class="box_content">
  32.            
  33.                 <div class="box_content_tab">
  34.                 Search
  35.                 </div>
  36.                
  37.                 <div class="box_content_center">
  38.                 <div class="form_content">
  39.                 <form>
  40.                 <input type="text" class="form_input_box" />
  41.                 <a class="boxclose" id="boxclose">Close</a>
  42.                 <input type="submit" class="form_submit" value="Submit" />
  43.                 </form>
  44.                 </div>
  45.                
  46.                 <div class="clear"></div>
  47.                 </div>
  48.            
  49.            </div>
  50.         </div>
  51.  
  52.         <div class="box" id="box_login">
  53.             <div class="box_content">
  54.                 <div class="box_content_tab">
  55.                 Login
  56.                 </div>
  57.                
  58.                 <div class="box_content_center">
  59.                     <div class="form_content">
  60.                     <form action="#">
  61.                     <label>Username</label>
  62.                     <input type="text" class="form_input_box" />
  63.                     <label>Password</label>
  64.                     <input type="password" class="form_input_box" />
  65.                     <a class="boxclose" id="boxclose_login">Close</a>
  66.                     <input type="submit" class="form_submit" value="Login" />
  67.                     </form>
  68.                     </div>
  69.                 <div class="clear"></div>    
  70.                 </div>
  71.            
  72.            
  73.            
  74.            </div>
  75.         </div>
  76.        
  77.     <div class="content">
  78.        
  79.         <div class="corner_wrap">
  80.  
  81.            
  82.           <div class="entry">
  83.             <h3>Relay 1</h3>
  84.             <p> <a href="relay.php?ON"><img src="img/ON.png" width="67" height="43" border="0" /></a> <a href="relay.php?OFF"><img src="img/off.png" width="67" height="43" border="0" /></a></p>
  85.             <p><?php
  86. if( isset($_GET['ON']) == "Start") {echo "Started!"; shell_exec("/var/www/cp/on.sh");}
  87. if( isset($_GET['OFF']) == "Stop") {echo "Stoped!"; shell_exec("/var/www/cp/off.sh");}
  88. ?>
  89.           </div>
  90.           <div class="entry">
  91.             <h3>Relay 2</h3>
  92.             <p> <a href="relay.php?ON2"><img src="img/ON.png" width="67" height="43" border="0" /></a> <a href="relay.php?OFF2"><img src="img/off.png" width="67" height="43" border="0" /></a></p>
  93.             <p><?php
  94. if( isset($_GET['ON2']) == "Start") {echo "Started!"; shell_exec("/var/www/cp/on2.sh");}
  95. if( isset($_GET['OFF2']) == "Stop") {echo "Stoped!"; shell_exec("/var/www/cp/off2.sh");}
  96. ?>
  97.           </div>
  98.           <div class="entry">
  99.             <h3>Relay 3</h3>
  100.             <p> <a href="relay.php?ON2"><img src="img/ON.png" width="67" height="43" border="0" /></a> <a href="relay.php?OFF3"><img src="img/off.png" width="67" height="43" border="0" /></a></p>
  101.             <p><?php
  102. if( isset($_GET['ON3']) == "Start") {echo "Started!"; shell_exec("/var/www/cp/on3.sh");}
  103. if( isset($_GET['OFF3']) == "Stop") {echo "Stoped!"; shell_exec("/var/www/cp/off3.sh");}
  104. ?>
  105.           </div>
  106.           <div class="entry">
  107.             <h3>Relay 4</h3>
  108.             <p> <a href="relay.php?ON4"><img src="img/ON.png" width="67" height="43" border="0" /></a> <a href="relay.php?OFF4"><img src="img/off.png" width="67" height="43" border="0" /></a></p>
  109.             <p><?php
  110. if( isset($_GET['ON4']) == "Start") {echo "Started!"; shell_exec("/var/www/cp/on4.sh");}
  111. if( isset($_GET['OFF4']) == "Stop") {echo "Stoped!"; shell_exec("/var/www/cp/off4.sh");}
  112. ?>
  113.           </div>
  114.           </p>
  115.             <p><!DOCTYPE html>
  116. <html>
  117.     <head>
  118.  
  119.        
  120. </body>
  121. </html>
  122.  
  123. <center>KMTRONIC LTD</center>
  124. </p>
  125.             <p>&nbsp;</p>
  126.           </div>        
  127.  
  128.      
  129.         </div>
  130.         <div class="clear_left"></div>
  131.  
  132.     </div>
  133.  
  134.  
  135. </div>
  136. <div id="footer"><span>KMTronic Mobile Page </span>
  137. <a onclick="jQuery('html, body').animate( { scrollTop: 0 }, 'slow' );"  href="javascript:void(0);" title="Go on top" class="right_bt"></a></div>
  138. </body>
  139. </html>
Advertisement
Add Comment
Please, Sign In to add comment