1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HELP in analyzing an original script

Discussion in 'Programming' started by webster, Sep 22, 2009.

  1. webster

    webster New Member

    Joined:
    Sep 22, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    hi ya all,

    i am looking for analyzing this folowing script, it is not a familiar language, but a one that developed originally in a software development firm:

    does anybody understand what the following script doing?

    Code:
    function walla.text(a,b) {
        local cntr;
        local x,y;
        local c;
        local d;             
                        
        for(cntr=0;cntr<b.length;cntr++) {
            x=0; y=0; c='`;
            
            while((x=a.indexOf(b[cntr].f,y))>=0) {
    
                d=b[cntr].r;
                if (x==0) c=c|b[cntr].b|d|b[cntr].a;
                                else c=c|a.substring(y,x)|b[cntr].b|d|b[cntr].a;
                y=x+b[cntr].f.length;
                }
            a=c|a.substring(y,a.length);
            }
        return(a);
    }
    
                                                    
    function walla.text.rule(rules,f,b,r,a) {
        rules.length=rules.length+0;
        rules[rules.length].f=f;
        rules[rules.length].b=b;
        rules[rules.length].r=r;
        rules[rules.length].a=a;
        rules.length++;
    }
    any help would be appreciated.

    thanks
     
  2. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Looks like JavaScript, but I need some more time to analyze it completely.
     
  3. webster

    webster New Member

    Joined:
    Sep 22, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    i agree - it looks like some variation of javascript...

    thanks
     

Share This Page