Compare commits
No commits in common. "61ba62ac86317ecd56658b35a23c454c731aa804" and "c713a4419af6aded7c7852b50786bc75d48003d2" have entirely different histories.
61ba62ac86
...
c713a4419a
|
@ -1,4 +1,2 @@
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^assets - [L]
|
RewriteRule "!\.(js|ico|ICO|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|css|woff|woff2|ttf|wav|ogg|mp3|svg|json)$" index.php
|
||||||
RewriteRule ^.well-known - [L]
|
|
||||||
RewriteRule . index.php
|
|
||||||
|
|
|
@ -38,12 +38,6 @@ namespace adapters;
|
||||||
*/
|
*/
|
||||||
public static function meta_uid(): string;
|
public static function meta_uid(): string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -57,15 +57,6 @@ namespace adapters;
|
||||||
return 'benchmark_adapter';
|
return 'benchmark_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -52,16 +52,6 @@ namespace adapters;
|
||||||
return 'gammu_adapter';
|
return 'gammu_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -78,15 +78,6 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
||||||
return 'octopush_shortcode_adapter';
|
return 'octopush_shortcode_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
@ -402,7 +393,7 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
||||||
$response = [
|
$response = [
|
||||||
'error' => false,
|
'error' => false,
|
||||||
'error_message' => null,
|
'error_message' => null,
|
||||||
'sms' => null,
|
'uid' => null,
|
||||||
];
|
];
|
||||||
|
|
||||||
header('Connection: close');
|
header('Connection: close');
|
||||||
|
|
|
@ -84,15 +84,6 @@ class OctopushVirtualNumberAdapter implements AdapterInterface
|
||||||
return 'octopush_virtual_number_adapter';
|
return 'octopush_virtual_number_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -63,15 +63,6 @@ namespace adapters;
|
||||||
return 'ovh_sms_shortcode_adapter';
|
return 'ovh_sms_shortcode_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -75,15 +75,6 @@ namespace adapters;
|
||||||
return 'ovh_sms_virtual_number_adapter';
|
return 'ovh_sms_virtual_number_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -62,15 +62,6 @@ namespace adapters;
|
||||||
return 'test_adapter';
|
return 'test_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -74,15 +74,6 @@ class TwilioVirtualNumberAdapter implements AdapterInterface
|
||||||
return 'twilio_virtual_number_adapter';
|
return 'twilio_virtual_number_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should this adapter be hidden in user interface for phone creation and
|
|
||||||
* available to creation through API only
|
|
||||||
*/
|
|
||||||
public static function meta_hidden(): bool
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -209,13 +209,6 @@ class Phone extends \descartes\Controller
|
||||||
return $this->redirect(\descartes\Router::url('Phone', 'add'));
|
return $this->redirect(\descartes\Router::url('Phone', 'add'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($find_adapter['meta_hidden'])
|
|
||||||
{
|
|
||||||
\FlashMessage\FlashMessage::push('danger', 'Ce type de téléphone ne peux pas être créé via l\'interface graphique.');
|
|
||||||
|
|
||||||
return $this->redirect(\descartes\Router::url('Phone', 'add'));
|
|
||||||
}
|
|
||||||
|
|
||||||
//If missing required data fields, error
|
//If missing required data fields, error
|
||||||
foreach ($find_adapter['meta_data_fields'] as $field)
|
foreach ($find_adapter['meta_data_fields'] as $field)
|
||||||
{
|
{
|
||||||
|
|
|
@ -54,7 +54,6 @@
|
||||||
</p>
|
</p>
|
||||||
<select name="adapter" class="form-control" id="adapter-select">
|
<select name="adapter" class="form-control" id="adapter-select">
|
||||||
<?php foreach ($adapters as $adapter) { ?>
|
<?php foreach ($adapters as $adapter) { ?>
|
||||||
<?php if ($adapter['meta_hidden'] === false) { ?>
|
|
||||||
<option
|
<option
|
||||||
value="<?= $adapter['meta_classname'] ?>"
|
value="<?= $adapter['meta_classname'] ?>"
|
||||||
data-description="<?php $this->s($adapter['meta_description']); ?>"
|
data-description="<?php $this->s($adapter['meta_description']); ?>"
|
||||||
|
@ -64,7 +63,6 @@
|
||||||
<?php $this->s($adapter['meta_name']); ?>
|
<?php $this->s($adapter['meta_name']); ?>
|
||||||
</option>
|
</option>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div id="adapter-data-container" class="form-group">
|
<div id="adapter-data-container" class="form-group">
|
||||||
|
|
Loading…
Reference in New Issue