diff --git a/web/bashgid_images/aHR0cDovL2Ntcy5pbmRpZ29pbnRlcmFjdGl2ZS5ydS9maWxlcy91ZmEvXy5qcGc=.jpg b/web/bashgid_images/aHR0cDovL2Ntcy5pbmRpZ29pbnRlcmFjdGl2ZS5ydS9maWxlcy91ZmEvXy5qcGc=.jpg deleted file mode 100644 index 95b0f02..0000000 Binary files a/web/bashgid_images/aHR0cDovL2Ntcy5pbmRpZ29pbnRlcmFjdGl2ZS5ydS9maWxlcy91ZmEvXy5qcGc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL2Ntcy5pbmRpZ29pbnRlcmFjdGl2ZS5ydS9maWxlcy91ZmEvXzIuanBn.jpg b/web/bashgid_images/aHR0cDovL2Ntcy5pbmRpZ29pbnRlcmFjdGl2ZS5ydS9maWxlcy91ZmEvXzIuanBn.jpg deleted file mode 100644 index 43816f1..0000000 Binary files a/web/bashgid_images/aHR0cDovL2Ntcy5pbmRpZ29pbnRlcmFjdGl2ZS5ydS9maWxlcy91ZmEvXzIuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3Bob3RvLmJzcHUucnUvMzIvMS5qcGc=.jpg b/web/bashgid_images/aHR0cDovL3Bob3RvLmJzcHUucnUvMzIvMS5qcGc=.jpg deleted file mode 100644 index 15dd111..0000000 Binary files a/web/bashgid_images/aHR0cDovL3Bob3RvLmJzcHUucnUvMzIvMS5qcGc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3Bob3RvLmJzcHUucnUvMzIvMi5qcGc=.jpg b/web/bashgid_images/aHR0cDovL3Bob3RvLmJzcHUucnUvMzIvMi5qcGc=.jpg deleted file mode 100644 index df539fe..0000000 Binary files a/web/bashgid_images/aHR0cDovL3Bob3RvLmJzcHUucnUvMzIvMi5qcGc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzE2LkpQRw==.jpg b/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzE2LkpQRw==.jpg deleted file mode 100644 index c805a12..0000000 Binary files a/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzE2LkpQRw==.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzIuanBn.jpg b/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzIuanBn.jpg deleted file mode 100644 index da8d740..0000000 Binary files a/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzIuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzIzLkpQRw==.jpg b/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzIzLkpQRw==.jpg deleted file mode 100644 index 7880b9c..0000000 Binary files a/web/bashgid_images/aHR0cDovL3Bya29tbS51Z2F0dS5zdS9tZWRpYS91cGxvYWRzL2ltZy9nYWxsZXJ5LzIzLkpQRw==.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5haXJwb3J0dWZhLnJ1L2Fzc2V0cy9nYWxsZXJ5LzE0Mi80Ni5KUEc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5haXJwb3J0dWZhLnJ1L2Fzc2V0cy9nYWxsZXJ5LzE0Mi80Ni5KUEc=.jpg deleted file mode 100644 index f743d94..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5haXJwb3J0dWZhLnJ1L2Fzc2V0cy9nYWxsZXJ5LzE0Mi80Ni5KUEc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5haXJwb3J0dWZhLnJ1L2Fzc2V0cy9nYWxsZXJ5LzE0My80Ny5qcGc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5haXJwb3J0dWZhLnJ1L2Fzc2V0cy9nYWxsZXJ5LzE0My80Ny5qcGc=.jpg deleted file mode 100644 index e7de757..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5haXJwb3J0dWZhLnJ1L2Fzc2V0cy9nYWxsZXJ5LzE0My80Ny5qcGc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfMS5qcGc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfMS5qcGc=.jpg deleted file mode 100644 index dfa50d9..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfMS5qcGc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfMTAuanBn.jpg b/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfMTAuanBn.jpg deleted file mode 100644 index ad358e7..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfMTAuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfNi5qcGc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfNi5qcGc=.jpg deleted file mode 100644 index dae28ee..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5iYXNoZWR1LnJ1L3NpdGVzL2RlZmF1bHQvZmlsZXMvbWVkaWFnYWxsZXJ5X2ltYWdlL3pkYW5pYV91bml2ZXJzaXRldGFfNi5qcGc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svN2RhLzdkYTcyYzE0YjVlYmJjYzJlNmM0Y2JkZGYyYTNiMWI0LmpwZWc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svN2RhLzdkYTcyYzE0YjVlYmJjYzJlNmM0Y2JkZGYyYTNiMWI0LmpwZWc=.jpg deleted file mode 100644 index 57cd9d4..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svN2RhLzdkYTcyYzE0YjVlYmJjYzJlNmM0Y2JkZGYyYTNiMWI0LmpwZWc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svNjg3LzY4N2U0YjhkYzkyOTgyYzhhODI3YmFmYmVlOWU5OTgwLmpwZWc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svNjg3LzY4N2U0YjhkYzkyOTgyYzhhODI3YmFmYmVlOWU5OTgwLmpwZWc=.jpg deleted file mode 100644 index 52440e1..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svNjg3LzY4N2U0YjhkYzkyOTgyYzhhODI3YmFmYmVlOWU5OTgwLmpwZWc=.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svYmYwL2JmMGJiNGViOWVjZDkwODZhMWVhMGMwNmQzYTAxMmYxLmpwZw==.jpg b/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svYmYwL2JmMGJiNGViOWVjZDkwODZhMWVhMGMwNmQzYTAxMmYxLmpwZw==.jpg deleted file mode 100644 index 2062031..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5ic2F1LnJ1L3VwbG9hZC9pYmxvY2svYmYwL2JmMGJiNGViOWVjZDkwODZhMWVhMGMwNmQzYTAxMmYxLmpwZw==.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5na2Jhc2hrb3J0b3N0YW4ucnUvdXBsb2FkL3Jlc2l6ZV9jYWNoZS9pYmxvY2svYjkzLzEwMjRfNzY4XzIvYjkzMmFjMDNiNWMwZjEzYWU0OTZjYWEzMjdlYzI1YmEuanBn.jpg b/web/bashgid_images/aHR0cDovL3d3dy5na2Jhc2hrb3J0b3N0YW4ucnUvdXBsb2FkL3Jlc2l6ZV9jYWNoZS9pYmxvY2svYjkzLzEwMjRfNzY4XzIvYjkzMmFjMDNiNWMwZjEzYWU0OTZjYWEzMjdlYzI1YmEuanBn.jpg deleted file mode 100644 index f36d331..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5na2Jhc2hrb3J0b3N0YW4ucnUvdXBsb2FkL3Jlc2l6ZV9jYWNoZS9pYmxvY2svYjkzLzEwMjRfNzY4XzIvYjkzMmFjMDNiNWMwZjEzYWU0OTZjYWEzMjdlYzI1YmEuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5na2Jhc2hrb3J0b3N0YW4ucnUvdXBsb2FkL3Jlc2l6ZV9jYWNoZS9pYmxvY2svZjhhLzEwMjRfNzY4XzIvZjhhYjU0OWExMTE2MzNlN2M5MDNhMzE2YTZlMjQ4Y2UuanBn.jpg b/web/bashgid_images/aHR0cDovL3d3dy5na2Jhc2hrb3J0b3N0YW4ucnUvdXBsb2FkL3Jlc2l6ZV9jYWNoZS9pYmxvY2svZjhhLzEwMjRfNzY4XzIvZjhhYjU0OWExMTE2MzNlN2M5MDNhMzE2YTZlMjQ4Y2UuanBn.jpg deleted file mode 100644 index 88baad5..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5na2Jhc2hrb3J0b3N0YW4ucnUvdXBsb2FkL3Jlc2l6ZV9jYWNoZS9pYmxvY2svZjhhLzEwMjRfNzY4XzIvZjhhYjU0OWExMTE2MzNlN2M5MDNhMzE2YTZlMjQ4Y2UuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5oaXVmYS5jb20vYXNzZXRzL3Bob3RvL2hvbGlkYXktaW5uLXVmYS9ob2xpZGF5LWlubi11ZmEtcGhvdG8tMDEuanBn.jpg b/web/bashgid_images/aHR0cDovL3d3dy5oaXVmYS5jb20vYXNzZXRzL3Bob3RvL2hvbGlkYXktaW5uLXVmYS9ob2xpZGF5LWlubi11ZmEtcGhvdG8tMDEuanBn.jpg deleted file mode 100644 index 26b640b..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5oaXVmYS5jb20vYXNzZXRzL3Bob3RvL2hvbGlkYXktaW5uLXVmYS9ob2xpZGF5LWlubi11ZmEtcGhvdG8tMDEuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5oaXVmYS5jb20vYXNzZXRzL3Bob3RvL2hvbGlkYXktaW5uLXVmYS9ob2xpZGF5LWlubi11ZmEtcGhvdG8tMDYuanBn.jpg b/web/bashgid_images/aHR0cDovL3d3dy5oaXVmYS5jb20vYXNzZXRzL3Bob3RvL2hvbGlkYXktaW5uLXVmYS9ob2xpZGF5LWlubi11ZmEtcGhvdG8tMDYuanBn.jpg deleted file mode 100644 index 009ce64..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5oaXVmYS5jb20vYXNzZXRzL3Bob3RvL2hvbGlkYXktaW5uLXVmYS9ob2xpZGF5LWlubi11ZmEtcGhvdG8tMDYuanBn.jpg and /dev/null differ diff --git a/web/bashgid_images/aHR0cDovL3d3dy5zbXUucnVzb2lsLm5ldC9wYWdlcy8xMTQyNi9VR05UVS5KUEc=.jpg b/web/bashgid_images/aHR0cDovL3d3dy5zbXUucnVzb2lsLm5ldC9wYWdlcy8xMTQyNi9VR05UVS5KUEc=.jpg deleted file mode 100644 index 9872143..0000000 Binary files a/web/bashgid_images/aHR0cDovL3d3dy5zbXUucnVzb2lsLm5ldC9wYWdlcy8xMTQyNi9VR05UVS5KUEc=.jpg and /dev/null differ diff --git a/web/nbproject/private/private.xml b/web/nbproject/private/private.xml index 35a569b..284eeec 100644 --- a/web/nbproject/private/private.xml +++ b/web/nbproject/private/private.xml @@ -2,10 +2,6 @@ - - file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/controllers/ArticleController.php - file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/models/Translation.php - file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/controllers/TranslationController.php - + diff --git a/web/protected/controllers/SiteController.php b/web/protected/controllers/SiteController.php index 866a246..c9b3bbe 100644 --- a/web/protected/controllers/SiteController.php +++ b/web/protected/controllers/SiteController.php @@ -1,88 +1,93 @@ array( - 'class'=>'CCaptchaAction', - 'backColor'=>0xFFFFFF, - ), - // page action renders "static" pages stored under 'protected/views/site/pages' - // They can be accessed via: index.php?r=site/page&view=FileName - 'page'=>array( - 'class'=>'CViewAction', - ), - ); - } +class SiteController extends Controller { - /** - * This is the default 'index' action that is invoked - * when an action is not explicitly requested by users. - */ - public function actionIndex() - { - // renders the view file 'protected/views/site/index.php' - // using the default layout 'protected/views/layouts/main.php' - $this->render('index'); - } - - /** - * This is the action to handle external exceptions. - */ - public function actionError() - { - if($error=Yii::app()->errorHandler->error) - { - if(Yii::app()->request->isAjaxRequest) - echo $error['message']; - else - $this->render('error', $error); - } - } - - /** - * Displays the contact page - */ - public function actionContact() - { - $this->render('contact',array('model'=>$model)); - } - - /** - * Displays the login page - */ - public function actionLogin() - { - $model=new LoginForm; - - // if it is ajax validation request - if(isset($_POST['ajax']) && $_POST['ajax']==='login-form') - { - echo CActiveForm::validate($model); - Yii::app()->end(); - } - - // collect user input data - if(isset($_POST['LoginForm'])) - { - $model->attributes=$_POST['LoginForm']; - // validate user input and redirect to the previous page if valid - if($model->validate() && $model->login()) - $this->redirect(Yii::app()->user->returnUrl); - } - // display the login form - $this->render('login',array('model'=>$model)); - } - - - public function actionRegister() + /** + * Declares class-based actions. + */ + public function actions() { + return array( + // captcha action renders the CAPTCHA image displayed on the contact page + 'captcha' => array( + 'class' => 'CCaptchaAction', + 'backColor' => 0xFFFFFF, + ), + // page action renders "static" pages stored under 'protected/views/site/pages' + // They can be accessed via: index.php?r=site/page&view=FileName + 'page' => array( + 'class' => 'CViewAction', + ), + ); + } + + /** + * This is the default 'index' action that is invoked + * when an action is not explicitly requested by users. + */ + public function actionIndex() + { + // renders the view file 'protected/views/site/index.php' + // using the default layout 'protected/views/layouts/main.php' + $this->render('index'); + } + + /** + * This is the action to handle external exceptions. + */ + public function actionError() + { + if ($error = Yii::app()->errorHandler->error) + { + if (Yii::app()->request->isAjaxRequest) + echo $error['message']; + else + $this->render('error', $error); + } + } + + /** + * Displays the contact page + */ + public function actionContact() + { + $this->render('contact'); + } + + /** + * Displays the login page + */ + public function actionLogin() + { + + $model = new LoginForm; + + // if it is ajax validation request + if (isset($_POST['ajax']) && $_POST['ajax'] === 'login-form') + { + echo CActiveForm::validate($model); + Yii::app()->end(); + } + + // collect user input data + if (isset($_POST['LoginForm'])) + { + $model->attributes = $_POST['LoginForm']; + // validate user input and redirect to the previous page if valid + if ($model->validate() && $model->login()) + $this->redirect(Yii::app()->user->returnUrl); + } + // display the login form + $this->render('login', array('model' => $model)); + + + + $this->render('index'); + } + + public function actionRegister() + { + /* $model = new User('register'); if (isset($_POST['User'])) @@ -93,8 +98,8 @@ class SiteController extends Controller $oldPassword = $model->password; $model->password = $this->better_crypt($model->password); - - + + date_default_timezone_set("UTC"); $model->date = date('Y-m-d H:i:s'); @@ -110,18 +115,134 @@ class SiteController extends Controller } } $this->render('register', array('model' => $model)); + + */ + + $this->render('index'); } - /** - * Logs out the current user and redirect to homepage. - */ - public function actionLogout() - { - Yii::app()->user->logout(); - $this->redirect(Yii::app()->homeUrl); - } + /** + * Logs out the current user and redirect to homepage. + */ + public function actionLogout() + { + Yii::app()->user->logout(); + $this->redirect(Yii::app()->homeUrl); + } + + + public function actionAddPhotosToArticle() + { + $model = new AddPhotosToArticleForm; - private function better_crypt($input) + if (isset($_POST['AddPhotosToArticleForm'])) + { + + $model->attributes = $_POST['AddPhotosToArticleForm']; + + $urlList = explode(PHP_EOL, $model->photoUrlText); + + $article = Article::model()->find('name=:name', array(':name' => $model->articleName)); + + if ($article) + { + + + if (!Album::model()->find('name=:name', array(':name' => $model->articleName))) + { + $album = new Album(); + + $album->name = $model->articleName; + $album->title = $article->title; + $album->description = ""; + + $album->save(); + + + } + + + if (!AlbumArticleRelation::model()->find('albumName=:name AND articleName=:name', array(':name' => $model->articleName))) + { + $albumArticleRelation = new AlbumArticleRelation(); + $albumArticleRelation->albumName = $model->articleName; + $albumArticleRelation->articleName = $model->articleName; + + $albumArticleRelation->save(); + } + + + + + foreach ($urlList as $row) + { + $row = trim($row); + + if ($row !== '') + { + + //$localFileName = 'C:/Workplace/Apache2.4/htdocs/bashgid/bashgid_images/' . base64_encode($row) . '.jpg'; + + $localFileName = '/home/hallyu-http/bashgid.hallyu.ru/http/bashgid_images/' . base64_encode($row) . '.jpg'; + + copy($row, $localFileName); + + $photo = Photo::model()->find('imageUrl=:imageUrl', array(':imageUrl' => $row)); + + if ($photo) + { + $photo->delete(); + } + + $photo = new Photo(); + + $photo->title = $article->title; + $photo->imageUrl = $row; + $photo->imageHash = md5_file($localFileName); + $photo->description = ""; + + $photo->save(); + + $photoAlbumRelation = new PhotoAlbumRelation(); + $photoAlbumRelation->imageUrl = $row; + $photoAlbumRelation->name = $model->articleName; + + $photoAlbumRelation->save(); + + } + } + + } + + $this->render('photosAdded', array('urlList' => $urlList)); + return; + } + + $this->render('addPhotosToArticle', array('model' => $model)); + + } + + public function actionRecalcImageHash() + { + $photoArr = Photo::model()->findAll(); + + foreach($photoArr as $photo) + { + + //$localFileName = 'C:/Workplace/Apache2.4/htdocs/bashgid/bashgid_images/' . base64_encode($photo->imageUrl) . '.jpg'; + + $localFileName = '/home/hallyu-http/bashgid.hallyu.ru/http/bashgid_images/' . base64_encode($photo->imageUrl) . '.jpg'; + + $imageHash = md5_file($localFileName); + $photo->imageHash = $imageHash; + $photo->save(); + } + + $this->redirect(Yii::app()->homeUrl); + + } + + private function better_crypt($input) { $salt = ""; $salt_chars = array_merge(range('A', 'Z'), range('a', 'z'), range(0, 9)); @@ -131,4 +252,5 @@ class SiteController extends Controller } return crypt($input, '$2y$10$' . $salt); } -} \ No newline at end of file + +} diff --git a/web/protected/models/AddPhotosToArticleForm.php b/web/protected/models/AddPhotosToArticleForm.php new file mode 100644 index 0000000..e02b4ef --- /dev/null +++ b/web/protected/models/AddPhotosToArticleForm.php @@ -0,0 +1,37 @@ + 'Article Name', + 'photoUrlText' => 'Photo Url Text', + ); + } + +} diff --git a/web/protected/runtime/application.log b/web/protected/runtime/application.log index 344b95b..b51dc03 100644 --- a/web/protected/runtime/application.log +++ b/web/protected/runtime/application.log @@ -701,3 +701,215 @@ Stack trace: REQUEST_URI=/bashgid/index.php?r=article/editMax&n=mc_article_0 HTTP_REFERER=http://localhost/bashgid/index.php?r=journal/editArticlesMax --- +2015/07/07 19:38:40 [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Unable to resolve the request "index/addPhotosToArticle".' in C:\Workplace\yii1.1.15\framework\web\CWebApplication.php:286 +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('index/addPhotos...') +#1 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#2 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run() +#3 {main} +REQUEST_URI=/bashgid/index.php?r=index/addPhotosToArticle +HTTP_REFERER=http://localhost/bashgid/index.php +--- +2015/07/07 19:39:00 [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Unable to resolve the request "index/addPhotosToArticle".' in C:\Workplace\yii1.1.15\framework\web\CWebApplication.php:286 +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('index/addPhotos...') +#1 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#2 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run() +#3 {main} +REQUEST_URI=/bashgid/index.php?r=index/addPhotosToArticle +--- +2015/07/07 19:39:03 [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Unable to resolve the request "index/addPhotosToArticle".' in C:\Workplace\yii1.1.15\framework\web\CWebApplication.php:286 +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('index/addPhotos...') +#1 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#2 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run() +#3 {main} +REQUEST_URI=/bashgid/index.php?r=index/addPhotosToArticle +--- +2015/07/07 19:39:19 [error] [exception.CException] exception 'CException' with message 'Property "Article.hidden" is not defined.' in C:\Workplace\yii1.1.15\framework\base\CComponent.php:130 +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\db\ar\CActiveRecord.php(145): CComponent->__get('hidden') +#1 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(2529): CActiveRecord->__get('hidden') +#2 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(2252): CHtml::resolveValue(Object(Article), 'hidden') +#3 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(1434): CHtml::activeInputField('text', Object(Article), 'hidden', Array) +#4 C:\Workplace\yii1.1.15\framework\web\widgets\CActiveForm.php(725): CHtml::activeTextField(Object(Article), 'hidden', Array) +#5 C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\article\_search.php(76): CActiveForm->textField(Object(Article), 'hidden') +#6 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require('C:\\Workplace\\Ap...') +#7 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\Workplace\\Ap...', Array, true) +#8 C:\Workplace\yii1.1.15\framework\web\CController.php(869): CBaseController->renderFile('C:\\Workplace\\Ap...', Array, true) +#9 C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\article\admin.php(40): CController->renderPartial('_search', Array) +#10 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require('C:\\Workplace\\Ap...') +#11 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\Workplace\\Ap...', Array, true) +#12 C:\Workplace\yii1.1.15\framework\web\CController.php(869): CBaseController->renderFile('C:\\Workplace\\Ap...', Array, true) +#13 C:\Workplace\yii1.1.15\framework\web\CController.php(782): CController->renderPartial('admin', Array, true) +#14 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php(147): CController->render('admin', Array) +#15 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): ArticleController->actionAdmin() +#16 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array) +#17 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction)) +#18 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run() +#19 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain)) +#20 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain)) +#21 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain)) +#22 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run() +#23 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array) +#24 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('admin') +#25 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('article/admin') +#26 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#27 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run() +#28 {main} +REQUEST_URI=/bashgid/index.php?r=article/admin +HTTP_REFERER=http://localhost/bashgid/index.php?r=site/index +--- +2015/07/07 19:48:06 [error] [php] Undefined variable: row (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:135) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#2 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#4 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#5 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (135) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 19:48:49 [error] [php] : failed to open stream: No such file or directory (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:140) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#4 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#5 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#6 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (140) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:12:21 [error] [php] : failed to open stream: No such file or directory (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:140) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#4 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#5 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#6 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (140) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:12:37 [error] [php] Array to string conversion (C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\site\photosAdded.php:17) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial() +#2 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php(145): SiteController->render() +#3 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionAddPhotosToArticle() +#4 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#5 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#6 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#7 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#8 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#9 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#10 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\site\photosAdded.php (17) +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (145) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:14:30 [error] [php] : failed to open stream: No such file or directory (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:141) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#4 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#5 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#6 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (141) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:16:22 [error] [php] : failed to open stream: No such file or directory (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:141) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#4 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#5 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#6 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (141) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:17:06 [error] [php] : failed to open stream: No such file or directory (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:141) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#4 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#5 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#6 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (141) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:17:33 [error] [php] copy(C:/Workplace/Apache2.4/htdocs/bashgid/bashgid_imagesbashgid_images/nnk.jpg): failed to open stream: No such file or directory (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:141) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#4 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#5 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#6 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (141) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 20:30:51 [error] [php] include(Almum.php): failed to open stream: No such file or directory (C:\Workplace\yii1.1.15\framework\YiiBase.php:427) +Stack trace: +#0 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php(141): spl_autoload_call() +#1 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionAddPhotosToArticle() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#3 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#4 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#5 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#6 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#7 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#8 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/addPhotosToArticle +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (141) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 22:38:48 [error] [php] include(MyModel.php): failed to open stream: No such file or directory (C:\Workplace\yii1.1.15\framework\YiiBase.php:427) +Stack trace: +#0 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php(217): spl_autoload_call() +#1 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionRecalcImageHash() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#3 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#4 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#5 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#6 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#7 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#8 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/recalcImageHash +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (217) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 22:38:52 [error] [php] include(MyModel.php): failed to open stream: No such file or directory (C:\Workplace\yii1.1.15\framework\YiiBase.php:427) +Stack trace: +#0 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php(217): spl_autoload_call() +#1 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionRecalcImageHash() +#2 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams() +#3 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#4 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#5 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#6 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#7 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#8 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/recalcImageHash +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (217) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) +2015/07/07 22:39:08 [error] [php] Undefined variable: row (C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php:222) +Stack trace: +#0 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction() +#1 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters() +#2 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run() +#3 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController() +#4 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest() +#5 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run() +REQUEST_URI=/bashgid/index.php?r=site/recalcImageHash +in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\SiteController.php (222) +in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21) diff --git a/web/protected/views/site/addPhotosToArticle.php b/web/protected/views/site/addPhotosToArticle.php new file mode 100644 index 0000000..e716045 --- /dev/null +++ b/web/protected/views/site/addPhotosToArticle.php @@ -0,0 +1,44 @@ +pageTitle=Yii::app()->name . ' - Add many photos'; +$this->breadcrumbs=array( + 'Add many photos', +); +?> + +

