summaryrefslogtreecommitdiff
path: root/modules/g2_import/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-04-15 07:23:22 +0000
committerBharat Mediratta <bharat@menalto.com>2009-04-15 07:23:22 +0000
commita7f345476f80cde43589069825a256534de7745c (patch)
treed90dfe15263af64b9194e5dcef8810c40b75765e /modules/g2_import/views
parent8c1d1a9d0df5e1501d8beccbadeaf93c95313a62 (diff)
Very early round of Gallery 2 import code. It can import users (with
the wrong password) and import groups, with a basic UI. Needs a ton more work.
Diffstat (limited to 'modules/g2_import/views')
-rw-r--r--modules/g2_import/views/admin_g2_import.html.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php
new file mode 100644
index 00000000..9b61b584
--- /dev/null
+++ b/modules/g2_import/views/admin_g2_import.html.php
@@ -0,0 +1,20 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<div id="gAdminG2Config">
+ <h1> <?= t("Gallery 2 Import") ?> </h1>
+ <p>
+ <?= t("Import your Gallery 2 users, photos, movies, comments and tags into your new Gallery 3 installation.") ?>
+ </p>
+
+ <?= $form ?>
+</div>
+
+<? if (g2_import::is_initialized()): ?>
+<div id="gAdminG2Import">
+ <h1> <?= t("Import") ?> </h1>
+ <div class="gSuccess">
+ <?= t("We've detected Gallery version: %version", array("version" => g2_import::version())) ?>
+ </div>
+ <a href="<?= url::site("admin/maintenance/start/g2_import::import?csrf=$csrf") ?>"
+ class="gPanelLink"><?= t("Begin Import") ?></a>
+</div>
+<? endif ?>