17 Commits

Author SHA1 Message Date
skodak
d907d51a55 MDL-15099 towards enrol dml conversion 2008-06-05 14:06:39 +00:00
ethem
c49c221090 get_recordset() for performance 2008-03-21 11:48:46 +00:00
ethem
b37fa3d553 get_recordset() for performance 2008-03-21 11:47:17 +00:00
ethem
04b8b68848 MDL-10181 User Management Improvements: Cron unenrolment of manual should takes place in the main cron.
It is time to use own enrolment method when calling funcs enrol_into_course, role_assign, role_unassign.

Zend Studio Warning: Assignment in condition (line XX), Solved, one more ()
Assignments in a conditional statement are sometimes the result of a typo.
In many cases, instead of the assignment operator =, the equality operator ==
should be used. When comparing a variable and a non-variable expression,
it is common practice to put the variable on the right-hand side of the equality
operator, so that if the equality operator is erroneously replaced with the
assignment operator, PHP will report a parse error immediately.
This helps you avoid a big subset of this class of bugs.

Merged from MOODLE_19_STABLE
2008-02-06 08:13:20 +00:00
ethem
e08dc18dbe *** empty log message *** 2008-02-05 17:05:29 +00:00
ethem
3309cb829f + fsockopen to file_get_contents
+ no more student
2008-01-18 10:43:21 +00:00
ethem
8bdd962733 Authorize.net account verification 2008-01-16 17:19:30 +00:00
skodak
18b07efaf4 sesskey added to logout.php MDL-8727 2007-03-02 16:47:38 +00:00
ethem
49c81fe0fd We are expecting multiple records, but in debug mode, it gives this error:
Error: Turn off debugging to hide this error.

SELECT id FROM enrol_authorize WHERE userid = '3' AND courseid = '2' AND status=0(with limits 0, 100)

Very strange error in get_record_sql !
2006-11-23 16:22:39 +00:00
ethem
dfe254ceab Moved ABA validator and CC validator functions to enrol_form.php 2006-11-17 13:01:04 +00:00
ethem
f5fbea120f Fixed: MDL-7561
New forms api
2006-11-15 20:44:49 +00:00
ethem
726bf1ead2 get_teacher() to get_users_by_capability(). 2006-11-03 11:20:13 +00:00
ethem
c9befcd1be If an user's credit card cannot be captured on the internet directly, obtain authorization code over phone from customer's bank.
Some users may not wish to use their credit cards on the internet directly for security reasons.
   In this case, you need to obtain an authorization code from user's bank.
   Initially, ask for credit card information from the customer
   like bank name, name on card, card number, expiry date and card validation code
   by means of phone, face-to-face or a billing application.
   Then, call the customer services of user's bank giving this information and demand an authorization code.
   Finally, after obtaining it, login as user to get the user enrolled.
   Alternatively, you can give it to the user saying enrol using this code.
2006-10-30 12:53:15 +00:00
ethem
9c746ce766 + New consts for authorize_action() function:
* AN_RETURNZERO: No connection was made on authorize.net.
  * AN_APPROVED: The transaction was accepted.
  * AN_DECLINED: The transaction was declined.
  * AN_REVIEW: The transaction was held for review.

+ Fix: Speacial handling for echecks: REVIEW; 'Under Review', 'Approved Review', 'Review Failed'
+ New feature: Upload a CSV file for echecks (capability: enrol/authorize:uploadcsv level: user)
+ New feature: Search payments by orderid and transid
+ New function: send_welcome_messages()

merged from 17stable.
2006-10-16 09:39:08 +00:00
ethem
460635599a Autoconfigure accepted echeck bank account types. CHECKING, BUSINESSCHECKING, SAVINGS 2006-09-04 09:44:00 +00:00
ethem
f1b31fb517 Allow all payment methods as default: AN_METHOD_CC, AN_METHOD_ECHECK
authorizenetlib.php autoconfigures payment method as AN_METHOD_CC if the merchant doesn't accept AN_METHOD_ECHECK. First real echeck transaction is enough for this.
2006-09-04 07:33:11 +00:00
ethem
e3949d06af Moved all static functions in authorize class to localfuncs.php as normal function.
Removed abaval.php and ccval.php, because functions in these files moved to localfuncs.php.
2006-09-02 11:49:02 +00:00