Автоматическое добавление картинок в статью

+ +

Введите имя статьи:

+ +
+beginWidget('CActiveForm', array( + 'id'=>'login-form', + 'enableClientValidation'=>true, + 'clientOptions'=>array( + 'validateOnSubmit'=>true, + ), +)); ?> + +

Поля, отмеченные * обязательны.

+ +
+ labelEx($model,'articleName'); ?> + textField($model,'articleName'); ?> + error($model,'articleName'); ?> +
+ +
+ labelEx($model,'photoUrlText'); ?> + textArea($model,'photoUrlText',array('rows'=>6, 'cols'=>50)); ?> + error($model,'photoUrlText'); ?> +
+ +
+ +
+ +endWidget(); ?> +
diff --git a/web/protected/views/site/index.php b/web/protected/views/site/index.php index 9cd01d8..03a1d25 100644 --- a/web/protected/views/site/index.php +++ b/web/protected/views/site/index.php @@ -27,6 +27,13 @@ if (!Yii::app()->user->isGuest) )); + $this->widget('zii.widgets.CMenu', array( + 'items' => array( + array('label' => 'Редактировать фото в статье', 'url' => array('site/addPhotosToArticle')), + array('label' => 'Обновить хэш', 'url' => array('site/recalcImageHash')), + ), + )); + /* if (Journal::getCurrentUserJournal()) { $this->widget('zii.widgets.CMenu', array( @@ -44,7 +51,7 @@ if (!Yii::app()->user->isGuest) array('label' => 'Добавить ваш раздел', 'url' => array('journal/addMax')), ), )); - } + }*/ } else diff --git a/web/protected/views/site/photosAdded.php b/web/protected/views/site/photosAdded.php new file mode 100644 index 0000000..9c62833 --- /dev/null +++ b/web/protected/views/site/photosAdded.php @@ -0,0 +1,25 @@ +pageTitle = Yii::app()->name . ' - Add many photos'; +$this->breadcrumbs = array( + 'Add many photos', +); +?> + +

Автоматическое добавление картинок в статью

+ +

Введите имя статьи:

+ +"; + +foreach ($urlList as $row) +{ + echo "

" . $row . "

"; +} +?> + +