Fix copyright to 2009
Add admin_developer/session support.
This commit is contained in:
parent
31d64d6683
commit
b43fc5e988
@ -1,7 +1,7 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.");
|
<?php defined("SYSPATH") or die("No direct script access.");
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.");
|
<?php defined("SYSPATH") or die("No direct script access.");
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -76,6 +76,12 @@ class Admin_Developer_Controller extends Admin_Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function session($key) {
|
||||||
|
access::verify_csrf();
|
||||||
|
Session::instance()->set($key, Input::instance()->get("value"));
|
||||||
|
url::redirect("albums/1");
|
||||||
|
}
|
||||||
|
|
||||||
public function test_data_create() {
|
public function test_data_create() {
|
||||||
access::verify_csrf();
|
access::verify_csrf();
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.");
|
<?php defined("SYSPATH") or die("No direct script access.");
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.");
|
<?php defined("SYSPATH") or die("No direct script access.");
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -38,28 +38,33 @@ class developer_menu_Core {
|
|||||||
->label(t("MPTT Tree"))
|
->label(t("MPTT Tree"))
|
||||||
->url(url::site("admin/developer/mptt")));
|
->url(url::site("admin/developer/mptt")));
|
||||||
|
|
||||||
|
$csrf = access::csrf_token();
|
||||||
if (Session::instance()->get("profiler", false)) {
|
if (Session::instance()->get("profiler", false)) {
|
||||||
$developer_menu->append(Menu::factory("link")
|
$developer_menu->append(
|
||||||
->id("scaffold_profiler")
|
Menu::factory("link")
|
||||||
->label("Profiling off")
|
->id("scaffold_profiler")
|
||||||
->url(url::site("admin/developer/session/profiler?value=0")));
|
->label("Profiling off")
|
||||||
|
->url(url::site("admin/developer/session/profiler?value=0&csrf=$csrf")));
|
||||||
} else {
|
} else {
|
||||||
$developer_menu->append(Menu::factory("link")
|
$developer_menu->append(
|
||||||
->id("scaffold_profiler")
|
Menu::factory("link")
|
||||||
->label("Profiling on")
|
->id("scaffold_profiler")
|
||||||
->url(url::site("admin/developer/session/profiler?value=1")));
|
->label("Profiling on")
|
||||||
|
->url(url::site("admin/developer/session/profiler?value=1&csrf=$csrf")));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Session::instance()->get("debug", false)) {
|
if (Session::instance()->get("debug", false)) {
|
||||||
$developer_menu->append(Menu::factory("link")
|
$developer_menu->append(
|
||||||
->id("scaffold_debugger")
|
Menu::factory("link")
|
||||||
->label("Debugging off")
|
->id("scaffold_debugger")
|
||||||
->url(url::site("admin/developer/session/debug?value=0")));
|
->label("Debugging off")
|
||||||
|
->url(url::site("admin/developer/session/debug?value=0&csrf=$csrf")));
|
||||||
} else {
|
} else {
|
||||||
$developer_menu->append(Menu::factory("link")
|
$developer_menu->append(
|
||||||
->id("scaffold_debugger")
|
Menu::factory("link")
|
||||||
->label("Debugging on")
|
->id("scaffold_debugger")
|
||||||
->url(url::site("admin/developer/session/debug?value=1")));
|
->label("Debugging on")
|
||||||
|
->url(url::site("admin/developer/session/debug?value=1&csrf=$csrf")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.");
|
<?php defined("SYSPATH") or die("No direct script access.");
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?>
|
||||||
/**
|
/**
|
||||||
* Gallery - a web based photo album viewer and editor
|
* Gallery - a web based photo album viewer and editor
|
||||||
* Copyright (C) 2000-2008 Bharat Mediratta
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
Reference in New Issue
Block a user