<?php /** * Copyright 2011 Microsoft Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @category Microsoft * @package DealOfTheDay * @author Ben Lobaugh <*****@*****.**> * @copyright 2011 Copyright Microsoft Corporation. All Rights Reserved * @license http://www.apache.org/licenses/LICENSE-2.0 **/ // Configuration settings define('SITE_RUNNING', true); include 'config.php'; // worklist Queue constants define('WL_NEW_PROD', 'New Product'); define('WL_DEL_PROD', 'Delete Product'); define('WL_NEW_COMMENT', 'New Comment'); define('WL_DEL_COMMENT', 'Delete Comment');
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @category Microsoft * @package DealOfTheDay * @author Ben Lobaugh <*****@*****.**> * @copyright 2011 Copyright Microsoft Corporation. All Rights Reserved * @license http://www.apache.org/licenses/LICENSE-2.0 **/ /* * This file sets up all the common functionality for * the website, EG: storage settings, table, blob, etc */ require_once 'config.php'; // // if(!isset($_SERVER['RoleName'])) { // $_SERVER['RoleDeploymentID'] = 'local'; // $_SERVER['RoleName'] = 'local'; // $_SERVER['RoleInstanceID'] = 'local'; // } // /** // * @deprecated // */ // define('ROLEID', $_SERVER['RoleDeploymentID'] . '/' . $_SERVER['RoleName'] . '/' . $_SERVER['RoleInstanceID']); // deprecated // Create a unique ID for each time the website it his. Helps with logging and such //define('RUNID', ROLEID . "_" . time() . "_" . rand(0, time())); // worklist Queue constants define('WL_NEW_PROD', 'New Product'); define('WL_DEL_PROD', 'Delete Product'); define('WL_NEW_COMMENT', 'New Comment');