var theFrame = document.getElementsByTagName("frame")[0];
var theFrameDocument = theFrame.contentDocument || theFrame.contentWindow.document;
var button = theFrameDocument.getElementById("mybutton");
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
| DELETE FROM roadmap_cities WHERE id IN ( | |
| SELECT deleted FROM ( | |
| SELECT CASE count(rc.id) when 1 then rc.id end as deleted | |
| FROM roadmap_cities as rc | |
| LEFT JOIN roadmap_objects as ro ON ro.id = 27 | |
| WHERE rc.id = ro.city | |
| ) as d | |
| ) |
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 | |
| /* | |
| echo plural_form(42, array('арбуз', 'арбуза', 'арбузов')); | |
| */ | |
| function plural_form($n, $forms) { | |
| return $n%10==1&&$n%100!=11?$forms[0]:($n%10>=2&&$n%10<=4&&($n%100<10||$n%100>=20)?$forms[1]:$forms[2]); | |
| } |
Для начала нужно посмотреть куда направлен домен. Делается это в конфиге apache по пути /etc/apache2/sites-enabled, в файле с названием домена, параметр DocumentRoot.
В project.ini.php прописать соеденение к базе данных. Далее нужно заменить старые пути на новые, заменять лучше всего глобальной заменой по файлу. Посмотреть на старый путь можно в переменной "Path", "FrameworkPath", etc.
Для начала нужно узнать новый путь к корню сайта. Самый простой способ, это создать файл с названием showmepath.php(название, конечно же, может быть любое), с содержимым:
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
| import {Component, View} from 'angular2/core'; | |
| @Component({ | |
| selector: 'contact-card' | |
| }) | |
| @View({ | |
| template: ` | |
| <div> | |
| <h1>{{name}}</h1> | |
| <p>{{city}}</p> |