30.11.2015, 13:17
(
Последний раз редактировалось AbyssMorgan; 05.01.2016 в 16:32.
)
Ready !
PHP код:
new ADM:edi;
edi = ADMx32("test.txt","test.adm","191 12 239 86");
printf("ADM return code %d",ADMToInt(edi));
switch(edi){
case ERROR_CODE_ADM_OK: {
print("Encryption successfully completed");
ADMx32("test.adm","test2.txt","65 244 17 170");
}
case ERROR_CODE_ADM_INPUT: print("Error: input file not exist");
case ERROR_CODE_ADM_OUTPUT: print("Error: output file exist");
case ERROR_CODE_ADM_KEY: print("Error: invalid key");
case ERROR_CODE_ADM_SIZE: print("Error: invalid file size");
}