Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 0:49
tonyjsebastian127-Nov-08 0:49 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 0:55
tonyjsebastian127-Nov-08 0:55 
GeneralRe: How to dynamically create a form in c# Pin
Sần Hải Quang27-Nov-08 1:23
Sần Hải Quang27-Nov-08 1:23 
GeneralRe: How to dynamically create a form in c# Pin
tonyjsebastian127-Nov-08 1:35
tonyjsebastian127-Nov-08 1:35 
GeneralRe: How to dynamically create a form in c# Pin
EliottA27-Nov-08 2:33
EliottA27-Nov-08 2:33 
AnswerRe: How to dynamically create a form in c# Pin
jas0n2328-Nov-08 19:44
jas0n2328-Nov-08 19:44 
AnswerRe: How to dynamically create a form in c# Pin
nelsonpaixao30-Nov-08 4:53
nelsonpaixao30-Nov-08 4:53 
NewsEncode PHP file by Illuminations Tools Pin
Sần Hải Quang26-Nov-08 23:26
Sần Hải Quang26-Nov-08 23:26 
Introduction

Encode PHP is a tool to encode any php file
Every body can use it

Inside The Service

Click to the Encode button:

private void btnEncode_Click(object sender, EventArgs e)<br />
{<br />
    try<br />
    {<br />
        string LogFileName = "Log.txt";<br />
        FileInfo fi = new FileInfo(LogFileName);<br />
        fi.Create().Close();<br />
        StreamWriter writeLog = new FileInfo(LogFileName).CreateText();<br />
        string encodePath = this.txtEncodePath.Text.Trim();<br />
        string decodePath = this.txtDecodePath.Text.Trim();<br />
        if (!(string.IsNullOrEmpty(encodePath) || string.IsNullOrEmpty(decodePath)))<br />
        {<br />
            new IEncodePHP(writeLog).GetFileInDirectory(encodePath, 1, decodePath);<br />
            MessageBox.Show("Congratulation you encode successfully!", "Congratulation");<br />
        }<br />
        else<br />
        {<br />
            MessageBox.Show("Can not encode the source path!", "Warning");<br />
        }<br />
        writeLog.Close();<br />
    }<br />
    catch (Exception ex)<br />
    {<br />
        MessageBox.Show("Can not encode the source path: " + ex.Message, "Warning");<br />
    }<br />
}


Encode Method:

private string EncodePHP(string strEncoded)<br />
{<br />
    string variable1 = IRandom.GetRandomString(4, false, false);<br />
    string variable2 = IRandom.GetRandomString(3, false, false);<br />
    string variable3 = IRandom.GetRandomString(2, false, false);<br />
    string startVariable = " $" + variable1 + " = '";<br />
    string endVariable = "';";<br />
    string strDecode = "$" + variable3 + " = '$" + variable2 + " = base64_decode($" + variable1 + "); eval($" + variable2 + ");';";<br />
    string strEval = "eval($" + variable3 + ");";<br />
    strEncoded = startVariable + strEncoded + endVariable + strDecode + strEval;<br />
    return strEncoded;<br />
}

GeneralRe: Encode PHP file by Illuminations Tools Pin
Christian Graus26-Nov-08 23:34
protectorChristian Graus26-Nov-08 23:34 
GeneralRe: Encode PHP file by Illuminations Tools Pin
Sần Hải Quang27-Nov-08 0:06
Sần Hải Quang27-Nov-08 0:06 
GeneralRe: Encode PHP file by Illuminations Tools Pin
leppie27-Nov-08 0:50
leppie27-Nov-08 0:50 
QuestionP/Invoke Exceptions Pin
HosamAly26-Nov-08 23:13
HosamAly26-Nov-08 23:13 
AnswerRe: P/Invoke Exceptions Pin
Christian Graus26-Nov-08 23:15
protectorChristian Graus26-Nov-08 23:15 
AnswerRe: P/Invoke Exceptions Pin
Mark Salsbery28-Nov-08 13:28
Mark Salsbery28-Nov-08 13:28 
GeneralRe: P/Invoke Exceptions Pin
HosamAly28-Nov-08 20:57
HosamAly28-Nov-08 20:57 
Questioncalling another compiler from c# Pin
tonyjsebastian126-Nov-08 23:09
tonyjsebastian126-Nov-08 23:09 
AnswerRe: calling another compiler from c# Pin
Christian Graus26-Nov-08 23:10
protectorChristian Graus26-Nov-08 23:10 
QuestionGetActiveObject doesn't work when run from ASP. Pin
Zyraph26-Nov-08 23:07
Zyraph26-Nov-08 23:07 
AnswerRe: GetActiveObject doesn't work when run from ASP. Pin
Christian Graus26-Nov-08 23:09
protectorChristian Graus26-Nov-08 23:09 
GeneralRe: GetActiveObject doesn't work when run from ASP. Pin
Zyraph27-Nov-08 14:16
Zyraph27-Nov-08 14:16 
Question.net remoting Pin
krinaljariwala26-Nov-08 22:46
krinaljariwala26-Nov-08 22:46 
AnswerRe: .net remoting Pin
tonyjsebastian126-Nov-08 23:03
tonyjsebastian126-Nov-08 23:03 
GeneralRe: .net remoting Pin
krinaljariwala26-Nov-08 23:13
krinaljariwala26-Nov-08 23:13 
GeneralRe: .net remoting Pin
leppie27-Nov-08 0:43
leppie27-Nov-08 0:43 
GeneralRe: .net remoting Pin
Harvey Saayman27-Nov-08 1:52
Harvey Saayman27-Nov-08 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.