<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/global.php'; require_once DOC_ROOT . '/includes/classes/class.html.php'; require_once DOC_ROOT . '/includes/classes/class.user.php'; require_once DOC_ROOT . '/includes/classes/class.sms_gateway.php'; $user_id = get_param('user_id'); if (!$user_id) { redirect('/login.php'); } $user = new User($user_id); $carriers = SMS_Gateway::get_all(); $html = new HTML(); $html->set_title('Settings'); $html->generate_header_mobile(); ?> <div id="settings_display" data-role="page" data-title='Meocracy' data-theme='a'> <div data-role='header' data-theme='a'> <div data-role='navbar'> <ul> <li><a href='index.php' data-icon='home' data-theme='a'>Home</a></li> <li><a href='search.php' data-icon='search' data-theme='a'>Search</a></li> <li><a href='alert_manager.php' data-icon='alert' data-theme='a'>Alerts</a></li> <li><a href='settings.php' data-icon='gear' data-theme='a'>Settings</a></li> </ul> </div> </div><!-- /header -->
public function sms_confirmation($user_id) { $sms = new SMS_Gateway($this->sms_id()); $to = $this->mobile_phone() . '@' . $sms->domain(); $from = '*****@*****.**'; $subject = 'Meocracy Signup Confirmation'; $message = 'Click link to confirm. ' . HOST . '/confirm.php?id=' . $user_id . '&code=' . $this->confirm(); $email = new Email($to, $from, $subject, $message); $email->send(); }
public static function get_carrier($id) { $sms = new SMS_Gateway($id); return $sms->carrier(); }