cotonti.com : Adding legal code check to lang-files https://www.cotonti.com Neueste Themenbeiträge Cotonti en Thu, 27 Nov 2025 10:53:16 -0000 biro Mo, 13 Apr 2009 00:16:57 -0000 Trustmaster original post
So this topic is about using:
defined('SED_CODE') or die('Wrong URL.');
instead of old-style
if (!defined('SED_CODE')) { die('Wrong URL.'); }
so it shorter, looks a bit neater and works a bit faster]]>
Sa, 21 Mär 2009 04:11:43 -0000
Kort dervan to include legal code check in localization files as follows:
<?php
/**
 * LOCALE Language File for PLUG Plugin
 *
 * @package Cotonti
 * @version VERSION
 * @author Cotonti Translators Team
 * @copyright Copyright (c) Cotonti Team 2008-2009
 * @license BSD
 */

defined('SED_CODE') or die('Wrong URL.');

/**
 * Plugin Title & Subtitle
 */
Need opinions / comments.]]>
Fr, 20 Mär 2009 17:17:28 -0000