Remove gammu smsd parser and test controller that is now in console

This commit is contained in:
OsaAjani 2020-01-12 22:21:29 +01:00
parent fcc438af3c
commit 53257e63b3
3 changed files with 0 additions and 71 deletions

View File

@ -1,30 +0,0 @@
#!/bin/sh
date=$(date +%Y%m%d%H%M%S%N)
first_time=1
RECEPTION_DIR='/opt/raspisms/datas/gammu'
if [ ! -d $RECEPTION_DIR ]
then
mkdir "$RECEPTION_DIR"
fi
for i in `seq $SMS_MESSAGES` ; do
eval "sms_number=\"\${SMS_${i}_NUMBER}\""
eval "sms_text=\"\${SMS_${i}_TEXT}\""
if [ $first_time -eq 1 ]
then
sms="$sms_number:"
first_time=0
fi
sms="$sms$sms_text"
done
if [ -z "$SMS_MESSAGES" ]
then
exit 0
fi
echo "$sms" >> "$RECEPTION_DIR/$PHONE_ID-${date}.txt"

View File

@ -1,37 +0,0 @@
<?php
/*
* This file is part of RaspiSMS.
*
* (c) Pierre-Lin Bonnemaison <plebwebsas@gmail.com>
*
* This source file is subject to the GPL-3.0 license that is bundled
* with this source code in the file LICENSE.
*/
namespace controllers\publics;
/**
* Page de connexion.
*/
class Test extends \descartes\Controller
{
private $internal_user;
private $internal_setting;
/**
* Cette fonction est appelée avant toute les autres :.
*
* @return void;
*/
public function __construct()
{
$bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD);
$this->internal_user = new \controllers\internals\User($bdd);
$this->internal_setting = new \controllers\internals\Setting($bdd);
$this->internal_phone = new \controllers\internals\Phone($bdd);
}
}

View File

@ -183,10 +183,6 @@
'Callback' => [
'update_sended_status' => '/callback/status/{adapter_name}/',
],
'Test' => [
'test' => '/test/{id_phone}/',
],
);
define('ROUTES', $routes);