This file contains 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
/** | |
* Make sure that we have no duplicate emails on user creation by updating schema for mail field in users table. | |
*/ | |
function apci_user_update_6003() { | |
$ret = array(); | |
$unique_mail = array(); | |
$duplicates = db_query('SELECT DISTINCT a.uid, a.mail, a.name FROM users a INNER JOIN users b ON a.mail = b.mail WHERE a.uid <> b.uid ORDER BY a.uid'); | |
while($duplicate = db_fetch_object($duplicates)) { | |
if(array_key_exists(strtolower($duplicate->mail), $unique_mail)) { | |
list($mail_1, $mail_2) = split('@', $duplicate->mail); |
This file contains 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
Do you wish to run all pending updates? (y/n): y | |
The external command could not be executed due to an application error. [error] | |
Executing apci_user_update_6003 [success] | |
Drush command terminated abnormally due to an unrecoverable error. [error] | |
Error: Cannot redeclare drupal_mail_wrapper() (previously declared in /home/ubuntu/apci/www/sites/all/modules/contrib/smtp/smtp.module:860) in | |
/home/ubuntu/apci/www/sites/all/modules/contrib/devel/devel.module, line 1913 | |
Output from failed command : [error] | |
Fatal error: Cannot redeclare drupal_mail_wrapper() (previously declared in /home/ubuntu/apci/www/sites/all/modules/contrib/smtp/smtp.modu |
This file contains 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
Processing DoclistController#documents (for 38.107.251.3 at 2011-09-30 10:13:14) [GET] | |
Parameters: {"token"=>"1/SyL9HODSJF6v5v6rYCDd_II1m988F4W5DblEYvbIKfg"} | |
GData::Client::AuthorizationError (request error 403: <errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>ServiceForbiddenException</code><internalReason>403.4 SSL required</internalReason></error></errors>): | |
gdata (1.1.2) lib/gdata/client/base.rb:87:in `make_request' | |
gdata (1.1.2) lib/gdata/client/base.rb:103:in `get' | |
app/controllers/doclist_controller.rb:239:in `set_user_email' | |
passenger (3.0.9) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' | |
passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' | |
passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' |
This file contains 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 | |
/** | |
* @file | |
* Allows users of a particular role to create sub user account in another role. | |
* | |
* Copyright 2008-2009 by Jimmy Berry ("boombatower", http://drupal.org/user/214218) | |
*/ | |
/* | |
* Variables loaded as constants. |
This file contains 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 _apci_api_user_create($firstname, $lastname, $email, $gender, $birthday, $password = NULL) { | |
$account = array( | |
'mail' => $email, | |
'field_firstname' => array(array('value' => $firstname)), | |
'field_lastname' => array(array('value' => $lastname)), | |
'field_user_gender' => array(array('value' => (strtolower($gender) == 'm') ? 1 : 2)), | |
'field_birth_date' => array(array('value' => array( | |
'month' => $birthday['month'], | |
'hour' => '0', | |
'minute' => '0', |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<result><form_errors><captcha_response>Solve this simple math problem <br />(<a class="why"><span>This math problem helps us weed out spammers</span>Why?</a>) field is required.</captcha_response></form_errors></result> |
This file contains 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
diff --git a/www/sites/all/modules/apci_features/apci_public_api_services/resources/user_resource.inc b/www/sites/all/modules/apci_features/apci_public_api_services/resources/user_resource.inc | |
old mode 100644 | |
new mode 100755 | |
index ef2c449..19c9510 | |
--- a/www/sites/all/modules/apci_features/apci_public_api_services/resources/user_resource.inc | |
+++ b/www/sites/all/modules/apci_features/apci_public_api_services/resources/user_resource.inc | |
@@ -58,6 +58,20 @@ function apci_public_api_services_user_resource_definition() { | |
'description' => 'User password', // @todo from *CCK* def | |
'type' => 'string', // @todo from def | |
), |
This file contains 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
ubuntu:~/apci/www (remove_duplicate_emails_on_siblings)$ git pull mainline newmaster | |
From github.com:AllPlayers/allplayers-mainline | |
* branch newmaster -> FETCH_HEAD | |
Auto-merging www/sites/all/modules/apci_features/apci_public_api_services/resources/user_resource.inc | |
CONFLICT (content): Merge conflict in www/sites/all/modules/apci_features/apci_public_api_services/resources/user_resource.inc | |
Automatic merge failed; fix conflicts and then commit the result. | |
ubuntu:~/apci/www (remove_duplicate_emails_on_siblings|MERGING)$ git status | |
# On branch remove_duplicate_emails_on_siblings | |
# Changes to be committed: | |
# |
This file contains 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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
url = [email protected]:arturo-c/allplayers-mainline.git | |
[branch "master"] |
This file contains 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 | |
/** | |
* @file | |
* Loads dependencies and defines the apci_groups resource | |
*/ | |
module_load_include('inc', 'og_services', 'og_services'); | |
module_load_include('inc', 'services_views', 'services_views.resource'); | |
module_load_include('inc', 'apci_public_api_services', 'helpers'); | |
function apci_public_api_services_groups_resource_definition() { | |
$response = new GroupResponse; |
OlderNewer