Utiliser un script
Résolu/Fermé
xiberia16
Messages postés
475
Date d'inscription
vendredi 26 décembre 2008
Statut
Membre
Dernière intervention
26 mai 2014
-
2 avril 2009 à 11:45
dje-dje Messages postés 10415 Date d'inscription mardi 6 janvier 2004 Statut Modérateur Dernière intervention 28 janvier 2011 - 6 avril 2009 à 11:37
dje-dje Messages postés 10415 Date d'inscription mardi 6 janvier 2004 Statut Modérateur Dernière intervention 28 janvier 2011 - 6 avril 2009 à 11:37
A voir également:
- Utiliser un script
- Script vidéo youtube - Guide
- Comment utiliser chromecast - Guide
- Comment utiliser wetransfer gratuit ? - Guide
- Utiliser tablette comme ecran - Guide
- Utiliser iphone comme webcam - Guide
3 réponses
dje-dje
Messages postés
10415
Date d'inscription
mardi 6 janvier 2004
Statut
Modérateur
Dernière intervention
28 janvier 2011
757
2 avril 2009 à 12:08
2 avril 2009 à 12:08
Ce qu'il y a entre les 2 balises codes doit être copié dans un fichier texte. (Dans monscript.txt par exemple)
L'extension du fichier texte doit être remplacé par une extension vbs (Dans mon script.vbs par exemple)
Ensuite tu pourras faire un double clic pour executer le script.
L'extension du fichier texte doit être remplacé par une extension vbs (Dans mon script.vbs par exemple)
Ensuite tu pourras faire un double clic pour executer le script.
xiberia16
Messages postés
475
Date d'inscription
vendredi 26 décembre 2008
Statut
Membre
Dernière intervention
26 mai 2014
14
2 avril 2009 à 16:58
2 avril 2009 à 16:58
ok, merci beaucoup :)
xiberia16
Messages postés
475
Date d'inscription
vendredi 26 décembre 2008
Statut
Membre
Dernière intervention
26 mai 2014
14
3 avril 2009 à 13:02
3 avril 2009 à 13:02
je n'y connais rien en script, vous pouvez m'aider, par exemple pour celui là, je dois faire comment :s http://www.laboratoire-microsoft.org/scripts/15987/
ou çà, je comprend rien :s :(
# <?php
#
# if (isset($_POST['id'])) {
# if ($_POST['id'] == "action") {
#
# ## Heure d'hiver: time() + (1 * 60 * 60);
# ## Heure d'été: time() + (2 * 60 * 60);
#
# $tempsfr = time() + (2 * 60 * 60);
# $tpsactu = gmdate("d-m-Y H:i", $tempsfr);
# $temps_format = gmdate("_d-m-Y_H\hi\ms\s", $tempsfr);
# $jouractu = gmdate("d", $tempsfr);
# $moisactu = gmdate("m", $tempsfr);
# $anneeactu = gmdate("Y", $tempsfr);
# $heureactu = gmdate("H", $tempsfr);
# $minuteactu = gmdate("i", $tempsfr);
# $minuteactu = gmdate("s", $tempsfr);
#
#
#
# $skyblog_url_pre1 = strtolower($_POST['skyblog']);
#
# $skyblog_url_pre2 = str_replace("http://www.", "", $skyblog_url_pre1);
# $skyblog_url_pre3 = str_replace(strstr($skyblog_url_pre2, ".skyblog."), "", $skyblog_url_pre2);
# $skyblog_url_pre3 = str_replace(strstr($skyblog_url_pre3, ".skyrock."), "", $skyblog_url_pre3);
# $skyblog_url_pre4 = str_replace(strstr($skyblog_url_pre3, ".sky"), "", $skyblog_url_pre3);
#
# $skyblog_url_pre5 = str_replace("http://", "", $skyblog_url_pre4);
# $skyblog_url_pre6 = str_replace("www.", "", $skyblog_url_pre5);
# $skyblog_url_pre7 = str_replace(strstr($skyblog_url_pre6, "/"), "", $skyblog_url_pre6);
# $skyblog_url_pre8 = str_replace(strstr($skyblog_url_pre7, ":"), "", $skyblog_url_pre7);
#
# $skyblog_url_pseudo = $skyblog_url_pre8;
# $skyblog_url = "http://".$skyblog_url_pseudo.".skyrock.com/";
#
#
# echo "<html><head>
# <title>Aspirateur de Skyblog v2.3: ".$skyblog_url."</title>
# <SCRIPT language=javascript>
# function s() {
# window.scrollBy(0,1000);
# }
# var timer=setInterval(\"s()\", 100);
# </SCRIPT>
#
# </head>
# <body><font face=\"Arial\" size=\"2\">";
#
# $nom_dossier_blogs = "skyblogs";
#
# echo "Skyblog à télécharger: ".$skyblog_url."<br>";
#
# if (!is_dir($nom_dossier_blogs)) { mkdir ($nom_dossier_blogs); }
# if (!is_dir($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format)) { mkdir ($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format); }
# if (!is_dir($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/pics')) { mkdir ($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/pics'); }
#
# $filelocationclef = $nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/index.html';
# $newfile = fopen($filelocationclef,"w");
# $filelocationclef2_1 = $nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/1.html';
# $newfile2_1 = fopen($filelocationclef2_1,"w");
#
# $handle = fopen($skyblog_url, "rb");
# $pre_contents = ""; while (!feof($handle)) { $pre_contents .= fread($handle, 8192); }
# fclose($handle);
#
#
# $id_skynaute_1 = strstr($pre_contents, "id_skynaute");
# $id_skynaute_2 = str_replace(strstr($id_skynaute_1, ";"), "", $id_skynaute_1);
# $id_skynaute_3 = str_replace("id_skynaute", "", $id_skynaute_2);
# $id_skynaute_4 = str_replace(" ", "", $id_skynaute_3);
# $id_skynaute = str_replace("=", "", $id_skynaute_4);
#
#
# $pre2_contents_2 = str_replace($skyblog_url."photo.html?id_article=", "PREURLX", $pre_contents);
# $pre3_contents_2 = str_replace("DESACTIVE.jpg&", '.jpg" xnsrpa="', $pre2_contents_2);
# $pre4_contents_2 = str_replace('DESACTIVE<dd id="pseudo_value"> ', '<dd id="pseudo_value"><iframe height="0" width="0" frameborder="0">', $pre3_contents_2);
# $pre5_contents_2 = str_replace("DESACTIVE<dt> Description", "</iframe> <a href=\"http://www.skyblog.com/admBloger/envoyer.phtml?id=".$id_skynaute."\" onclick=\"window.open(this.href,'envoyermessage','location=no,toolbar=yes,width=690,height=560'); return false;\">".$skyblog_url_pseudo."</a> <dt> Description", $pre4_contents_2);
# $pre6_contents_2 = str_replace(' onclick="openAddCommentWindow(this); return false;">Ajouter un commentaire</a>', '>', $pre5_contents_2);
# $pre7_contents_2 = str_replace('<a rel="nofollow" href="http://www.skyblog.com/public/add_comment.php?id_skynaute=', '<!', $pre6_contents_2);
# $pre8_contents_2 = str_replace("&id_article=", '£££', $pre7_contents_2);
# $pre9_contents_2 = str_replace("DESACTIVE&id_template=", "_comment_1.html\" onclick=\"window.open(this.href,'photo','location=no,toolbar=no,scrollbars=yes,width=690,height=610'); return false;\">Commentaires (backup)</a><!", $pre8_contents_2);
# $pre10_contents_2 = str_replace("http://blog.skyrock.com/js/video.js", "video.js", $pre9_contents_2);
# $pre11_contents_2 = str_replace("http://blog.skyrock.com/banners/part1.js", "rien.js", $pre10_contents_2);
# $pre11_contents_2_2 = str_replace("http://blog.skyrock.com/banners/part2.js", "rien.js", $pre11_contents_2);
# $pre11_contents_2_3 = str_replace("https://www.skyrock.com/stats/stats.js", "rien.js", $pre11_contents_2_2);
# $pre11_contents_2_4 = str_replace("http://blog.skyrock.com/stats/stats2.js", "rien.js", $pre11_contents_2_3);
# $pre12_contents_2 = str_replace("http://blog.skyrock.com/stats/tagstats.js?", "rien.js", $pre11_contents_2_4);
# $contents = str_replace(",resizable=yes'", ",resizable=yes,width=690,height=530'", $pre12_contents_2);
# $contents_FILTR_INDEX = $contents;
svp, je ne comprends vraiment rien...
ou çà, je comprend rien :s :(
# <?php
#
# if (isset($_POST['id'])) {
# if ($_POST['id'] == "action") {
#
# ## Heure d'hiver: time() + (1 * 60 * 60);
# ## Heure d'été: time() + (2 * 60 * 60);
#
# $tempsfr = time() + (2 * 60 * 60);
# $tpsactu = gmdate("d-m-Y H:i", $tempsfr);
# $temps_format = gmdate("_d-m-Y_H\hi\ms\s", $tempsfr);
# $jouractu = gmdate("d", $tempsfr);
# $moisactu = gmdate("m", $tempsfr);
# $anneeactu = gmdate("Y", $tempsfr);
# $heureactu = gmdate("H", $tempsfr);
# $minuteactu = gmdate("i", $tempsfr);
# $minuteactu = gmdate("s", $tempsfr);
#
#
#
# $skyblog_url_pre1 = strtolower($_POST['skyblog']);
#
# $skyblog_url_pre2 = str_replace("http://www.", "", $skyblog_url_pre1);
# $skyblog_url_pre3 = str_replace(strstr($skyblog_url_pre2, ".skyblog."), "", $skyblog_url_pre2);
# $skyblog_url_pre3 = str_replace(strstr($skyblog_url_pre3, ".skyrock."), "", $skyblog_url_pre3);
# $skyblog_url_pre4 = str_replace(strstr($skyblog_url_pre3, ".sky"), "", $skyblog_url_pre3);
#
# $skyblog_url_pre5 = str_replace("http://", "", $skyblog_url_pre4);
# $skyblog_url_pre6 = str_replace("www.", "", $skyblog_url_pre5);
# $skyblog_url_pre7 = str_replace(strstr($skyblog_url_pre6, "/"), "", $skyblog_url_pre6);
# $skyblog_url_pre8 = str_replace(strstr($skyblog_url_pre7, ":"), "", $skyblog_url_pre7);
#
# $skyblog_url_pseudo = $skyblog_url_pre8;
# $skyblog_url = "http://".$skyblog_url_pseudo.".skyrock.com/";
#
#
# echo "<html><head>
# <title>Aspirateur de Skyblog v2.3: ".$skyblog_url."</title>
# <SCRIPT language=javascript>
# function s() {
# window.scrollBy(0,1000);
# }
# var timer=setInterval(\"s()\", 100);
# </SCRIPT>
#
# </head>
# <body><font face=\"Arial\" size=\"2\">";
#
# $nom_dossier_blogs = "skyblogs";
#
# echo "Skyblog à télécharger: ".$skyblog_url."<br>";
#
# if (!is_dir($nom_dossier_blogs)) { mkdir ($nom_dossier_blogs); }
# if (!is_dir($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format)) { mkdir ($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format); }
# if (!is_dir($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/pics')) { mkdir ($nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/pics'); }
#
# $filelocationclef = $nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/index.html';
# $newfile = fopen($filelocationclef,"w");
# $filelocationclef2_1 = $nom_dossier_blogs."/".$skyblog_url_pseudo.'.skyblog.com'.$temps_format.'/1.html';
# $newfile2_1 = fopen($filelocationclef2_1,"w");
#
# $handle = fopen($skyblog_url, "rb");
# $pre_contents = ""; while (!feof($handle)) { $pre_contents .= fread($handle, 8192); }
# fclose($handle);
#
#
# $id_skynaute_1 = strstr($pre_contents, "id_skynaute");
# $id_skynaute_2 = str_replace(strstr($id_skynaute_1, ";"), "", $id_skynaute_1);
# $id_skynaute_3 = str_replace("id_skynaute", "", $id_skynaute_2);
# $id_skynaute_4 = str_replace(" ", "", $id_skynaute_3);
# $id_skynaute = str_replace("=", "", $id_skynaute_4);
#
#
# $pre2_contents_2 = str_replace($skyblog_url."photo.html?id_article=", "PREURLX", $pre_contents);
# $pre3_contents_2 = str_replace("DESACTIVE.jpg&", '.jpg" xnsrpa="', $pre2_contents_2);
# $pre4_contents_2 = str_replace('DESACTIVE<dd id="pseudo_value"> ', '<dd id="pseudo_value"><iframe height="0" width="0" frameborder="0">', $pre3_contents_2);
# $pre5_contents_2 = str_replace("DESACTIVE<dt> Description", "</iframe> <a href=\"http://www.skyblog.com/admBloger/envoyer.phtml?id=".$id_skynaute."\" onclick=\"window.open(this.href,'envoyermessage','location=no,toolbar=yes,width=690,height=560'); return false;\">".$skyblog_url_pseudo."</a> <dt> Description", $pre4_contents_2);
# $pre6_contents_2 = str_replace(' onclick="openAddCommentWindow(this); return false;">Ajouter un commentaire</a>', '>', $pre5_contents_2);
# $pre7_contents_2 = str_replace('<a rel="nofollow" href="http://www.skyblog.com/public/add_comment.php?id_skynaute=', '<!', $pre6_contents_2);
# $pre8_contents_2 = str_replace("&id_article=", '£££', $pre7_contents_2);
# $pre9_contents_2 = str_replace("DESACTIVE&id_template=", "_comment_1.html\" onclick=\"window.open(this.href,'photo','location=no,toolbar=no,scrollbars=yes,width=690,height=610'); return false;\">Commentaires (backup)</a><!", $pre8_contents_2);
# $pre10_contents_2 = str_replace("http://blog.skyrock.com/js/video.js", "video.js", $pre9_contents_2);
# $pre11_contents_2 = str_replace("http://blog.skyrock.com/banners/part1.js", "rien.js", $pre10_contents_2);
# $pre11_contents_2_2 = str_replace("http://blog.skyrock.com/banners/part2.js", "rien.js", $pre11_contents_2);
# $pre11_contents_2_3 = str_replace("https://www.skyrock.com/stats/stats.js", "rien.js", $pre11_contents_2_2);
# $pre11_contents_2_4 = str_replace("http://blog.skyrock.com/stats/stats2.js", "rien.js", $pre11_contents_2_3);
# $pre12_contents_2 = str_replace("http://blog.skyrock.com/stats/tagstats.js?", "rien.js", $pre11_contents_2_4);
# $contents = str_replace(",resizable=yes'", ",resizable=yes,width=690,height=530'", $pre12_contents_2);
# $contents_FILTR_INDEX = $contents;
svp, je ne comprends vraiment rien...
dje-dje
Messages postés
10415
Date d'inscription
mardi 6 janvier 2004
Statut
Modérateur
Dernière intervention
28 janvier 2011
757
6 avril 2009 à 11:37
6 avril 2009 à 11:37
C'est un script PHP.
Il faut le faire tourner sur un serveur web avec PHP installé.
Il faut le faire tourner sur un serveur web avec PHP installé.