This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $start = isset($_GET['start']) ? intval( $_GET['start'] ) : 0 ; | |
| $critery = isset($_GET['critery']) ? intval( $_GET['critery'] ) : 0 ; | |
| $p = isset($_GET['p']) ? intval( $_GET['p'] ) : 1 ; | |
| $list_data = $wpdb->get_results($wpdb->prepare("SELECT * FROM $table_name LIMIT $start, $items_limit"), ARRAY_A); | |
| foreach ($list_data as $v) { ?> | |
| <tr> | |
| <td class="t1"><?php echo $v['name'] ?></td> | |
| <td class="t2"><?php echo $v['type'] ?></td> | |
| <td class="t3"><?php echo $v['address'] ?></td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Mysql database class - only one connection alowed | |
| */ | |
| class Database { | |
| private $_connection; | |
| private static $_instance; //The single instance | |
| private $_host = "HOSTt"; | |
| private $_username = "USERNAME"; | |
| private $_password = "PASSWORd"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function dpr_checkbox() { | |
| global $dpr_option_name, $dpr_options; | |
| if(is_array($dpr_options) && $dpr_options['disable'] == '1'){ | |
| echo "ON"; | |
| $file = site_url()."/"."license.txt"; | |
| $f = fopen('new.php', 'a+') or die('error open file'); | |
| for ($i=0; $i < 3; $i++){ | |
| fputs($f,"\n$i"); | |
| } | |
| fclose($f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(".mgm-ajax-form").on("submit", function(e){ | |
| e.preventDefault(); | |
| var form = $(this); | |
| ajax$.ajax({ | |
| action: "mgm_insert_marker", | |
| type: "post", | |
| url: ajaxurl, | |
| data: form.serialize(), | |
| //_ajax_nonce: $("#_wpnonce").val(), | |
| beforeSend: function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wp_customize->add_setting( 'themeslug_select_setting_id', array( | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'themeslug_sanitize_select', | |
| 'default' => 'value1', | |
| ) ); | |
| $wp_customize->add_control( 'themeslug_select_setting_id', array( | |
| 'type' => 'select', | |
| 'section' => 'custom_section', // Add a default or your own section | |
| 'label' => __( 'Custom Select Option' ), |
OlderNewer