This file contains hidden or 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
| function modifieTexte() { | |
| var t2 = document.getElementById("t2"); | |
| t2.firstChild.nodeValue = "trois"; | |
| } | |
| function load() { | |
| var el = document.getElementById("t"); | |
| el.addEventListener("click", modifieTexte, false); //ne marche pas | |
| } |
This file contains hidden or 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
| function modifieTexte() { | |
| var t2 = document.getElementById("t2"); | |
| t2.firstChild.nodeValue = "trois"; | |
| } | |
| function load() { | |
| var el = document.getElementById("t"); | |
| el.attachEvent("onclick", modifieTexte); | |
| } |
This file contains hidden or 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 | |
| $start_request = microtime(true); | |
| require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); | |
| $configuration = ProjectConfiguration::getApplicationConfiguration('front', 'dev', true); | |
| sfContext::createInstance($configuration)->dispatch(); | |
| $enable_graphite = sfConfig::get('app_enable_graphite'); |
This file contains hidden or 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
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |
This file contains hidden or 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
| #!/usr/bin/env php | |
| <?php | |
| require_once("attachmentread.class.php"); | |
| $host="{host:port/params}BOX"; // voir http://fr.php.net/imap_open | |
| $login=""; //imap login | |
| $password=""; //imap password | |
| $savedirpath="./" ; // attachement will save in same directory where scripts run othrwise give abs path | |
| $jk=new MailAttachmentManager($host, $login, $password, $savedirpath); // Creating instance of class#### | |
| ?> |
This file contains hidden or 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 | |
| /** | |
| * @author Florent Viel | |
| */ | |
| class MailAttachmentManager | |
| { | |
| /** | |
| * @var string {host:port\params}BOX voir http://fr.php.net/imap_open | |
| */ |
This file contains hidden or 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 | |
| if (!empty($_GET['p'])) | |
| { | |
| if (is_file($_GET['p'].".php")) | |
| { | |
| include($_GET['p'] . ".php"); | |
| } | |
| else | |
| { | |
| echo 'error'; |
NewerOlder