Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (33 sloc) 0.882 kB
use strict;
use CGI;
use C4::SMS;
use C4::Output;
use C4::Auth;
my $query = new CGI;
my $message = $query->param( 'message' );
my $phone = $query->param( 'phone' );
my $operation = $query->param('operation');
my $result;
my $errorcode;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "sms/sms-home.tmpl",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {circulate => "circulate_remaining_permissions" },
debug => 1,
if ($operation eq "sendsms"){
if ($phone){
##write to a queue and exit
my $me=C4::Context->userenv;
} else {
my $error=error_codes($errorcode);
output_html_with_http_headers $query, $cookie, $template->output;
Jump to Line
Something went wrong with that request. Please try again.