diff options
| author | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-20 04:30:34 +0300 |
|---|---|---|
| committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-20 04:30:34 +0300 |
| commit | ce80259d6939e43aaea34eba7bea4b2a602a5019 (patch) | |
| tree | 7ca81d874b62c5a2c0244657aa903d565a7e6b04 /modules/g2_import/views | |
| parent | ba950bec0c84a1467aa2545ca815d5af7b0b002b (diff) | |
| parent | 93d1a8103e757a87fb006f2389f0ee24497367a7 (diff) | |
Merge remote branch 'gallery3/master'
Diffstat (limited to 'modules/g2_import/views')
| -rw-r--r-- | modules/g2_import/views/admin_g2_import.html.php | 95 |
1 files changed, 41 insertions, 54 deletions
diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index 8ec4b5ce..564bea9f 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -6,29 +6,10 @@ </p> <div class="g-block-content"> - <div id="g-admin-g2-import-notes"> - <h2> <?= t("Notes") ?> </h2> - <p> - <?= t("The import process is a work in progress with some known issues:") ?> - </p> - <ul> - <li> - <?= t("Gallery 3 does not support per-user / per-item permissions. <b>Review permissions after your import is done.</b>") ?> - </li> - <li> - <?= t("The only supported file formats are JPG, PNG and GIF, FLV and MP4. Other formats will be skipped.") ?> - </li> - <li> - <?= t("Deactivating the <b>notification</b>, <b>search</b> and <b>exif</b> modules during your import will make it go faster.") ?> - </li> - <li> - <?= t("The eAccelerator PHP performance extension is known to cause issues. If you're using eAccelerator and having problems, please disable it while you do your import. One way to do that is to put <code>php_value eaccelerator.enable 0</code> in gallery3/.htaccess") ?> - </li> - </ul> - </div> - <?= $form ?> + </div> + <div class="g-block-content"> <? if (g2_import::is_initialized()): ?> <div id="g-admin-g2-import-details"> <h2> <?= t("Import") ?> </h2> @@ -53,59 +34,65 @@ "url" => html::mark_clean(url::site("admin/theme_options")))) ?> </li> <? endif ?> + + <li class="g-info"> + <?= t("Your Gallery 2 has the following importable data in it:") ?> + <p> + <?= t2("1 user", "%count users", $g2_stats["users"]) ?>, + <?= t2("1 group", "%count groups", $g2_stats["groups"]) ?>, + <?= t2("1 album", "%count albums", $g2_stats["albums"]) ?>, + <?= t2("1 photo", "%count photos", $g2_stats["photos"]) ?>, + <?= t2("1 movie", "%count movies", $g2_stats["movies"]) ?>, + <?= t2("1 comment", "%count comments", $g2_stats["comments"]) ?>, + <?= t2("1 tagged photo/movie/album", + "%count tagged photos/movies/albums", $g2_stats["tags"]) ?> + </p> + </li> </ul> - <div class="g-message-block g-info"> - <p> - <?= t("Your Gallery 2 has the following importable data in it") ?> - </p> - <ul> - <li> - <?= t2("1 user", "%count users", $g2_stats["users"]) ?> - </li> - <li> - <?= t2("1 group", "%count groups", $g2_stats["groups"]) ?> - </li> - <li> - <?= t2("1 album", "%count albums", $g2_stats["albums"]) ?> - </li> + <p> + <a class="g-button g-dialog-link ui-state-default ui-corner-all" + href="<?= url::site("admin/maintenance/start/g2_import_task::import?csrf=$csrf") ?>"> + <?= t("Begin import!") ?> + </a> + </p> + </div> + + <div class="g-block-content"> + <div id="g-admin-g2-import-notes"> + <h2> <?= t("Notes") ?> </h2> + <ul class="enumeration"> <li> - <?= t2("1 photo", "%count photos", $g2_stats["photos"]) ?> + <?= t("Gallery 3 does not support per-user / per-item permissions. <b>Review permissions after your import is done.</b>") ?> </li> <li> - <?= t2("1 movie", "%count movies", $g2_stats["movies"]) ?> + <?= t("The only supported file formats are JPG, PNG and GIF, FLV and MP4. Other formats will be skipped.") ?> </li> <li> - <?= t2("1 comment", "%count comments", $g2_stats["comments"]) ?> + <?= t("Deactivating the <b>notification</b>, <b>search</b> and <b>exif</b> modules during your import will make it go faster.") ?> </li> <li> - <?= t2("1 tagged photo/movie/album", - "%count tagged photos/movies/albums", $g2_stats["tags"]) ?> + <?= t("The eAccelerator and XCache PHP performance extensions are known to cause issues. If you're using either of those and are having problems, please disable them while you do your import. Add the following lines: <pre>%lines</pre> to gallery3/.htaccess and remove them when the import is done.", array("lines" => "\n\n php_value eaccelerator.enable 0\n php_value xcache.cacher off\n php_value xcache.optimizer off\n\n")) ?> </li> </ul> </div> - - <p> - <a class="g-button g-dialog-link ui-state-default ui-corner-all" - href="<?= url::site("admin/maintenance/start/g2_import_task::import?csrf=$csrf") ?>"> - <?= t("Begin import!") ?> - </a> - </p> </div> - <div> - <h2> <?= t("Migrating from Gallery 2") ?> </h2> - <p> - <?= t("Once your migration is complete, put this block at the top of your gallery2/.htaccess file and all Gallery 2 urls will be redirected to Gallery 3") ?> - </p> + <div class="g-block-content"> + <div> + <h2> <?= t("Migrating from Gallery 2") ?> </h2> + <p> + <?= t("Once your migration is complete, put this block at the top of your gallery2/.htaccess file and all Gallery 2 urls will be redirected to Gallery 3") ?> + </p> - <textarea rows="2"><IfModule mod_rewrite.c> + <textarea rows="4" cols="60"><IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase <?= html::clean(g2_import::$g2_base_url) ?> RewriteRule ^(.*)$ <?= url::site("g2/map?path=\$1") ?> [QSA,L,R=301] </IfModule></textarea> + </div> + <? endif ?> </div> - <? endif ?> </div> </div> |
