Changeset 3185158
- Timestamp:
- 11/10/2024 03:35:27 PM (16 months ago)
- Location:
- smsify/trunk
- Files:
-
- 9 edited
-
images/index.php (modified) (1 diff)
-
includes/functions.php (modified) (9 diffs)
-
includes/index.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
licensing/index.php (modified) (1 diff)
-
modules/index.php (modified) (1 diff)
-
modules/usergroups/UserGroups.php (modified) (3 diffs)
-
modules/usergroups/index.php (modified) (1 diff)
-
views/smsify-reporting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smsify/trunk/images/index.php
r841171 r3185158 1 <?php 2 # Silence is golden -
smsify/trunk/includes/functions.php
r3185120 r3185158 14 14 $smsify_params->jsurl = plugins_url() . '/smsify/js'; 15 15 $smsify_params->imageurl = plugins_url() . '/smsify/images'; 16 $smsify_params->smsifydir = $_SERVER["DOCUMENT_ROOT"] . '/' . PLUGINDIR . '/smsify';16 $smsify_params->smsifydir = WP_PLUGIN_DIR . '/smsify'; 17 17 18 18 $smsify_params->messages = array( … … 143 143 "method" => "POST", 144 144 "headers" => array("x-smsify-key" => $key, 'Content-Type' => 'application/json'), 145 "body" => json_encode(array(145 "body" => wp_json_encode(array( 146 146 "contacts" => array($contact), 147 147 "message" => $message, … … 206 206 207 207 if (!$passthrough) { 208 echo json_encode($returnMessage);208 echo wp_json_encode($returnMessage); 209 209 die(); 210 210 } … … 233 233 "method" => "POST", 234 234 "headers" => array("x-smsify-key" => $key, 'Content-Type' => 'application/json'), 235 "body" => json_encode(array(235 "body" => wp_json_encode(array( 236 236 "contacts" => array($contact), 237 237 "message" => $args->message, … … 366 366 "method" => "POST", 367 367 "headers" => array("x-smsify-key" => $key, 'Content-Type' => 'application/json'), 368 "body" => json_encode(array(368 "body" => wp_json_encode(array( 369 369 "contacts" => $contacts, 370 370 "message" => $message, … … 429 429 } 430 430 431 echo json_encode($returnMessage);431 echowp_json_encode($returnMessage); 432 432 die(); 433 433 } … … 485 485 $returnMessage->message = $validationMessage; 486 486 } 487 echo json_encode($returnMessage);487 echo wp_json_encode($returnMessage); 488 488 die(); 489 489 } … … 572 572 function smsify_update_usage($total, $year=null, $month=null) { 573 573 if(!$year) { 574 $year = date('Y');574 $year = gmdate('Y'); 575 575 } 576 576 if(!$month) { 577 $month = date('n');577 $month = gmdate('n'); 578 578 } 579 579 $user_id = get_current_user_id(); … … 587 587 } 588 588 $stats->$year->$month += $total; 589 update_user_meta($user_id, $meta_key, json_encode($stats));589 update_user_meta($user_id, $meta_key, wp_json_encode($stats)); 590 590 } 591 591 -
smsify/trunk/includes/index.php
r841171 r3185158 1 <?php 2 # Silence is golden -
smsify/trunk/index.php
r841171 r3185158 1 <?php 2 # Silence is golden -
smsify/trunk/licensing/index.php
r841171 r3185158 1 <?php 2 # Silence is golden -
smsify/trunk/modules/index.php
r841171 r3185158 1 <?php 2 # Silence is golden -
smsify/trunk/modules/usergroups/UserGroups.php
r3185136 r3185158 189 189 190 190 /* Get the terms of the 'profession' taxonomy. */ 191 $terms = get_terms( 'user-group' , array( 'hide_empty' => false )); ?>191 $terms = get_terms( 'user-group' ); ?> 192 192 193 193 <h3 id="user-groups">User Groups</h3> … … 552 552 function bulk_edit($views) { 553 553 if (!current_user_can('edit_users') ) { return $views; } 554 $terms = get_terms('user-group' , array('hide_empty' => false));554 $terms = get_terms('user-group'); 555 555 ?> 556 556 <form method="post" id="bulkeditusergroupform" class="alignright" style="clear:right; margin:0 10px;"> … … 608 608 function views($views) { 609 609 global $wp_roles; 610 $terms = get_terms('user-group' , array('hide_empty' => true));610 $terms = get_terms('user-group'); 611 611 612 612 $select = '<select name="user-group" id="user-groups-select"> -
smsify/trunk/modules/usergroups/index.php
r841171 r3185158 1 <?php 2 # Silence is golden -
smsify/trunk/views/smsify-reporting.php
r3185136 r3185158 36 36 <?php foreach($stats->$selected_year as $month_num => $total) : ?> 37 37 <tr class="alternate"<?php if($month_num % 2 == 0) { echo ' style="background:#eee"'; } ?>> 38 <td scope="row"><?php echo esc_html( date('F', mktime(0, 0, 0, $month_num, 10))); ?></label></td>38 <td scope="row"><?php echo esc_html(gmdate('F', mktime(0, 0, 0, $month_num, 10))); ?></label></td> 39 39 <td><?php echo esc_html($total); $grandtotal += $total; ?></td> 40 40 </tr>
Note: See TracChangeset
for help on using the changeset viewer.