XoopsModules25x /
oledrion
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /* |
||
| 3 | You may not change or alter any portion of this comment or credits |
||
| 4 | of supporting developers from this source code or any supporting source code |
||
| 5 | which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 6 | |||
| 7 | This program is distributed in the hope that it will be useful, |
||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
| 10 | */ |
||
| 11 | |||
| 12 | /** |
||
| 13 | * oledrion |
||
| 14 | * |
||
| 15 | * @copyright {@link http://xoops.org/ XOOPS Project} |
||
| 16 | * @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license} |
||
| 17 | * @author Hossein Azizabadi ([email protected]) |
||
| 18 | */ |
||
| 19 | class sms |
||
|
0 ignored issues
–
show
|
|||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param array $information |
||
| 23 | * @param array $option |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public static function sendSms($information = array(), $option = array()) |
||
| 27 | { |
||
| 28 | $parameters = array(); |
||
| 29 | $parameters['username'] = $option['username']; |
||
| 30 | $parameters['password'] = $option['password']; |
||
| 31 | $parameters['from'] = $option['number']; |
||
| 32 | $parameters['to'] = $information['to']; |
||
| 33 | $parameters['text'] = $information['text']; |
||
| 34 | $parameters['isflash'] = false; |
||
| 35 | |||
| 36 | //ini_set("soap.wsdl_cache_enabled", "0"); |
||
| 37 | //$sms_client = new SoapClient('http://sms.payamakyab.com/post/send.asmx?wsdl', array('encoding'=>'UTF-8')); |
||
| 38 | //return $sms_client->SendSimpleSMS2($parameters)->SendSimpleSMS2Result; |
||
| 39 | return ''; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.