cotonti.com : Adding legal code check to lang-files https://www.cotonti.com Останні повідомлення в темі Cotonti en Fri, 06 Mar 2026 21:37:13 -0000 biro Пн, 13 Кві 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]]>
Сб, 21 Бер 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.]]>
Пт, 20 Бер 2009 17:17:28 -0000