9 Yii::app()->attachEventHandler(
'onError',array($this,
'handleError'));
14 if($event instanceof CErrorEvent) {
15 if(stripos($event->message,
"include(TagsReaperFormAPI.php)") !==
false)
17 $event->handled =
true;
18 $this->renderPartial(
'//system/error500', array(
19 'customData' =>
'Module TagsReaperUI is not installed, or corrupted...',
31 $defaults = $command->getDefaults();
36 $this->render(
"siteNew", array(
39 'defaults' => $defaults,
40 'props' => $defaultProperties,
41 'descr' =>$descriptions[
'SITES'],
49 $userId = Yii::app()->user->id;
50 $pattern = $command->getUrlsArray()[0];
51 $state = Yii::app()->getRequest()->getPost(
'state');
53 $this->redirect(
"/SitesView/find?uid=$userId&pattern=$pattern&state=$state&limit=10&sortBy=UDate&sortDirection=DESC&yt1=Submit&pN=1");
58 $this->renderPartial(
'__scrapingForm');
62 $propsArr = CJSON::encode($command->getTProps());