Changeset 1372567
- Timestamp:
- 03/16/2016 07:21:27 PM (10 years ago)
- File:
-
- 1 edited
-
uberkeen/trunk/uberkeen.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uberkeen/trunk/uberkeen.php
r1367092 r1372567 4 4 Plugin URI: https://uberkeen.com 5 5 Description: Un plugin de communication live 6 Version: 0.16 Version: 1.02 7 7 Author: Jean Duez 8 8 Author URI: https://uberkeen.com … … 15 15 16 16 17 18 19 20 21 22 23 24 17 // Ajout du shortcode [uberkeen] 25 18 add_shortcode('uberkeen','uberkeen_ub'); … … 39 32 echo $mes_above; 40 33 echo " <br><button style='". $button_style ."' onclick='uberkeen_myFunction()'>". $mes_open ."</button>"; 41 42 34 ?> 43 35 … … 48 40 var myWindow; 49 41 function uberkeen_myFunction() { 50 var myWindow = window.open('https://www.uberkeen.com/rtc /inter.php?client=<?php echo $maclef ?>','myWindow', 'width=400, height=400');42 var myWindow = window.open('https://www.uberkeen.com/rtc2/inter.php?client=<?php echo $maclef ?>','myWindow', 'width=800, height=400'); 51 43 } 52 44 </script> 53 45 54 46 <?php 55 ; 47 56 48 } 57 49 … … 109 101 $wpdb->insert( 110 102 $table_name, 111 array(112 'clef' => $clef,113 'button' => 'close',114 'mes_above' => 'Click on this button to speak to us directly over the Internet. Make sure that your microphone is activated.',115 'mes_open' => 'Talk to us',116 'button_style' => 'background:white; cursor:hand; border:solid 1px black; font-class:verdana; font-weight:700; color: teal;',117 )103 array( 104 'clef' => $clef, 105 'button' => 'close', 106 'mes_above' => 'Click on this button to speak to us directly over the Internet. Make sure that your microphone is activated.', 107 'mes_open' => 'Talk to us', 108 'button_style' => 'background:white; cursor:hand; border:solid 1px black; font-class:verdana; font-weight:700; color: teal;', 109 ) 118 110 ); 119 120 121 } 111 } 122 112 123 113 … … 130 120 if($maclef == '' && $clef == '' ){ 131 121 ?> 132 <p> </p> 122 123 133 124 <form method='post' action=''> <input type='text' name='clef' value='' placeholder="Your key"/> 134 125 <span class="submit"><input type="submit" class="button-primary" name="submit" value="register" /> … … 160 151 dbDelta( $query ); 161 152 } 162 if (isset($_POST['close'])){ 163 global $wpdb; 164 $table_name = $wpdb->prefix . 'uberkeen'; 165 $query="UPDATE $table_name SET button = 'close' " ; 166 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 167 dbDelta( $query ); 168 } 153 169 154 170 155 … … 174 159 $mes_open = $_POST['mes_open']; 175 160 $button_style = $_POST['button_style']; 161 176 162 $wpdb->update( 177 $wpdb->prefix .'uberkeen', 163 $table_name = $wpdb->prefix . 'uberkeen', 164 //$wpdb->prefix .'uberkeen', 178 165 array( 179 166 'mes_above' => $mes_above, … … 188 175 189 176 } 190 191 192 177 ?> 193 178 … … 204 189 205 190 206 <h2>UBERKEEN OPTIONS </h2>191 <h2>UBERKEEN OPTIONS 222 </h2> 207 192 <p> </p> 208 193 209 194 <p><strong>Install your phone anywhere in your site by paste this tag: [uberkeen] and then you can open the line to listen your calls</strong>. <span class="submit"><br /> 210 Work with Chrome, Firefox, Opera. </span></p> 195 Work with Chrome, Firefox, Opera. </span> <br /> 196 <strong>Important: </strong>This app does not phone on fixed or cellular devices. 197 It allows you to communicate on the web site. You have to be online (open application in Uberkeen options) when someone call.</p> 198 <p> </p> 199 200 201 202 203 204 211 205 <form method='post' action=''> 212 <p class="submit"> <input type="submit" class="button-primary" name="open" id='open' value="open line" onclick='uberkeen_myFunction()'/></p> 206 <p class="submit"> <input type="submit" class="button-primary" name="open" id='open' value="open line" onclick='uberkeen_myFunction()'/> 207 </p> 213 208 </form> 214 209 215 <p> </p> 210 <script> 211 var myWindow; 212 function uberkeen_myFunction() { 213 <?php if (isset($maclef)) {echo "var myWindow = window.open('https://www.uberkeen.com/rtc2/inter.php?master=".$maclef."','myWindow', 'width=750, height=450');";} ?> 214 } 215 216 </script> 217 218 219 216 220 217 221 … … 234 238 </table> 235 239 </form> 240 241 242 236 243 You can use html directly in the text above button and in the dedicaced field for the button itself. 237 244 <p>Example for text above button: <h1>This is a Blue Heading</h1> <font color='FF00CC'>here</font><br> 238 245 <p>Example for button: background:white; cursor:hand; border:solid 1px black; font-class:verdana; font-weight:700; color: teal; 239 240 241 242 243 <script> 244 var myWindow; 245 function uberkeen_myFunction() { 246 <?php if (isset($maclef)) {echo "var myWindow = window.open('https://www.uberkeen.com/rtc/inter.php?master=".$maclef."','myWindow', 'width=750, height=450');";} ?> 247 } 248 249 </script> 250 <?php 251 246 <?php 252 247 } 253 248 // fin de page options … … 276 271 } 277 272 add_action('admin_menu', 'uberkeen_options_init'); 278 ?> 273 ?> 274 275
Note: See TracChangeset
for help on using the changeset viewer.