lib/knj/sms.rb in knjrbfw-0.0.72 vs lib/knj/sms.rb in knjrbfw-0.0.74

- old
+ new

@@ -28,14 +28,14 @@ @soap = SOAP::WSDLDriverFactory.new("https://www.bibob.dk/SmsSender.asmx?WSDL").create_rpc_driver end result = @soap.SendMessage({ "cellphone" => @opts[:user], - "password" => Knj::Php.md5(@opts[:pass]), + "password" => Php4r.md5(@opts[:pass]), "smsTo" => {"string" => number}, "smscontents" => msg, - "sendDate" => Knj::Php.date("Y-m-d"), + "sendDate" => Php4r.date("Y-m-d"), "deliveryReport" => "0", "fromNumber" => @opts[:user] }) if result.sendMessageResult.errorString.to_s != "Ingen fejl." @@ -43,10 +43,10 @@ end elsif @type == "smsd_db" @db.insert("outbox", { "number" => number, "text" => msg, - "insertdate" => Knj::Php.date("Y-m-d H:i:s") + "insertdate" => Php4r.date("Y-m-d H:i:s") }) else raise "Not supported: " + @type end end \ No newline at end of file