>DansTonCode();

Tous les codes sourcespage 39

PHP
  2 August, 2014 à 02:23
#122
return array(
                'success' => true,
                'status' => 'error',
                'errors' => array()
            );
PHP
 31 July, 2014 à 10:35
#220
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsErrors.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsXMLParser.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsSqlServer.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsSQLCommon.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsFunciones.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsEstatica.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsJS.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsCMS.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsCarrito.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsAcceso.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsAccesoFrontend.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsHtml.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsObjetoContenedor.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsObjetoGeneral.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsObjetoFactory.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsConfiguracion.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsContador.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsSeo.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/clsCore.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../_class/performanceLog.php');
require_once(dirname(function_exists('zend_loader_current_file')? zend_loader_current_file(): __FILE__).'/../include/modules_constants.php');
C++
 29 July, 2014 à 12:50
#192
class God // Okay this is going well
{
private:
    static God* m_God; // Point to yourself, eh? Pretty narcissistic. 

public:
    God &getSingleton() { if(!m_God) { m_God = new m_God(); } return m_God(); } // Woah woah. Only one of you? Poor design. 

    World *createWorldFromNothing() { return WorldManager::makeNewWorld(); } // You didn't really create a world from nothing, God... you just borrowed it.
     
    const bool wasItGood(World* world) { return true; } // DA FUCK God?! You didn't even check! It could be garbage for all you know! It's a pointer!
    God() { ; }
    ~God() { ; }
};

God* God::m_God = 0; 

int main(...)
{
    World *world = God::getSingleton()->createWorldFromNothing(); 
 
    while(God::getSingleton()->wasItGood(world)) // Dude. This goes forever. You know that right?
    {
        world->update(); 
    }

    return 0; // THIS NEVER CALLS. DA FUQ GOD. 
}