Only in smsframework_patched/: .DS_Store Only in smsframework_patched/: .svn Only in smsframework_head/: CVS Only in smsframework_patched/: LICENSE.txt Only in smsframework_patched/modules: .DS_Store Only in smsframework_patched/modules: .svn Only in smsframework_head/modules: CVS Only in smsframework_head/modules: gateway_clickatell Only in smsframework_head/modules: gateway_gnokii Only in smsframework_head/modules: gateway_kannel Only in smsframework_head/modules: gateway_mobileaccord diff -urp smsframework_head/modules/sms_blast.module smsframework_patched/modules/sms_blast.module --- smsframework_head/modules/sms_blast.module 2007-08-16 17:24:46.000000000 -0700 +++ smsframework_patched/modules/sms_blast.module 2008-05-08 16:12:06.000000000 -0700 @@ -50,7 +50,7 @@ function sms_blast_form() { } function sms_blast_form_submit($form_id, $form_values) { - $result = db_query("SELECT uid FROM {users} WHERE uid != 0"); + $result = db_query("SELECT uid FROM {users} WHERE uid <> 0"); while ($row = db_fetch_array($result)) { $users[] = $row; } diff -urp smsframework_head/modules/sms_clickatell.module smsframework_patched/modules/sms_clickatell.module --- smsframework_head/modules/sms_clickatell.module 2007-08-16 17:18:45.000000000 -0700 +++ smsframework_patched/modules/sms_clickatell.module 2008-05-08 16:00:04.000000000 -0700 @@ -52,7 +52,7 @@ function sms_clickatell_validate($form_i $result = sms_clickatell_command('auth', array(), $form_values); $codes = sms_clickatell_error_codes(); if ($result['status'] == 'ERR') { - form_set_error('', t('A Clickatell gateway error occured: ' . $codes[floor($result['code'])])); + form_set_error('', t('A Clickatell gateway error occured: '. $codes[floor($result['code'])])); } variable_set('sms_clickatell_session_id_timestamp', 0); } @@ -111,22 +111,22 @@ function sms_clickatell_command($command switch ($command) { case 'auth': - $query = 'api_id=' . $config['sms_clickatell_api_id'] . '&user=' . $config['sms_clickatell_user'] . '&password=' . $config['sms_clickatell_password']; + $query = 'api_id='. $config['sms_clickatell_api_id'] .'&user='. $config['sms_clickatell_user'] .'&password='. $config['sms_clickatell_password']; break; case 'sendmsg': - $query = 'session_id=' . sms_clickatell_get_session_id() . '&to=' . $data['number'] . '&text=' . drupal_urlencode($data['message']); + $query = 'session_id='. sms_clickatell_get_session_id() .'&to='. $data['number'] .'&text='. drupal_urlencode($data['message']); break; case 'getbalance': - $query = 'session_id=' . sms_clickatell_get_session_id(); + $query = 'session_id='. sms_clickatell_get_session_id(); break; } // Run the command - $result = drupal_http_request($scheme . '://api.clickatell.com/http/' . $command . '?' . $query); + $result = drupal_http_request($scheme .'://api.clickatell.com/http/'. $command .'?'. $query); // Check for HTTP errors if ($result->error) { - drupal_set_message(t('An error occured during the HTTP request: ' . $result->error), 'error'); + drupal_set_message(t('An error occured during the HTTP request: '. $result->error), 'error'); return 0; } @@ -155,7 +155,7 @@ function sms_clickatell_get_session_id() if ($result['status'] == 'OK') { variable_set('sms_clickatell_session_id', $result['data']); variable_set('sms_clickatell_session_id_timestamp', time()); - watchdog('sms', t('Clickatell session ID refreshed: ' . $result['data'])); + watchdog('sms', t('Clickatell session ID refreshed: '. $result['data'])); } } } diff -urp smsframework_head/modules/sms_email_gateway.module smsframework_patched/modules/sms_email_gateway.module --- smsframework_head/modules/sms_email_gateway.module 2007-08-16 17:18:45.000000000 -0700 +++ smsframework_patched/modules/sms_email_gateway.module 2008-05-08 16:00:46.000000000 -0700 @@ -44,7 +44,7 @@ function sms_email_gateway_send($destina $from = variable_get('site_mail', ini_get('sendmail_from')); foreach ($destinations as $destination) { - $to = $destination->number . '@' . $destination->carrier; + $to = $destination->number .'@'. $destination->carrier; drupal_mail('sms_email_gateway', $to, '', $message, $from); } } Only in smsframework_patched/modules: sms_muse.info Only in smsframework_patched/modules: sms_muse.module Only in smsframework_patched/modules: sms_receive.info Only in smsframework_patched/modules: sms_receive.install Only in smsframework_patched/modules: sms_receive.module diff -urp smsframework_head/modules/sms_sendtophone.module smsframework_patched/modules/sms_sendtophone.module --- smsframework_head/modules/sms_sendtophone.module 2007-08-16 17:18:45.000000000 -0700 +++ smsframework_patched/modules/sms_sendtophone.module 2008-05-08 16:11:47.000000000 -0700 @@ -1,7 +1,6 @@ t('Send the highlighted text via SMS.'), 'class' => 'sms-sendtophone'), 'text=' . urlencode($text) . '&' . drupal_get_destination()); + $link = l(t(variable_get("sms_sendtophone_filter_inline_display_text_$format", 'Send to phone')), 'sms/sendtophone/inline', array('title' => t('Send the highlighted text via SMS.'), 'class' => 'sms-sendtophone'), 'text='. urlencode($text) .'&'. drupal_get_destination()); - return '' . $text . ' (' . $link . ')'; + return ''. $text .' ('. $link .')'; } function theme_sms_sendtophone_filter_inline_icon($text, $format) { if (variable_get("sms_sendtophone_filter_inline_default_icon_$format", 1)) { - $icon_path = drupal_get_path('module', 'sms_sendtophone') . '/sms-send.gif'; + $icon_path = drupal_get_path('module', 'sms_sendtophone') .'/sms-send.gif'; } else { $icon_path = variable_get("sms_sendtophone_filter_inline_custom_icon_path_$format", ''); @@ -175,9 +174,9 @@ function theme_sms_sendtophone_filter_in $icon = theme('image', $icon_path, t(variable_get("sms_sendtophone_filter_inline_display_text_$format", 'Send to phone')), t('Send the highlighted text via SMS.')); - $link = l($icon, 'sms/sendtophone/inline', array('title' => t('Send the highlighted text via SMS.'), 'class' => 'sms-sendtophone'), 'text=' . urlencode($text) . '&' . drupal_get_destination(), NULL, FALSE, TRUE); + $link = l($icon, 'sms/sendtophone/inline', array('title' => t('Send the highlighted text via SMS.'), 'class' => 'sms-sendtophone'), 'text='. urlencode($text) .'&'. drupal_get_destination(), NULL, FALSE, TRUE); - return '' . $text . ' ' . $link; + return ''. $text .' '. $link; } function _sms_sendtophone_filter_inline_settings($format) { @@ -330,9 +329,9 @@ function sms_sendtophone_field_formatter } function theme_sms_sendtophone_field($text) { - $link = l(t('Send to phone'), 'sms/sendtophone/field', array('title' => t('Send this text via SMS.'), 'class' => 'sms-sendtophone'), 'text=' . urlencode($text) . '&' . drupal_get_destination()); + $link = l(t('Send to phone'), 'sms/sendtophone/field', array('title' => t('Send this text via SMS.'), 'class' => 'sms-sendtophone'), 'text='. urlencode($text) .'&'. drupal_get_destination()); - return '' . $text . ' (' . $link . ')'; + return ''. $text .' ('. $link .')'; } function sms_sendtophone_inline_form() { @@ -356,7 +355,7 @@ function sms_sendtophone_inline_form() { $form['message'] = array('#type' => 'value', '#value' => $_GET['text']); $form['message_preview'] = array( '#type' => 'item', - '#value' => '

' . $_GET['text'] . '

', + '#value' => '

'. $_GET['text'] .'

', '#title' => t('Message preview'), ); } @@ -383,7 +382,7 @@ function sms_sendtophone_cck_form() { $form['message'] = array('#type' => 'value', '#value' => $_GET['text']); $form['message_preview'] = array( '#type' => 'item', - '#value' => '

' . $_GET['text'] . '

', + '#value' => '

'. $_GET['text'] .'

', '#title' => t('Message preview'), ); } @@ -402,7 +401,7 @@ function sms_sendtophone_node_form() { '#description' => t('This URL will be sent to the phone.'), '#cols' => 35, '#rows' => 2, - '#default_value' => url('node/' . $node->nid, NULL, NULL, TRUE), + '#default_value' => url('node/'. $node->nid, NULL, NULL, TRUE), '#attributes' => array('disabled' => 'true'), ); diff -urp smsframework_head/modules/sms_user.module smsframework_patched/modules/sms_user.module --- smsframework_head/modules/sms_user.module 2007-08-16 17:24:46.000000000 -0700 +++ smsframework_patched/modules/sms_user.module 2008-05-08 16:14:36.000000000 -0700 @@ -116,7 +116,7 @@ function sms_user_save(&$edit, &$account $destination->$key = $field; } sms_send(array($destination), sms_user_confirm_message($code)); - drupal_set_message(t('A message containing a confirmation code has been sent to your mobile phone. Please enter the code on your !edit_account page.', array('!edit_account' => l(t('edit account'), 'user/' . $account->uid . '/edit'))), 'status'); + drupal_set_message(t('A message containing a confirmation code has been sent to your mobile phone. Please enter the code on your !edit_account page.', array('!edit_account' => l(t('edit account'), 'user/'. $account->uid .'/edit'))), 'status'); } else { $edit['sms_user']['code'] = $account->sms_user['code']; Only in smsframework_head/modules: smsframework_devel Only in smsframework_patched/modules: smsgateway.module diff -urp smsframework_head/sms.install smsframework_patched/sms.install --- smsframework_head/sms.install 2007-08-16 17:18:45.000000000 -0700 +++ smsframework_patched/sms.install 2008-05-08 16:15:35.000000000 -0700 @@ -1,5 +1,5 @@ 'admin/smsframework/gateways/' . arg(3), + 'path' => 'admin/smsframework/gateways/'. arg(3), 'title' => t("!gateway gateway", array('!gateway' => $gateways[arg(3)]['name'])), 'callback' => 'drupal_get_form', 'callback arguments' => array('sms_admin_gateway_form', $gateways[arg(3)], arg(3)), @@ -70,7 +70,7 @@ function sms_admin_default_form() { $options[$identifier] = ''; $form[$gateway['name']]['id'] = array('#value' => $identifier); if (is_array($gateway['options'])) { - $form[$gateway['name']]['configure'] = array('#value' => l(t('configure'), 'admin/smsframework/gateways/' . $identifier)); + $form[$gateway['name']]['configure'] = array('#value' => l(t('configure'), 'admin/smsframework/gateways/'. $identifier)); } else { $form[$gateway['name']]['configure'] = array('#value' => t('No configuration options')); @@ -205,7 +205,7 @@ function sms_admin_mapping_form_submit($ } function sms_admin_gateway_form($gateway = NULL, $gateway_id = '') { - if(isset($gateway) && is_array($gateway)) { + if (isset($gateway) && is_array($gateway)) { $form = $gateway['options']; $form['submit'] = array( '#type' => 'submit', @@ -222,7 +222,7 @@ function sms_admin_gateway_form($gateway function sms_admin_gateway_form_submit($form_id, $form_values) { $gateway = $form_values['gateway']; if (is_array($gateway['options'])) { - foreach ($gateway['options'] as $key=>$option) { + foreach ($gateway['options'] as $key => $option) { variable_set($key, $form_values[$key]); } } @@ -267,7 +267,7 @@ function _gateways_build() { $gateway_array = module_invoke_all('gateway_info'); foreach ($gateway_array as $identifier => $info) { if (is_array($info['options'])) { - foreach ($info['options'] as $key=>$option) { + foreach ($info['options'] as $key => $option) { $info['configuration'][$key] = variable_get($key, ''); } } @@ -305,7 +305,7 @@ function _behaviors_build() { $behavior_array = module_invoke_all('behavior_info'); foreach ($behavior_array as $identifier => $info) { if (is_array($info['options'])) { - foreach ($info['options'] as $key=>$option) { + foreach ($info['options'] as $key => $option) { $info['configuration'][$key] = variable_get($key, ''); } }