Changeset 38428 for titan/titan/ca.h


Ignore:
Timestamp:
08/30/16 18:54:56 (7 years ago)
Author:
gost
Message:

[titan] fix pin save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/ca.h

    r38396 r38428  
    477477                                int i = 0;
    478478                                for(i = 0; i < alen; i++) tmpstr1 = ostrcat(tmpstr1, "0", 1, 0);
     479                                if(dvbnode->caslot->connid > 0)
     480                                {
     481                                        tmpstr2 = ostrcat(tmpstr2, "ca", 1, 0);
     482                                  tmpstr2 = ostrcat(tmpstr2, oitoa(dvbnode->caslot->connid - 1), 1, 1);
     483                                  tmpstr2 = ostrcat(tmpstr2, "_pin", 1, 0);
     484                                }
    479485                                if(ostrstr(str, "Bitte geben Sie Ihre Jugendschutz-PIN ein") != NULL)
    480486                                {
    481                                   if(getconfig("ca0_pin", NULL) != NULL)
     487                                  if(getconfig(tmpstr2, NULL) != NULL)
    482488                                  {
    483489                                        ca0autopin = 1;
    484                                         ostrcat(tmpstr, getconfig("ca0_pin", NULL), 0, 0);
     490                                        tmpstr = ostrcat(tmpstr, getconfig(tmpstr2, NULL), 1, 0);
    485491                                  }
    486                                   tmpstr2 = ostrcat(tmpstr2, "ca0_pin", 1, 0);
    487492                                }
    488493                                if(ostrstr(str, "Bitte versuchen Sie es erneut") != NULL)
    489                                         tmpstr2 = ostrcat(tmpstr2, "ca0_pin", 1, 0);
     494                                {
     495                                        delconfig(tmpstr2);
     496                                }
    490497                                if(ca0autopin == 0)     
    491498                                        tmpstr = textinputsave(str, tmpstr1, tmpstr2);
Note: See TracChangeset for help on using the changeset viewer.