This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace CampaignBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Uneak\HighConnexionSmsBundle\Sms\HighConnexionMessage; | |
class MessageStatusCommand extends ContainerAwareCommand { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ProspectMessageBundle\Controller; | |
use Cocur\Slugify\Slugify; | |
use FOS\RestBundle\Controller\Annotations\Route; | |
use ProspectMessageBundle\Entity\ProspectMoMessage; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Uneak\ProspectBundle\Command; | |
use libphonenumber\NumberParseException; | |
use libphonenumber\PhoneNumber; | |
use libphonenumber\PhoneNumberFormat; | |
use libphonenumber\PhoneNumberUtil; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function campaignSmsAction(Request $request) { | |
$all = $request->query->all(); | |
$log = serialize($all); | |
$dir = '/home/happysmsfr/www/process'; | |
if (isset($all['tag'])) { | |
$slugify = new Slugify(); | |
$file = $slugify->slugify($all['tag']).".process"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace CampaignBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Uneak\HighConnexionSmsBundle\Sms\HighConnexionMessage; | |
class MessageStatusCommand extends ContainerAwareCommand { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# db info | |
host="DBHOST" | |
user="DBUSER" | |
pass="DBPASS" | |
name="DBNAME" | |
# path info | |
project="/var/www/uneak" |