Created
March 22, 2015 23:40
-
-
Save gohanman/c342b7bd8b57121c9673 to your computer and use it in GitHub Desktop.
This file contains 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 | |
/******************************************************************************* | |
Copyright 2013 Whole Foods Co-op | |
This file is part of IT CORE. | |
IT CORE is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
IT CORE is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | |
in the file license.txt along with IT CORE; if not, write to the Free Software | |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
*********************************************************************************/ | |
/** | |
@class LineItemDiscountAdminLogin | |
adminlogin callback for approving | |
line item discounts. | |
*/ | |
class LineItemDiscountAdminLogin | |
{ | |
static public $adminLoginMsg = 'Login to give discount'; | |
static public $adminLoginLevel = 30; | |
static public function adminLoginCallback($success) | |
{ | |
if ($success) { | |
CoreLocal::set('strRemembered', CoreLocal::get('strEntered')); | |
CoreLocal::set('msgrepeat', 1); | |
var_dump(CoreLocal::get('strRemembered')); exit; | |
return true; | |
} else { | |
return false; | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment