From: <und...@us...> - 2012-03-28 01:30:34
|
Revision: 11031 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=11031&view=rev Author: undef-in-ed Date: 2012-03-28 01:30:28 +0000 (Wed, 28 Mar 2012) Log Message: ----------- Load cookie salt from config file Added Paths: ----------- stkaddons/branches/kohana_port/application/classes/cookie.php stkaddons/branches/kohana_port/application/config/ stkaddons/branches/kohana_port/application/config/cookie.php Added: stkaddons/branches/kohana_port/application/classes/cookie.php =================================================================== --- stkaddons/branches/kohana_port/application/classes/cookie.php (rev 0) +++ stkaddons/branches/kohana_port/application/classes/cookie.php 2012-03-28 01:30:28 UTC (rev 11031) @@ -0,0 +1,6 @@ +<?php + +class Cookie extends Kohana_Cookie {} + +Kohana_Cookie::$salt = Kohana::$config->load('cookie.salt'); +?> Added: stkaddons/branches/kohana_port/application/config/cookie.php =================================================================== --- stkaddons/branches/kohana_port/application/config/cookie.php (rev 0) +++ stkaddons/branches/kohana_port/application/config/cookie.php 2012-03-28 01:30:28 UTC (rev 11031) @@ -0,0 +1,6 @@ +<?php + +return array( + 'salt' => 'should_be_a_secret' +); +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |