KinG-InFeT.NeT  
  Login or Registrare
~  Home  ~  Downloads  ~  Your Account  ~  Forums  ~ Web-Links ~
Futuri aggiornamenti!!: Come avrete visto il sito � stato defacciato quindi data la poka sicurezza del CMS provveder� a cambiare interamente cms e a sistemare + la sicurezza
MENU - KinG-InFeT.NeT
· Home
· Acces Point Pwd-Default
· Archivio Exploit
· Ascii Tables
· Button Maker
· Cerca
· Codice Fiscale
· Contatta l'Admin
· Crea Avatar
· Dns IP Range
· Downloads
· Dragon Ball Series
· Flash Games
· Forums
· Genera Pass
· Geo-IP
· GuestBook
· HaCkEr-GaMe
· Home Page Flash Creator
· Image Hosting
· Invia una Fake-Mail
· l'HostName sapendo l'IP
· La migliore Distro Linux
· Lista Comandi UNIX
· Lista Utenti
· logo Creator
· MD5-Cracker Online
· MD5/SHA1 Generate
· Messaggi Privati
· MsN Account List
· My Personal Site
· Naviga Anonimo
· News dal Mondo dell'inf.
· Nick Name Maker
· No-Paste
· NuKe-TooLz
· NukeSentinel
· PaPeRs - TuToRiAl
· Proxy List
· Ricerca Satellitare
· Segnala Questo Sito
· Segnalami un Bug
· Smiley Generation
· Statistiche
· Top 10
· Total Search
· Userbar Creator
· WebLinks
· WordList
· XSS New Cheat List
 
Linkaci

Linkaci:

KinG-InFeT.NeT


 
Tool

Accedi al pannello di

Coding/Decoding - Tool


� By KinG-InFeT

 
Ricerca dominio
Registra il tuo Dominio Su Aruba :



 
Ultimi Download
Gli ultimi 10 Download
· 1: Shellr57
· 2: EVEREST Ultimate Edition v5.01.1700 + SERIALS
· 3: The Metasploit Project - Framework
· 4: Tanable Nessus Network Security Scanner
· 5: EtherApe
· 6: ntop - network top
· 7: Dsniff
· 8: Ettercap
· 9: TCPDUMP/LIBPCAP
· 10: Kismet


Top 10 Download
· 1: MsN-CrAsH [45]
· 2: Doork GooGle [44]
· 3: Acunetix Web Vulnerability Scanner 6 [40]
· 4: Virus Maker v 1.0 - NO LAMER! [38]
· 5: Matrix Effect [35]
· 6: Super Scan 4 [34]
· 7: Neo.Trace.Pro.v3.25 [32]
· 8: Cain & Abel [30]
· 9: FaKe-Mail [27]
· 10: ShellC99 [23]
 
Attack Hack Blocks
Questo è l'elenco degli indirizzi IP bloccati da NukeSentinel(tm).

· 79.46.31.224  - Script
· 79.10.29.101  - Script
· 79.54.99.183  - Script
· 72.51.46.230  - Admin
· 151.62.49.23  - Script
· 62.10.78.76  - Script
· 79.49.140.223  - Union
· 79.47.98.214  - Script
· 79.52.183.175  - Script
· 79.41.179.252  - Script
· 78.142.140.194  - Script
· 79.13.4.35  - Script
· 79.53.176.25  - Script
· 79.53.197.134  - Union
· 80.240.220.83  - CLike
· 79.36.13.104  - CLike
· 88.198.36.73  - Script
· 151.33.145.2  - Union
· 79.43.95.254  - Script
· 79.9.19.62  - Script

NukeSentinel™
 
KinG-InFeT.NeT: Forums

KinG-InFeT.NeT - Ufficial Forum :: Leggi il Topic - [PHP] Calcolatrice (phpgtk 2.x)
 
 FAQFAQ   CercaCerca   Lista degli utentiLista degli utenti   Gruppi utentiGruppi utenti 
 ProfiloProfilo   Messaggi PrivatiMessaggi Privati   LoginLogin 

[PHP] Calcolatrice (phpgtk 2.x)

 
Nuovo Topic   Rispondi    Indice del forum -> Programmazione PHP&MySQL
Precedente :: Successivo  
Autore Messaggio
admin
Founder
Founder


Registrato: Oct 03, 2008
Messaggi: 261

MessaggioInviato: Mer Apr 15, 2009 6:48 pm    Oggetto: [PHP] Calcolatrice (phpgtk 2.x) Rispondi citando

Codice:
<?php
 
$log = 1; //1=abilitato, 0=disabilitato
 
function aggiungi($numero){
global $text1;
    $testo = $text1->get_text();
 
    if (isset($testo)){
        $testo2 = "$testo$numero";
    } else {
        $testo2 = $numero;
    }
 
$text1->set_text($testo2);
}
 
function resetta(){
global $text1;
    $text1->set_text("");
}
 
function risolvi(){
global $log,$text1;
    $testo = $text1->get_text();
    $risultato = eval("return $testo;");
    $text1->set_text($risultato);
 
        if($log == 1){
            $data = date("d.m.y");
            $f = fopen("log.txt", "a+");
            fwrite($f,"Data:$data | Operazione:$testo | Risultato:$risultato\n");
            fclose($f);
        }
}
 
$finestra = new GtkWindow(); //creo la finestra
    $finestra->set_title("Calcolatrice"); //dò il nome alla finestra
    $finestra->set_default_size(250, 300);
    $finestra->connect_simple('destroy', array('gtk','main_quit'));
 
//inputbox
$text1 = new GtkEntry("");
    $text1->modify_bg(Gtk::STATE_NORMAL, GdkColor::parse("#FFCC66"));
 
 
//bottoni
$b1 = new GtkButton("1");
    $b1->connect_simple('clicked', 'aggiungi', '1');
    $b1->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b2 = new GtkButton("2");
    $b2->connect_simple('clicked', 'aggiungi', '2');
    $b2->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b3 = new GtkButton("3");
    $b3->connect_simple('clicked', 'aggiungi', '3');
    $b3->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b4 = new GtkButton("4");
    $b4->connect_simple('clicked', 'aggiungi', '4');
    $b4->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b5 = new GtkButton("5");
    $b5->connect_simple('clicked', 'aggiungi', '5');
    $b5->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b6 = new GtkButton("6");
    $b6->connect_simple('clicked', 'aggiungi', '6');
    $b6->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b7 = new GtkButton("7");
    $b7->connect_simple('clicked', 'aggiungi', '7');
    $b7->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b8 = new GtkButton("8");
    $b8->connect_simple('clicked', 'aggiungi', '8');
    $b8->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b9 = new GtkButton("9");
    $b9->connect_simple('clicked', 'aggiungi', '9');
    $b9->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
$b0 = new GtkButton("0");
    $b0->connect_simple('clicked', 'aggiungi', '0');
    $b0->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
 
 
$reset = new GtkButton("C");
    $reset->connect_simple('clicked', 'resetta');
    $reset->modify_bg(Gtk::STATE_NORMAL, GdkColor::parse("#FFCC66"));
 
$piu = new GtkButton("+");
    $piu->connect_simple('clicked', 'aggiungi', '+');
    $piu->modify_bg(Gtk::STATE_NORMAL, GdkColor::parse("#CCFFFF"));
 
$meno = new GtkButton("-");
    $meno->connect_simple('clicked', 'aggiungi', '-');
    $meno->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFFFF"));
 
$diviso = new GtkButton("/");
    $diviso->connect_simple('clicked', 'aggiungi', '/');
    $diviso->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFFFF"));
 
$per = new GtkButton("X");
    $per->connect_simple('clicked', 'aggiungi', '*');
    $per->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFFFF"));
 
$uguale = new GtkBUtton("=");
    $uguale->connect_simple('clicked', 'risolvi');
    $uguale->modify_bg(Gtk::STATE_NORMAL, GdkCOlor::parse("#CCFF99"));
////////////////
$text = new GtkTable(1,1);
    $text->attach($text1, 0, 1, 1, 2);
 
///////////////
$tabella = new GtkTable(4,4);
 
    $tabella->attach($b1, 0, 1, 1, 2);
    $tabella->attach($b2, 1, 2, 1, 2);
    $tabella->attach($b3, 2, 3, 1, 2);
    $tabella->attach($reset, 3, 4, 1, 2);
 
    $tabella->attach($b4, 0, 1, 2, 3);
    $tabella->attach($b5, 1, 2, 2, 3);
    $tabella->attach($b6, 2, 3, 2, 3);
    $tabella->attach($piu,3, 4, 2, 3);
 
    $tabella->attach($b7, 0, 1, 3, 4);
    $tabella->attach($b8, 1, 2, 3, 4);
    $tabella->attach($b9, 2, 3, 3, 4);
    $tabella->attach($meno,3, 4, 3, 4);
 
    $tabella->attach($b0, 0, 1, 4, 5);
    $tabella->attach($per,1, 2, 4, 5);
    $tabella->attach($diviso,2,3,4,5);
    $tabella->attach($uguale,3,4,4,5);
 
 
//container
$container = new GtkVBox();
    $container->pack_start($text);
    $container->pack_start($tabella);
 
 
$finestra->add($container);
$finestra->show_all();
 
 
Gtk::main();
 
?>


Screen:http://img220.imageshack.us/img220/9759/screenshotpf0.jpg
screen log: http://img135.imageshack.us/img135/5348/screenshotyx0.jpg

By Luruke
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
Mostra prima i messaggi di:   
Nuovo Topic   Rispondi    Indice del forum -> Programmazione PHP&MySQL Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum


CoPyRiGhT 2009 By KinG-InFeT
PhpBB Copiright 2009
Tutti I Diritti Riservati
Forums ©


Valid robots.txt
CoPyRiGhT © 2009/2010 By KinG-InFeT.NeT - Tutti i Diritti Riservati ®

Generazione pagina: 0.07 Secondi

Coder By KinG-InFeT