31 "delayedType" => $this->dType,
33 "urlType" => $urlType,
36 "criterions" => array(
38 "WHERE" =>
"`URL`=$url",
47 $reqFile = tempnam(Yii::app()->getBasePath() .
'/json_temp',
'');
48 $request = fopen($reqFile,
"w");
49 fwrite($request,
$json);
67 $api = Yii::app()->params[
'api'];
69 $path = Yii::app()->getBasePath() .
'/shell/';
70 $cmd =
"sh " . $path .
"url_cleanup.sh $api $reqFile";
72 $json = shell_exec($cmd);
75 Yii::app()->user->setFlash(
'error1', $this->operation .
' ERROR: ' . $error);
77 Yii::app()->user->setFlash(
'success1', $this->operation .
': SUCCESS');