first commit
Browse files- .dockerignore +6 -0
- .github/workflows/autocommit.yaml +28 -0
- .github/workflows/cleanup.yaml +20 -0
- .github/workflows/deploy.yaml +28 -0
- .gitignore +6 -0
- Dockerfile +24 -0
- Dockerfile.txt +9 -0
- Procfile +1 -0
- composer.json +1 -0
- d.sh +5 -0
- s.sh +0 -0
- web/admin.php +0 -0
- web/api-sites.php +1450 -0
- web/index.php +0 -0
- web/name.php +0 -0
- web/number.php +0 -0
.dockerignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.git
|
2 |
+
.gitignore
|
3 |
+
Dockerfile
|
4 |
+
.dockerignore
|
5 |
+
/vendor/
|
6 |
+
composer.phar
|
.github/workflows/autocommit.yaml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Keep Repository Active
|
2 |
+
|
3 |
+
on:
|
4 |
+
schedule:
|
5 |
+
- cron: '0 0 */28 * *'
|
6 |
+
|
7 |
+
jobs:
|
8 |
+
create-empty-commit:
|
9 |
+
runs-on: ubuntu-latest
|
10 |
+
|
11 |
+
permissions:
|
12 |
+
contents: write
|
13 |
+
|
14 |
+
steps:
|
15 |
+
- name: Checkout repository
|
16 |
+
uses: actions/checkout@v4
|
17 |
+
with:
|
18 |
+
ref: main
|
19 |
+
|
20 |
+
- name: Configure Git
|
21 |
+
run: |
|
22 |
+
git config user.name 'Automatic action'
|
23 |
+
git config user.email 'noreply@koyeb.com'
|
24 |
+
|
25 |
+
- name: Create an empty commit and push
|
26 |
+
run: |
|
27 |
+
git commit --allow-empty -m "Automated empty commit to keep repo active" -m "This commit is generated automatically every few weeks to prevent GitHub Actions from being disabled due to inactivity."
|
28 |
+
git push origin main
|
.github/workflows/cleanup.yaml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Cleanup Koyeb application
|
2 |
+
|
3 |
+
on:
|
4 |
+
delete:
|
5 |
+
branches:
|
6 |
+
- '*'
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
cleanup:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
steps:
|
12 |
+
- name: Install and configure the Koyeb CLI
|
13 |
+
uses: koyeb-community/koyeb-actions@v2
|
14 |
+
with:
|
15 |
+
api_token: "${{ secrets.KOYEB_EXAMPLES_APPS_TOKEN }}"
|
16 |
+
|
17 |
+
- name: Cleanup Koyeb application
|
18 |
+
uses: koyeb/action-git-deploy/cleanup@v1
|
19 |
+
with:
|
20 |
+
app-name: php-${{ github.event.ref }}
|
.github/workflows/deploy.yaml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Build and deploy the application to Koyeb
|
2 |
+
|
3 |
+
on:
|
4 |
+
schedule:
|
5 |
+
- cron: '00 9 * * *'
|
6 |
+
push:
|
7 |
+
branches:
|
8 |
+
- '*'
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
deploy:
|
12 |
+
concurrency:
|
13 |
+
group: "${{ github.ref_name }}"
|
14 |
+
cancel-in-progress: true
|
15 |
+
runs-on: ubuntu-latest
|
16 |
+
steps:
|
17 |
+
- name: Install and configure the Koyeb CLI
|
18 |
+
uses: koyeb-community/koyeb-actions@v2
|
19 |
+
with:
|
20 |
+
api_token: "${{ secrets.KOYEB_EXAMPLES_APPS_TOKEN }}"
|
21 |
+
|
22 |
+
- name: Build and deploy the application
|
23 |
+
uses: koyeb/action-git-deploy@v1
|
24 |
+
with:
|
25 |
+
app-name: php-${{ github.ref_name }}
|
26 |
+
service-ports: "8000:http"
|
27 |
+
service-routes: "/:8000"
|
28 |
+
skip-cache: true
|
.gitignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
composer.phar
|
2 |
+
/vendor/
|
3 |
+
|
4 |
+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
|
5 |
+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
|
6 |
+
# composer.lock
|
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official PHP image with Apache
|
2 |
+
FROM php:8.1-apache
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /var/www/html
|
6 |
+
|
7 |
+
# Copy the current directory contents into the container
|
8 |
+
COPY . /var/www/html
|
9 |
+
|
10 |
+
RUN ls
|
11 |
+
# Install additional PHP extensions (if needed)
|
12 |
+
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
13 |
+
|
14 |
+
# Give the Apache user proper permissions to the project directory
|
15 |
+
RUN chown -R www-data:www-data /var/www/html
|
16 |
+
|
17 |
+
# Enable Apache mod_rewrite (if using clean URLs)
|
18 |
+
RUN a2enmod rewrite
|
19 |
+
|
20 |
+
# Expose port 80 for the web server
|
21 |
+
EXPOSE 80
|
22 |
+
|
23 |
+
# Start Apache in the foreground
|
24 |
+
CMD ["apache2-foreground"]
|
Dockerfile.txt
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM php:apache
|
2 |
+
|
3 |
+
WORKDIR /var/www/html
|
4 |
+
COPY web .
|
5 |
+
|
6 |
+
ENV PORT=8000
|
7 |
+
EXPOSE ${PORT}
|
8 |
+
|
9 |
+
RUN sed -i 's/Listen 80/Listen ${PORT}/' /etc/apache2/ports.conf
|
Procfile
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
web: heroku-php-nginx web/
|
composer.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{}
|
d.sh
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
git add .
|
3 |
+
git commit -m "first commit"
|
4 |
+
|
5 |
+
git push
|
s.sh
ADDED
File without changes
|
web/admin.php
ADDED
The diff for this file is too large to render.
See raw diff
|
|
web/api-sites.php
ADDED
@@ -0,0 +1,1450 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
#=========={api}==========#
|
3 |
+
$site=$_GET["site"];
|
4 |
+
$app=$_GET["app"];
|
5 |
+
$country=$_GET["country"];
|
6 |
+
$operator=$_GET["operator"];
|
7 |
+
$number=$_GET["number"];
|
8 |
+
$idnumber=$_GET["idnumber"];
|
9 |
+
$smsnum=$_GET["smsnum"];
|
10 |
+
$allsms=$_GET["allsms"];
|
11 |
+
include("name.php");
|
12 |
+
$APPS = json_decode(file_get_contents("data/api/apps.json"),true);
|
13 |
+
#________ALL
|
14 |
+
$api_key = $APPS[$site][api_key];
|
15 |
+
$Username = $APPS[$site][Username];
|
16 |
+
$Password = $APPS[$site][Password];
|
17 |
+
if($site=="5sim"){
|
18 |
+
$zx=$o_co['country'][$country];
|
19 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["whatsapp","telegram","facebook","instagram","twitter","tiktok","google","imo","viber","snapchat","netflix","haraj","other"],$app);
|
20 |
+
}
|
21 |
+
if($site=="tempnum"){
|
22 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au",""],$app);
|
23 |
+
}
|
24 |
+
if($site=="man"){
|
25 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au",""],$app);
|
26 |
+
}
|
27 |
+
if($site=="vak"){
|
28 |
+
$zx=$o_co['country3'][$country];
|
29 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","tk","gl","","","","nf","",""],$app);
|
30 |
+
}
|
31 |
+
if($site=="acktiwator"){
|
32 |
+
$zx=$o_co['country4'][$country];
|
33 |
+
$app_price = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["whatsapp","telegram","facebook","instagram","Twitter","TikTok/Douyin","Gmail","Imo","viber","Snapchat","Netflix","",""],$app);
|
34 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["7","6","13","16","23","209","9","115","5","42","224","",""],$app);
|
35 |
+
}
|
36 |
+
if($site=="pvapins"){
|
37 |
+
$zx=$o_co['country'][$country];
|
38 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["Whatsapp","Telegram","Facebook","Instagram","Twitter","TikTok","Google-Pay","Imo","Viber","","Netflix","",""],$app);
|
39 |
+
}
|
40 |
+
if($site=="sms3t"){
|
41 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au",""],$app);
|
42 |
+
}
|
43 |
+
if($site=="onlinesim"){
|
44 |
+
$zx=$o_co['country6'][$country];
|
45 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["whatsapp","telegram","facebook","instagram","twitter","tiktok","google","imo","viber","snapchat","netflix","haraj",""],$app);
|
46 |
+
}
|
47 |
+
if($site=="supersmstech"){
|
48 |
+
$zx=$o_co['country7'][$country];
|
49 |
+
$app_price = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","",""],$app);
|
50 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["2","5","7","24","22","82","6","27","18","134","21","",""],$app);
|
51 |
+
}
|
52 |
+
if($site=="viotp"){
|
53 |
+
$zx=$o_co['country8'][$country];
|
54 |
+
$app_price = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","","nf","","ot"],$app);
|
55 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["45","19","7","36","49","29","3","207","105","","357","","276"],$app);
|
56 |
+
}
|
57 |
+
if($site=="simsms"){
|
58 |
+
$zx=$o_co['country9'][$country];
|
59 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["opt20","opt29","opt2","opt16","opt1","opt104","opt41","opt111","opt11","opt90","opt101","",""],$app);
|
60 |
+
}
|
61 |
+
if($site=="grizzly"){
|
62 |
+
$zx=$o_co['country10'][$country];
|
63 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","tk","go","im","vi","","nf","",""],$app);
|
64 |
+
}
|
65 |
+
if($site=="smscode"){
|
66 |
+
$zx=$o_co['country11'][$country];
|
67 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["14","5","9","4","20","36","10","48","8","235","19","","196"],$app);
|
68 |
+
}
|
69 |
+
if($site=="tiger"){
|
70 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","","nf","","ot"],$app);
|
71 |
+
}
|
72 |
+
if($site=="2ndline"){
|
73 |
+
$zx=str_replace(["13"],["12"],$country);
|
74 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["331","269","275","287","283","370","292","","346","482","294","","268"],$app);
|
75 |
+
}
|
76 |
+
if($site=="store"){
|
77 |
+
$zx=$o_co['country14'][$country];
|
78 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","","go","","vi","","nf","",""],$app);
|
79 |
+
}
|
80 |
+
if($site=="fastpva"){
|
81 |
+
$zx=$o_co['country15'][$country];
|
82 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["Whatsapp","Telegram","Facebook","Instagram","Twitter","TikTok","Google","Imo","Viber","Snapchat","Netflix","Haraj",""],$app);
|
83 |
+
}
|
84 |
+
if($site=="dropsms"){
|
85 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","","fb","ig","","","","","","","","",""],$app);
|
86 |
+
}
|
87 |
+
if($site=="24sms7"){
|
88 |
+
$zx=$o_co['country17'][$country];
|
89 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","te"],$app);
|
90 |
+
}
|
91 |
+
if($site=="sellotp"){
|
92 |
+
$app_price = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["wa","tg","fb","ig","tw","lf","go","im","vi","","nf","","ot"],$app);
|
93 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["24","12","7","22","26","18","3","83","49","","133","","98"],$app);
|
94 |
+
}
|
95 |
+
if($site=="duraincloud"){
|
96 |
+
$zx=$o_co['country18'][$country];
|
97 |
+
$app = str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf","au","ot"],["0107","0257","0013","0281","0005","0234","0098","0883","0029","0605","0208","0534",""],$app);
|
98 |
+
}
|
99 |
+
#________OPERATOR
|
100 |
+
$ary1=["17","18","19","20"];
|
101 |
+
$ary2=["21","22","23","24","25","43","44","45","46","47"];
|
102 |
+
$ary3=["26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42"];
|
103 |
+
$ary4=["48","49","50","51","52"];
|
104 |
+
$ary5=["53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92"];
|
105 |
+
if($operator >= 1 and $operator <= 16 or $operator == 93 or $operator == 151){
|
106 |
+
$operator="any";
|
107 |
+
}elseif(in_array($operator,$ary1)){
|
108 |
+
$operator = str_replace(["17","18","19","20"],["mobifone","vietnamobile","viettel","vinaphone"],$operator);
|
109 |
+
}elseif(in_array($operator,$ary2)){
|
110 |
+
$operator = str_replace(["21","22","23","24","25","43","44","45","46","47"],["MOBIFONE","VINAPHONE","VIETTEL","VIETNAMOBILE","ITELECOM","MOBIFONE","VINAPHONE","VIETTEL","VIETNAMOBILE","ITELECOM"],$operator);
|
111 |
+
}elseif(in_array($operator,$ary3)){
|
112 |
+
$operator = str_replace(["26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42"],["0","1","2","3","4","5","6","8","9","10","11","12","13","14","15","16","17"],$operator);
|
113 |
+
}elseif(in_array($operator,$ary4)){
|
114 |
+
$operator = str_replace(["48","49","50","51","52"],["1","3","4","5","7"],$operator);
|
115 |
+
}elseif(in_array($operator,$ary5)){
|
116 |
+
$operator = str_replace(["53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92"],["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","g","k","l","m","n"],$operator);
|
117 |
+
$operator = str_replace(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","g","k","l","m","n"],["3819","3543","3528","3328","2001","3825","3521","3326","2940","2919","3832","3744","3375","3262","3128","3826","3749","3484","3333","3302","2003","3475","3391","3335","2012","3862","3385","2624","3820","3497","3312","3890","3392","2866","3858","3515","3191","3189","3999","2929"],$operator);
|
118 |
+
}else{
|
119 |
+
$operator = str_replace(["94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150"],["019","activ","altel","beeline","claro","ee","globe","kcell","lycamobile","matrix","megafon","mts","orange","pildyk","play","redbullmobile","rostelecom","smart","sun","tele2","three","tigo","tmobile","tnt","virginmobile","virtual2","virtual4","virtual5","virtual7","virtual8","virtual12","virtual15","virtual16","virtual17","virtual18","virtual19","virtual20","virtual21","virtual22","virtual23","virtual24","virtual25","virtual26","virtual27","virtual28","virtual29","virtual30","virtual31","virtual32","virtual33","virtual34","virtual35","virtual36","virtual37","vodafone","yota","zz"],$operator);
|
120 |
+
}
|
121 |
+
#=========={جلب الرقم}==========#
|
122 |
+
if($_GET["action"] == "getNum"){
|
123 |
+
if($site=="5sim"){
|
124 |
+
$fali = array("no free phones","not enough user balance","not enough rating","select country","select operator","bad country","bad operator","no product","server offline","internal error");
|
125 |
+
$ch = curl_init();
|
126 |
+
|
127 |
+
curl_setopt($ch, CURLOPT_URL, "https://5sim.biz/v1/user/buy/activation/$zx/$operator/$app");
|
128 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
129 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
130 |
+
|
131 |
+
|
132 |
+
$headers = array();
|
133 |
+
$headers[] = 'Authorization: Bearer ' . $api_key;
|
134 |
+
$headers[] = 'Accept: application/json';
|
135 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
136 |
+
|
137 |
+
$result = curl_exec($ch);
|
138 |
+
if (curl_errno($ch)) {
|
139 |
+
echo 'Error:' . curl_error($ch);
|
140 |
+
}
|
141 |
+
curl_close($ch);
|
142 |
+
$no=$result;
|
143 |
+
$api = json_decode($result,1);
|
144 |
+
$idnumber = $api[id];
|
145 |
+
$number = $api[phone];
|
146 |
+
if(in_array($no,$fali)){
|
147 |
+
$number= $number;
|
148 |
+
}else{
|
149 |
+
$number = null;
|
150 |
+
}
|
151 |
+
if($number==null){
|
152 |
+
$status=0;
|
153 |
+
}else{
|
154 |
+
$status=200;
|
155 |
+
}
|
156 |
+
$v=$api[expires];
|
157 |
+
$ex_time= explode(":",$v);
|
158 |
+
$v=$ex_time[1];
|
159 |
+
$x=$api[created_at];
|
160 |
+
$ex_time= explode(":",$x);
|
161 |
+
$x=$ex_time[1];
|
162 |
+
if($v > $x){
|
163 |
+
$t=$v-$x;
|
164 |
+
$time=60*$t;
|
165 |
+
}else{
|
166 |
+
$t=60-$x+$v;
|
167 |
+
$time=60*$t;
|
168 |
+
}
|
169 |
+
$Location = "5sim.biz";
|
170 |
+
}
|
171 |
+
if($site=="tempnum"){
|
172 |
+
$api = file_get_contents("https://tempnum.org/stubs/handler_api.php?api_key=$api_key&action=getNumber&service=$app&country=$country");
|
173 |
+
$explode = explode(":",$api);
|
174 |
+
$idnumber = $explode[1];
|
175 |
+
$number = $explode[2];
|
176 |
+
if($number==null){
|
177 |
+
$status=0;
|
178 |
+
}else{
|
179 |
+
$status=200;
|
180 |
+
}
|
181 |
+
$time=60*15;
|
182 |
+
$Location = "tempnum.org";
|
183 |
+
}
|
184 |
+
if($site=="man"){
|
185 |
+
$api = file_get_contents("http://api.sms-man.ru/stubs/handler_api.php?action=getNumber&api_key=$api_key&service=$app&country=$country&ref=$ref");
|
186 |
+
$explode = explode(":",$api);
|
187 |
+
$idnumber = $explode[1];
|
188 |
+
$number = $explode[2];
|
189 |
+
if($number==null){
|
190 |
+
$status=0;
|
191 |
+
}else{
|
192 |
+
$status=200;
|
193 |
+
}
|
194 |
+
$time=60*15;
|
195 |
+
$Location = "sms-man.ru";
|
196 |
+
}
|
197 |
+
if($site=="vak"){
|
198 |
+
$api = json_decode(file_get_contents("https://vak-sms.com/api/getNumber/?apiKey=$api_key&app=$app&country=$zx"));
|
199 |
+
$number = $api->tel;
|
200 |
+
$idnumber = $api->idNum;
|
201 |
+
if($number==null){
|
202 |
+
$status=0;
|
203 |
+
}else{
|
204 |
+
$status=200;
|
205 |
+
}
|
206 |
+
$time=60*20;
|
207 |
+
$Location = "Vak-sms.com";
|
208 |
+
}
|
209 |
+
if($site=="acktiwator"){
|
210 |
+
$api = json_decode(file_get_contents("https://sms-acktiwator.ru/api/getnumber/$api_key?id=$app&code=$zx"),1);
|
211 |
+
$idnumber = $api['id'];
|
212 |
+
$number = $api['number'];
|
213 |
+
if($number==null){
|
214 |
+
$status=0;
|
215 |
+
}else{
|
216 |
+
$status=200;
|
217 |
+
}
|
218 |
+
$time=60*30;
|
219 |
+
$Location = "sms-acktiwator.ru";
|
220 |
+
}
|
221 |
+
if($site=="pvapins"){
|
222 |
+
$fali = array("Customer Not Found.","Number Not Found.","You have not received any code yet.","Your balance is expired.","Error 102, check back later.","App or Country Not Found.","No free channels available check after sometime.");
|
223 |
+
$api = file_get_contents("http://api.PVAPins.com/user/api/get_number.php?customer=$api_key&app=$app&country=$zx");
|
224 |
+
$number = $api;
|
225 |
+
$no = $api;
|
226 |
+
$idnumber = $number;
|
227 |
+
if(in_array($no,$fali)){
|
228 |
+
$number= $number;
|
229 |
+
}else{
|
230 |
+
$number = null;
|
231 |
+
}
|
232 |
+
if($number==null){
|
233 |
+
$status=0;
|
234 |
+
}else{
|
235 |
+
$status=200;
|
236 |
+
}
|
237 |
+
$time=60*8;
|
238 |
+
$Location = "pvapins.com";
|
239 |
+
}
|
240 |
+
if($site=="sms3t"){
|
241 |
+
$api = file_get_contents("http://vps.sms3t.com/stubs/handler_api.php?api_key=$api_key&action=getNumber&service=$app&operator=$operator&ref=$ref&country=$country");
|
242 |
+
$explode = explode(":",$api);
|
243 |
+
$idnumber = $explode[1];
|
244 |
+
$number = $explode[2];
|
245 |
+
if($number==null){
|
246 |
+
$status=0;
|
247 |
+
}else{
|
248 |
+
$status=200;
|
249 |
+
}
|
250 |
+
$time=60*20;
|
251 |
+
$Location = "sms3t.com";
|
252 |
+
}
|
253 |
+
if($site=="onlinesim"){
|
254 |
+
$api_key = file_get_contents("data/api/api_onlinesim.txt");
|
255 |
+
$api=json_decode(file_get_contents("https://onlinesim.io/api/getNum.php?apikey=$api_key&app=$app&country=$zx"),1);
|
256 |
+
$idnumber = $api[tzid];
|
257 |
+
$api2=json_decode(file_get_contents("https://onlinesim.io/api/getState.php?apikey=$api_key&tzid=$idnumber"),1);
|
258 |
+
$number = $api2[0][number];
|
259 |
+
if($number==null){
|
260 |
+
$status=0;
|
261 |
+
}else{
|
262 |
+
$status=200;
|
263 |
+
}
|
264 |
+
$time=60*15;
|
265 |
+
$Location = "onlinesim.io";
|
266 |
+
}
|
267 |
+
if($site=="supersmstech"){
|
268 |
+
$fali = array("No user found.","Invalid Service ID","Invalid country ID","Invalid channel ID","Not available for this channel.","The phone number is not available. Please try again later. Suggestion: Try another country or another channel");
|
269 |
+
$api = json_decode(file_get_contents("https://www.supersmstech.com/api/getnumber?channel=$operator&country=$zx&pid=$app&secret_key=$api_key"),1);
|
270 |
+
$number = $api[phone];
|
271 |
+
$idnumber = $api[taskid];
|
272 |
+
$no=$api[message];
|
273 |
+
if(in_array($no,$fali)){
|
274 |
+
$number= $number;
|
275 |
+
}else{
|
276 |
+
$number = null;
|
277 |
+
}
|
278 |
+
if($number==null){
|
279 |
+
$status=0;
|
280 |
+
}else{
|
281 |
+
$status=200;
|
282 |
+
}
|
283 |
+
$time=60*35;
|
284 |
+
$Location = "supersmstech.com";
|
285 |
+
}
|
286 |
+
if($site=="viotp"){
|
287 |
+
$api = json_decode(file_get_contents("https://api.viotp.com/request/getv2?token=$api_key&serviceId=$app&country=$zx&network=$operator"),1);
|
288 |
+
$number = $api[data][phone_number];
|
289 |
+
$cod = $api[data][countryCode];
|
290 |
+
$idnumber = $api[data][request_id];
|
291 |
+
if($number==null){
|
292 |
+
$status=0;
|
293 |
+
}else{
|
294 |
+
$status=200;
|
295 |
+
}
|
296 |
+
$number = "$cod$number";
|
297 |
+
$time=60*7;
|
298 |
+
$Location = "viotp.com";
|
299 |
+
}
|
300 |
+
if($site=="simsms"){
|
301 |
+
$api=json_decode(file_get_contents("http://simsms.org/priemnik.php?metod=get_number&country=$zx&app=$app&apikey=$api_key"),1);
|
302 |
+
$idnumber = $api['id'];
|
303 |
+
$number = $api['number'];
|
304 |
+
$CountryCode = $api['CountryCode'];
|
305 |
+
if($number==null){
|
306 |
+
$status=0;
|
307 |
+
}else{
|
308 |
+
$status=200;
|
309 |
+
}
|
310 |
+
$number = "$CountryCode$number";
|
311 |
+
$time=60*12;
|
312 |
+
$Location = "simsms.org";
|
313 |
+
}
|
314 |
+
if($site=="grizzly"){
|
315 |
+
$api=file_get_contents("https://api.grizzlysms.com/stubs/handler_api.php?api_key=$api_key&action=getNumber&app=$app&country=$zx");
|
316 |
+
$explode = explode(":",$api);
|
317 |
+
$idnumber = $explode[1];
|
318 |
+
$number = $explode[2];
|
319 |
+
if($number==null){
|
320 |
+
$status=0;
|
321 |
+
}else{
|
322 |
+
$status=200;
|
323 |
+
}
|
324 |
+
$time=60*20;
|
325 |
+
$Location = "grizzlysms.com";
|
326 |
+
}
|
327 |
+
if($site=="smscode"){
|
328 |
+
$api=json_decode(file_get_contents("https://sms-code.ru/api.php?api_key=$api_key&method=phone&app=$app&country=$zx&multiple_sms=0"),1);
|
329 |
+
$idnumber=$api[data][activation];
|
330 |
+
$number=$api[data][number];
|
331 |
+
if($number==null){
|
332 |
+
$status=0;
|
333 |
+
}else{
|
334 |
+
$status=200;
|
335 |
+
}
|
336 |
+
$time=60*20;
|
337 |
+
$Location = "sms-code.ru";
|
338 |
+
}
|
339 |
+
if($site=="tiger"){
|
340 |
+
$api=file_get_contents("https://tiger-sms.com/stubs/handler_api.php?api_key=$api_key&action=getNumber&app=$app&country=$country");
|
341 |
+
$explode = explode(":",$api);
|
342 |
+
$idnumber = $explode[1];
|
343 |
+
$number = $explode[2];
|
344 |
+
if($number==null){
|
345 |
+
$status=0;
|
346 |
+
}else{
|
347 |
+
$status=200;
|
348 |
+
}
|
349 |
+
$time=60*20;
|
350 |
+
$Location = "tiger-sms.com";
|
351 |
+
}
|
352 |
+
if($site=="2ndline"){
|
353 |
+
$api=json_decode(file_get_contents("https://2ndline.io/apiv1/order?apikey=$api_key&appId=$app&countryId=$zx&operatorId=$operator"),1);
|
354 |
+
$idds=$api["id"];
|
355 |
+
$api2=json_decode(file_get_contents("https://2ndline.io/apiv1/ordercheck?apikey=$api_key&id=$idds"),1);
|
356 |
+
$idnumber=$api2[data][id];
|
357 |
+
if($api2[status] != 1){
|
358 |
+
$number=null;
|
359 |
+
}else{
|
360 |
+
$number=$api2[status];
|
361 |
+
}
|
362 |
+
if($number==null){
|
363 |
+
$status=0;
|
364 |
+
}else{
|
365 |
+
$status=200;
|
366 |
+
}
|
367 |
+
$num2nd=$api2[data][phone];
|
368 |
+
$number=$api2[data][phone];
|
369 |
+
$nums = substr("$number", 0,+1);
|
370 |
+
if($nums==0){
|
371 |
+
$number = substr("$numb", +1);
|
372 |
+
$x=$_cod['code'][$country];
|
373 |
+
$number ="$x$number";
|
374 |
+
}
|
375 |
+
$time=60*20;
|
376 |
+
$Location = "2ndline.io";
|
377 |
+
}
|
378 |
+
if($site=="store"){
|
379 |
+
$api=file_get_contents("https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=getNumber&app=$app&country=$zx");
|
380 |
+
$explode = explode(":",$api);
|
381 |
+
$idnumber = $explode[1];
|
382 |
+
$number = $explode[2];
|
383 |
+
if($number==null){
|
384 |
+
$status=0;
|
385 |
+
}else{
|
386 |
+
$status=200;
|
387 |
+
}
|
388 |
+
$time=60*15;
|
389 |
+
$Location = "receivesms.store";
|
390 |
+
}
|
391 |
+
if($site=="fastpva"){
|
392 |
+
$api=json_decode(file_get_contents("http://api.fastpva.com/pvapublic/sms/getNumber?myPid=$operator&locale=$zx&apikey=$api_key"),1);
|
393 |
+
$idnumber=$api[data][orderId];
|
394 |
+
$number=$api[data][number];
|
395 |
+
if(preg_match("/\+[0-9]/",$number)){
|
396 |
+
$number=$number;
|
397 |
+
}else{
|
398 |
+
$number=null;
|
399 |
+
}
|
400 |
+
if($number==null){
|
401 |
+
$status=0;
|
402 |
+
}else{
|
403 |
+
$status=200;
|
404 |
+
}
|
405 |
+
$time=60*15;
|
406 |
+
$Location = "sms.fastpva.com";
|
407 |
+
}
|
408 |
+
if($site=="dropsms"){
|
409 |
+
$api=file_get_contents("https://api.dropsms.cc/stubs/handler_api.php?action=getNumber&api_key=$api_key&service=$app&country=$country");
|
410 |
+
$explode = explode(":",$api);
|
411 |
+
$idnumber = $explode[1];
|
412 |
+
$number = $explode[2];
|
413 |
+
if($number==null){
|
414 |
+
$status=0;
|
415 |
+
}else{
|
416 |
+
$status=200;
|
417 |
+
}
|
418 |
+
$time=60*20;
|
419 |
+
$Location = "dropsms.ru";
|
420 |
+
}
|
421 |
+
if($site=="24sms7"){
|
422 |
+
$api=file_get_contents("https://24sms7.com/stubs/handler_api.php?api_key=$api_key&action=getNumber&app=$app&country=$zx");
|
423 |
+
$explode = explode(":",$api);
|
424 |
+
$idnumber = $explode[1];
|
425 |
+
$number = $explode[2];
|
426 |
+
if($number==null){
|
427 |
+
$status=0;
|
428 |
+
}else{
|
429 |
+
$status=200;
|
430 |
+
}
|
431 |
+
$time=60*20;
|
432 |
+
$Location = "24sms7.com";
|
433 |
+
}
|
434 |
+
if($site=="sellotp"){
|
435 |
+
$api=json_decode(file_get_contents("https://api.sellotp.com/request/get?token=$api_key&appId=$app&network=$operator&lang=en"),1);
|
436 |
+
$idnumber = $api[data][request_id];
|
437 |
+
$number = $api[data][phone_number];
|
438 |
+
if($number==null){
|
439 |
+
$status=0;
|
440 |
+
}else{
|
441 |
+
$status=200;
|
442 |
+
}
|
443 |
+
$time=60*10;
|
444 |
+
$Location = "sellotp.com";
|
445 |
+
}
|
446 |
+
if($site=="duraincloud"){
|
447 |
+
$api=json_decode(file_get_contents("http://api.duraincloud.com/out/ext_api/getMobile?name=$Username&pwd=$Password&ApiKey=$api_key&cuy=$zx&pid=$app&num=1&noblack=0&serial=2"),1);
|
448 |
+
$cod = $api[code];
|
449 |
+
$number = $api[data];
|
450 |
+
$idnumber = $number;
|
451 |
+
if($cod=="200"){
|
452 |
+
$number = $number;
|
453 |
+
}else{
|
454 |
+
$number = null;
|
455 |
+
}
|
456 |
+
if($number==null){
|
457 |
+
$status=0;
|
458 |
+
}else{
|
459 |
+
$status=200;
|
460 |
+
}
|
461 |
+
$time=60*5;
|
462 |
+
$Location = "mm.duraincloud.com";
|
463 |
+
}
|
464 |
+
$num = str_replace('+','',$number);
|
465 |
+
$number="+$num";
|
466 |
+
#_____json
|
467 |
+
if($status=="200"){
|
468 |
+
$json[status]=$status;
|
469 |
+
$json[message]="Number fetched successfully";
|
470 |
+
if($site=="2ndline"){
|
471 |
+
$json[num2nd]=$num2nd;
|
472 |
+
}
|
473 |
+
$json[number]=$number;
|
474 |
+
$json[idnumber]=$idnumber;
|
475 |
+
$json[time]=$time;
|
476 |
+
$json[Location]=$Location;
|
477 |
+
}else{
|
478 |
+
$json[status]=$status;
|
479 |
+
$json[message]="A problem has occurred from the provider";
|
480 |
+
$json[Location]=$Location;
|
481 |
+
}
|
482 |
+
echo json_encode($json);
|
483 |
+
}
|
484 |
+
#=========={جلب الرقم موقع 2ndline}==========#
|
485 |
+
if($_GET["action"] == "getNum2nd"){
|
486 |
+
if($site=="2ndline"){
|
487 |
+
$api=json_decode(file_get_contents("https://2ndline.io/apiv1/ordercheck?apikey=$api_key&id=$idnumber"),1);
|
488 |
+
$idnumber=$api[data][id];
|
489 |
+
if($api[status] != 1){
|
490 |
+
$number=null;
|
491 |
+
}else{
|
492 |
+
$number=$api[status];
|
493 |
+
}
|
494 |
+
if($number==null){
|
495 |
+
$status=0;
|
496 |
+
}else{
|
497 |
+
$status=200;
|
498 |
+
}
|
499 |
+
$num2nd=$api[data][phone];
|
500 |
+
$number=$api[data][phone];
|
501 |
+
$nums = substr("$number", 0,+1);
|
502 |
+
if($nums==0){
|
503 |
+
$number = substr("$numb", +1);
|
504 |
+
$x=$_cod['code'][$country];
|
505 |
+
$number ="$x$number";
|
506 |
+
}
|
507 |
+
$time=60*20;
|
508 |
+
$Location = "2ndline.io";
|
509 |
+
}
|
510 |
+
$num = str_replace('+','',$number);
|
511 |
+
$number="+$num";
|
512 |
+
#_____json
|
513 |
+
if($status=="200"){
|
514 |
+
$json[status]=$status;
|
515 |
+
$json[message]="Number fetched successfully";
|
516 |
+
if($site=="2ndline"){
|
517 |
+
$json[num2nd]=$num2nd;
|
518 |
+
}
|
519 |
+
$json[number]=$number;
|
520 |
+
$json[idnumber]=$idnumber;
|
521 |
+
$json[time]=$time;
|
522 |
+
$json[Location]=$Location;
|
523 |
+
}else{
|
524 |
+
$json[status]=$status;
|
525 |
+
$json[message]="A problem has occurred from the provider";
|
526 |
+
$json[Location]=$Location;
|
527 |
+
}
|
528 |
+
echo json_encode($json,1);
|
529 |
+
}
|
530 |
+
#=========={جلب الرقم موقع 5sim}==========#
|
531 |
+
if($_GET["action"] == "getNum5sim"){
|
532 |
+
if($site=="5sim"){
|
533 |
+
$fali = array("no free phones","not enough user balance","not enough rating","select country","select operator","bad country","bad operator","no product","server offline","internal error");
|
534 |
+
$ch = curl_init();
|
535 |
+
|
536 |
+
$number = str_replace('+','',$number);
|
537 |
+
curl_setopt($ch, CURLOPT_URL, "https://5sim.biz/v1/user/reuse/$app/$number");
|
538 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
539 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
540 |
+
|
541 |
+
|
542 |
+
$headers = array();
|
543 |
+
$headers[] = 'Authorization: Bearer ' . $api_key;
|
544 |
+
$headers[] = 'Accept: application/json';
|
545 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
546 |
+
|
547 |
+
$result = curl_exec($ch);
|
548 |
+
if (curl_errno($ch)) {
|
549 |
+
echo 'Error:' . curl_error($ch);
|
550 |
+
}
|
551 |
+
curl_close($ch);
|
552 |
+
$no=$result;
|
553 |
+
$api = json_decode($result,1);
|
554 |
+
$idnumber = $api[id];
|
555 |
+
$number = $api[phone];
|
556 |
+
if(in_array($no,$fali)){
|
557 |
+
$number= $number;
|
558 |
+
}else{
|
559 |
+
$number = null;
|
560 |
+
}
|
561 |
+
if($number==null){
|
562 |
+
$status=0;
|
563 |
+
}else{
|
564 |
+
$status=200;
|
565 |
+
}
|
566 |
+
$v=$api[expires];
|
567 |
+
$ex_time= explode(":",$v);
|
568 |
+
$v=$ex_time[1];
|
569 |
+
$x=$api[created_at];
|
570 |
+
$ex_time= explode(":",$x);
|
571 |
+
$x=$ex_time[1];
|
572 |
+
if($v > $x){
|
573 |
+
$t=$v-$x;
|
574 |
+
$time=60*$t;
|
575 |
+
}else{
|
576 |
+
$t=60-$x+$v;
|
577 |
+
$time=60*$t;
|
578 |
+
}
|
579 |
+
$Location = "5sim.biz";
|
580 |
+
}
|
581 |
+
$num = str_replace('+','',$number);
|
582 |
+
$number="+$num";
|
583 |
+
#_____json
|
584 |
+
if($status=="200"){
|
585 |
+
$json[status]=$status;
|
586 |
+
$json[message]="Number fetched successfully";
|
587 |
+
$json[number]=$number;
|
588 |
+
$json[idnumber]=$idnumber;
|
589 |
+
$json[time]=$time;
|
590 |
+
$json[Location]=$Location;
|
591 |
+
}else{
|
592 |
+
$json[status]=$status;
|
593 |
+
$json[message]="A problem has occurred from the provider";
|
594 |
+
$json[Location]=$Location;
|
595 |
+
}
|
596 |
+
echo json_encode($json,1);
|
597 |
+
}
|
598 |
+
#=========={جلب كود التحقق}==========#
|
599 |
+
if($_GET["action"] == "getStatus"){
|
600 |
+
if($site=="5sim"){
|
601 |
+
$ch = curl_init();
|
602 |
+
|
603 |
+
curl_setopt($ch, CURLOPT_URL, "https://5sim.biz/v1/user/check/$idnumber");
|
604 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
605 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
606 |
+
|
607 |
+
|
608 |
+
$headers = array();
|
609 |
+
$headers[] = 'Authorization: Bearer ' . $api_key;
|
610 |
+
$headers[] = 'Accept: application/json';
|
611 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
612 |
+
|
613 |
+
$result = curl_exec($ch);
|
614 |
+
if (curl_errno($ch)) {
|
615 |
+
echo 'Error:' . curl_error($ch);
|
616 |
+
}
|
617 |
+
curl_close($ch);
|
618 |
+
$api=json_decode($result,1);
|
619 |
+
$code = $api[sms][0][code];
|
620 |
+
$created_at = $api[sms][0][created_at];
|
621 |
+
$created_at = explode(".", $created_at);
|
622 |
+
$created_at = str_replace('T',' ',$created_at[0]);
|
623 |
+
$sender = $api[sms][0][sender];
|
624 |
+
$agen = 200;
|
625 |
+
if($code==null){
|
626 |
+
$status=0;
|
627 |
+
}else{
|
628 |
+
$status=200;
|
629 |
+
}
|
630 |
+
$Location = "5sim.biz";
|
631 |
+
}
|
632 |
+
if($site=="tempnum"){
|
633 |
+
$api = file_get_contents("https://tempnum.org/stubs/handler_api.php?action=getStatus&api_key=$api_key&id=$idnumber");
|
634 |
+
$ex_api= explode(":",$api);
|
635 |
+
$code = $ex_api[1];
|
636 |
+
$agen = 1;
|
637 |
+
if($code==null){
|
638 |
+
$status=0;
|
639 |
+
}else{
|
640 |
+
$status=200;
|
641 |
+
}
|
642 |
+
$Location = "tempnum.org";
|
643 |
+
}
|
644 |
+
if($site=="man"){
|
645 |
+
$api = file_get_contents("http://api.sms-man.ru/stubs/handler_api.php?action=getStatus&api_key=$api_key&id=$idnumber");
|
646 |
+
$ex_api= explode(":",$api);
|
647 |
+
$code = $ex_api[1];
|
648 |
+
$agen = 1;
|
649 |
+
if($code==null){
|
650 |
+
$status=0;
|
651 |
+
}else{
|
652 |
+
$status=200;
|
653 |
+
}
|
654 |
+
$Location = "sms-man.ru";
|
655 |
+
}
|
656 |
+
if($site=="vak"){
|
657 |
+
$api = json_decode(file_get_contents("https://vak-sms.com/api/getSmsCode/?apiKey=".$api_key."&idNum=".$idnumber),1);
|
658 |
+
$code = $api['smsCode'];
|
659 |
+
$agen = 1;
|
660 |
+
if($code==null){
|
661 |
+
$status=0;
|
662 |
+
}else{
|
663 |
+
$status=200;
|
664 |
+
}
|
665 |
+
$Location = "Vak-sms.com";
|
666 |
+
}
|
667 |
+
if($site=="acktiwator"){
|
668 |
+
$api = json_decode(file_get_contents("https://sms-acktiwator.ru/api/getstatus/$api_key?id=$idnumber"),1);
|
669 |
+
$code = $api['small'];
|
670 |
+
$agen = 1;
|
671 |
+
if($code==null){
|
672 |
+
$status=0;
|
673 |
+
}else{
|
674 |
+
$status=200;
|
675 |
+
}
|
676 |
+
$Location = "sms-acktiwator.ru";
|
677 |
+
}
|
678 |
+
if($site=="pvapins"){
|
679 |
+
$fali = array("Customer Not Found.","Number Not Found.","You have not received any code yet.","Your balance is expired.","Error 102, check back later.","App or Country Not Found.","No free channels available check after sometime.");
|
680 |
+
$api = file_get_contents("http://api.PVAPins.com/user/api/get_sms.php?customer=$api_key&number=$num&country=$counts&app=$app");
|
681 |
+
$code = $api;
|
682 |
+
$no = $api;
|
683 |
+
$agen = 1;
|
684 |
+
if(in_array($no,$fali)){
|
685 |
+
$code= $code;
|
686 |
+
}else{
|
687 |
+
$code = null;
|
688 |
+
}
|
689 |
+
if($code==null){
|
690 |
+
$status=0;
|
691 |
+
}else{
|
692 |
+
$status=200;
|
693 |
+
}
|
694 |
+
$Location = "pvapins.com";
|
695 |
+
}
|
696 |
+
if($site=="sms3t"){
|
697 |
+
$api = file_get_contents("http://vps.sms3t.com/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$idnumber");
|
698 |
+
$code = explode(':',$api)[1];
|
699 |
+
$agen = 1;
|
700 |
+
if($code==null){
|
701 |
+
$status=0;
|
702 |
+
}else{
|
703 |
+
$status=200;
|
704 |
+
}
|
705 |
+
$Location = "sms3t.com";
|
706 |
+
}
|
707 |
+
if($site=="onlinesim"){
|
708 |
+
$api=json_decode(file_get_contents("https://onlinesim.io/api/getState.php?apikey=$api_key&tzid=$idnumber"),1);
|
709 |
+
$code = $api[0][msg];
|
710 |
+
$agen = 1;
|
711 |
+
if($code==null){
|
712 |
+
$status=0;
|
713 |
+
}else{
|
714 |
+
$status=200;
|
715 |
+
}
|
716 |
+
$Location = "onlinesim.io";
|
717 |
+
}
|
718 |
+
if($site=="supersmstech"){
|
719 |
+
$api = json_decode(file_get_contents("https://www.supersmstech.com/api/getcode?taskid=$idnumber&secret_key=$api_key"),1);
|
720 |
+
$code = $api[code];
|
721 |
+
$agen = 1;
|
722 |
+
if($code==null){
|
723 |
+
$status=0;
|
724 |
+
}else{
|
725 |
+
$status=200;
|
726 |
+
}
|
727 |
+
$Location = "supersmstech.com";
|
728 |
+
}
|
729 |
+
if($site=="viotp"){
|
730 |
+
$api = json_decode(file_get_contents("https://api.viotp.com/session/getv2?token=$api_key&requestId=$idnumber"),1);
|
731 |
+
$code = $api[data]['Code'];
|
732 |
+
$agen = 1;
|
733 |
+
if($code==null){
|
734 |
+
$status=0;
|
735 |
+
}else{
|
736 |
+
$status=200;
|
737 |
+
}
|
738 |
+
$Location = "viotp.com";
|
739 |
+
}
|
740 |
+
if($site=="simsms"){
|
741 |
+
$api = json_decode(file_get_contents("http://simsms.org/priemnik.php?metod=get_sms&country=$country&app=$app&id=$idnumber&apikey=$api_key"),1);
|
742 |
+
$code = $api['sms'];
|
743 |
+
$agen = 1;
|
744 |
+
if($code==null){
|
745 |
+
$status=0;
|
746 |
+
}else{
|
747 |
+
$status=200;
|
748 |
+
}
|
749 |
+
$Location = "simsms.org";
|
750 |
+
}
|
751 |
+
if($site=="grizzly"){
|
752 |
+
$api = file_get_contents("https://api.grizzlysms.com/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$idnumber");
|
753 |
+
$code = explode(':',$api)[1];
|
754 |
+
$agen = 1;
|
755 |
+
if($code==null){
|
756 |
+
$status=0;
|
757 |
+
}else{
|
758 |
+
$status=200;
|
759 |
+
}
|
760 |
+
$Location = "grizzlysms.com";
|
761 |
+
}
|
762 |
+
if($site=="smscode"){
|
763 |
+
$api=json_decode(file_get_contents("https://sms-code.ru/api.php?api_key=$api_key&method=sms&activation=$idnumber"),1);
|
764 |
+
$code = $api[data];
|
765 |
+
$agen = 200;
|
766 |
+
if($code==null){
|
767 |
+
$status=0;
|
768 |
+
}else{
|
769 |
+
$status=200;
|
770 |
+
}
|
771 |
+
$Location = "sms-code.ru";
|
772 |
+
}
|
773 |
+
if($site=="tiger"){
|
774 |
+
$api=file_get_contents("https://tiger-sms.com/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$idnumber");
|
775 |
+
$code = explode(':',$api)[1];
|
776 |
+
$agen = 1;
|
777 |
+
if($code==null){
|
778 |
+
$status=0;
|
779 |
+
}else{
|
780 |
+
$status=200;
|
781 |
+
}
|
782 |
+
$Location = "tiger-sms.com";
|
783 |
+
}
|
784 |
+
if($site=="2ndline"){
|
785 |
+
$api = json_decode(file_get_contents("https://2ndline.io/apiv1/ordercheck?apikey=$api_key&id=$idnumber"),1);
|
786 |
+
$code = $api[data][code];
|
787 |
+
$agen = 1;
|
788 |
+
if($code==null){
|
789 |
+
$status=0;
|
790 |
+
}else{
|
791 |
+
$status=200;
|
792 |
+
}
|
793 |
+
$Location = "2ndline.io";
|
794 |
+
}
|
795 |
+
if($site=="store"){
|
796 |
+
$api=file_get_contents("https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$idnumber");
|
797 |
+
$explode = explode(":",$api);
|
798 |
+
$code = $explode[1];
|
799 |
+
$agen = 1;
|
800 |
+
if($code==null){
|
801 |
+
$status=0;
|
802 |
+
}else{
|
803 |
+
$status=200;
|
804 |
+
}
|
805 |
+
$Location = "receivesms.store";
|
806 |
+
}
|
807 |
+
if($site=="fastpva"){
|
808 |
+
$api=json_decode(file_get_contents("http://api.fastpva.com/pvapublic/sms/getCode?orderId=$idnumber&apikey=$api_key"),1);
|
809 |
+
$code = $api[data][code];
|
810 |
+
$agen = 1;
|
811 |
+
if($code==null){
|
812 |
+
$status=0;
|
813 |
+
}else{
|
814 |
+
$status=200;
|
815 |
+
}
|
816 |
+
$Location = "sms.fastpva.com";
|
817 |
+
}
|
818 |
+
if($site=="dropsms"){
|
819 |
+
$api=file_get_contents("https://api.dropsms.cc/stubs/handler_api.php?action=getStatus&api_key=$api_key&id=$idnumber");
|
820 |
+
$explode = explode(":",$api);
|
821 |
+
$code = $explode[1];
|
822 |
+
$agen = 1;
|
823 |
+
if($code==null){
|
824 |
+
$status=0;
|
825 |
+
}else{
|
826 |
+
$status=200;
|
827 |
+
}
|
828 |
+
$Location = "dropsms.ru";
|
829 |
+
}
|
830 |
+
if($site=="24sms7"){
|
831 |
+
$api=file_get_contents("https://24sms7.com/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$idnumber");
|
832 |
+
$explode = explode(":",$api);
|
833 |
+
$code = $explode[1];
|
834 |
+
$agen = 1;
|
835 |
+
if($code==null){
|
836 |
+
$status=0;
|
837 |
+
}else{
|
838 |
+
$status=200;
|
839 |
+
}
|
840 |
+
$Location = "24sms7.com";
|
841 |
+
}
|
842 |
+
if($site=="sellotp"){
|
843 |
+
$api=json_decode(file_get_contents("https://api.sellotp.com/session/get?token=$api_key&requestId=$idnumber&lang=en"),1);
|
844 |
+
$code = $api[data][Code];
|
845 |
+
$agen = 1;
|
846 |
+
if($code==null){
|
847 |
+
$status=0;
|
848 |
+
}else{
|
849 |
+
$status=200;
|
850 |
+
}
|
851 |
+
$Location = "sellotp.com";
|
852 |
+
}
|
853 |
+
if($site=="duraincloud"){
|
854 |
+
$api = json_decode(file_get_contents("http://api.duraincloud.com/out/ext_api/getMsg?name=$Username&pwd=$Password&ApiKey=$api_key&pn=$number&pid=$app&serial=2"),1);
|
855 |
+
$code = $api[data];
|
856 |
+
$agen = 1;
|
857 |
+
if($code==null){
|
858 |
+
$status=0;
|
859 |
+
}else{
|
860 |
+
$status=200;
|
861 |
+
}
|
862 |
+
$Location = "mm.duraincloud.com";
|
863 |
+
}
|
864 |
+
$code = str_replace('-','',$code);
|
865 |
+
#_____json
|
866 |
+
if($status=="200"){
|
867 |
+
$json[status]=$status;
|
868 |
+
$json[message]="Verification code has been received";
|
869 |
+
$json[code]=$code;
|
870 |
+
if($site=="5sim"){
|
871 |
+
$json[created_at]=$created_at;
|
872 |
+
$json[sender]=$sender;
|
873 |
+
}
|
874 |
+
$json[agen]=$agen;
|
875 |
+
$json[price]=$price;
|
876 |
+
$json[Location]=$Location;
|
877 |
+
}else{
|
878 |
+
$json[status]=$status;
|
879 |
+
$json[message]="Provider verification code not received";
|
880 |
+
$json[Location]=$Location;
|
881 |
+
}
|
882 |
+
echo json_encode($json,1);
|
883 |
+
}
|
884 |
+
#=========={جلب كود التحقق}==========#
|
885 |
+
if($_GET["action"] == "getStatus2"){
|
886 |
+
if($site=="5sim"){
|
887 |
+
$ch = curl_init();
|
888 |
+
|
889 |
+
curl_setopt($ch, CURLOPT_URL, "https://5sim.biz/v1/user/check/$idnumber");
|
890 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
891 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
892 |
+
|
893 |
+
|
894 |
+
$headers = array();
|
895 |
+
$headers[] = 'Authorization: Bearer ' . $api_key;
|
896 |
+
$headers[] = 'Accept: application/json';
|
897 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
898 |
+
|
899 |
+
$result = curl_exec($ch);
|
900 |
+
if (curl_errno($ch)) {
|
901 |
+
echo 'Error:' . curl_error($ch);
|
902 |
+
}
|
903 |
+
curl_close($ch);
|
904 |
+
$api=json_decode($result,1);
|
905 |
+
$code = $api[sms][$allsms][code];
|
906 |
+
$created_at = $api[sms][$allsms][created_at];
|
907 |
+
$created_at = explode(".", $created_at);
|
908 |
+
$created_at = str_replace('T',' ',$created_at[0]);
|
909 |
+
$sender = $api[sms][$allsms][sender];
|
910 |
+
$agen = 200;
|
911 |
+
if($code==null){
|
912 |
+
$status=0;
|
913 |
+
}else{
|
914 |
+
$status=200;
|
915 |
+
}
|
916 |
+
$Location = "5sim.biz";
|
917 |
+
}
|
918 |
+
if($site=="smscode"){
|
919 |
+
$api=json_decode(file_get_contents("https://sms-code.ru/api.php?api_key=$api_key&method=next_sms&activation=$idnumber"),1);
|
920 |
+
$code = $api[data];
|
921 |
+
$error = $api[status];
|
922 |
+
if($error != "error"){
|
923 |
+
$code = $code;
|
924 |
+
$agen = 1;
|
925 |
+
}else{
|
926 |
+
$code = null;
|
927 |
+
$agen = 200;
|
928 |
+
}
|
929 |
+
if($code==null){
|
930 |
+
$status=0;
|
931 |
+
}else{
|
932 |
+
$status=200;
|
933 |
+
}
|
934 |
+
$Location = "sms-code.ru";
|
935 |
+
}
|
936 |
+
$code = str_replace('-','',$code);
|
937 |
+
#_____json
|
938 |
+
if($status=="200"){
|
939 |
+
$json[status]=$status;
|
940 |
+
$json[message]="Verification code has been received";
|
941 |
+
$json[code]=$code;
|
942 |
+
if($site=="5sim"){
|
943 |
+
$json[created_at]=$created_at;
|
944 |
+
$json[sender]=$sender;
|
945 |
+
}
|
946 |
+
$json[agen]=$agen;
|
947 |
+
$json[Location]=$Location;
|
948 |
+
}else{
|
949 |
+
$json[status]=$status;
|
950 |
+
$json[message]="Provider verification code not received";
|
951 |
+
$json[Location]=$Location;
|
952 |
+
}
|
953 |
+
echo json_encode($json,1);
|
954 |
+
}
|
955 |
+
#=========={إنهاء الرقم}==========#
|
956 |
+
if($_GET["action"] == "setStatus"){
|
957 |
+
if($site=="5sim"){
|
958 |
+
$ch = curl_init();
|
959 |
+
|
960 |
+
curl_setopt($ch, CURLOPT_URL, "https://5sim.biz/v1/user/finish/$idnumber");
|
961 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
962 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
963 |
+
|
964 |
+
|
965 |
+
$headers = array();
|
966 |
+
$headers[] = 'Authorization: Bearer ' . $api_key;
|
967 |
+
$headers[] = 'Accept: application/json';
|
968 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
969 |
+
|
970 |
+
$api = curl_exec($ch);
|
971 |
+
if (curl_errno($ch)) {
|
972 |
+
echo 'Error:' . curl_error($ch);
|
973 |
+
}
|
974 |
+
curl_close($ch);
|
975 |
+
$status=200;
|
976 |
+
$Location = "5sim.biz";
|
977 |
+
}
|
978 |
+
if($site=="tempnum"){
|
979 |
+
$status=200;
|
980 |
+
$Location = "tempnum.org";
|
981 |
+
}
|
982 |
+
if($site=="man"){
|
983 |
+
$api = file_get_contents("http://api.sms-man.ru/stubs/handler_api.php?action=setStatus&api_key=$api_key&id=$idnumber&status=6");
|
984 |
+
$status=200;
|
985 |
+
$Location = "sms-man.ru";
|
986 |
+
}
|
987 |
+
if($site=="vak"){
|
988 |
+
$status=200;
|
989 |
+
$Location = "Vak-sms.com";
|
990 |
+
}
|
991 |
+
if($site=="acktiwator"){
|
992 |
+
$status=200;
|
993 |
+
$Location = "sms-acktiwator.ru";
|
994 |
+
}
|
995 |
+
if($site=="pvapins"){
|
996 |
+
$status=200;
|
997 |
+
$Location = "pvapins.com";
|
998 |
+
}
|
999 |
+
if($site=="sms3t"){
|
1000 |
+
$status=200;
|
1001 |
+
$Location = "sms3t.com";
|
1002 |
+
}
|
1003 |
+
if($site=="onlinesim"){
|
1004 |
+
$status=200;
|
1005 |
+
$Location = "onlinesim.io";
|
1006 |
+
}
|
1007 |
+
if($site=="supersmstech"){
|
1008 |
+
$status=200;
|
1009 |
+
$Location = "supersmstech.com";
|
1010 |
+
}
|
1011 |
+
if($site=="viotp"){
|
1012 |
+
$status=200;
|
1013 |
+
$Location = "viotp.com";
|
1014 |
+
}
|
1015 |
+
if($site=="simsms"){
|
1016 |
+
$status=200;
|
1017 |
+
$Location = "simsms.org";
|
1018 |
+
}
|
1019 |
+
if($site=="grizzly"){
|
1020 |
+
$api = file_get_contents("https://api.grizzlysms.com/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=6&id=$idnumber&forward=1");
|
1021 |
+
$status=200;
|
1022 |
+
$Location = "grizzlysms.com";
|
1023 |
+
}
|
1024 |
+
if($site=="smscode"){
|
1025 |
+
$api = file_get_contents("https://sms-code.ru/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=6&id=$idnumber");
|
1026 |
+
$status=200;
|
1027 |
+
$Location = "sms-code.ru";
|
1028 |
+
}
|
1029 |
+
if($site=="tiger"){
|
1030 |
+
$api = file_get_contents("https://tiger-sms.com/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=6&id=$idnumber");
|
1031 |
+
$status=200;
|
1032 |
+
$Location = "tiger-sms.com";
|
1033 |
+
}
|
1034 |
+
if($site=="2ndline"){
|
1035 |
+
$status=200;
|
1036 |
+
$Location = "2ndline.io";
|
1037 |
+
}
|
1038 |
+
if($site=="store"){
|
1039 |
+
$api=file_get_contents("https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=1&id=$idnumber");
|
1040 |
+
$status=200;
|
1041 |
+
$Location = "receivesms.store";
|
1042 |
+
}
|
1043 |
+
if($site=="fastpva"){
|
1044 |
+
$status=200;
|
1045 |
+
$Location = "sms.fastpva.com";
|
1046 |
+
}
|
1047 |
+
if($site=="dropsms"){
|
1048 |
+
$status=200;
|
1049 |
+
$Location = "dropsms.ru";
|
1050 |
+
}
|
1051 |
+
if($site=="24sms7"){
|
1052 |
+
$status=200;
|
1053 |
+
$Location = "24sms7.com";
|
1054 |
+
}
|
1055 |
+
if($site=="sellotp"){
|
1056 |
+
$status=200;
|
1057 |
+
$Location = "sellotp.com";
|
1058 |
+
}
|
1059 |
+
if($site=="duraincloud"){
|
1060 |
+
$api = json_decode(file_get_contents("http://api.duraincloud.com/out/ext_api/passMobile?name=$Username&pwd=$Password&ApiKey=$api_key&pn=$number&pid=$app&serial=2"),1);
|
1061 |
+
$code = $api[code];
|
1062 |
+
$status=200;
|
1063 |
+
$Location = "mm.duraincloud.com";
|
1064 |
+
}
|
1065 |
+
#_____json
|
1066 |
+
if($status=="200"){
|
1067 |
+
$json[status]=$status;
|
1068 |
+
$json[message]="The number has been terminated from the provider";
|
1069 |
+
$json[Location]=$Location;
|
1070 |
+
}else{
|
1071 |
+
$json[status]=$status;
|
1072 |
+
$json[message]="The number could not be terminated from the provider";
|
1073 |
+
$json[Location]=$Location;
|
1074 |
+
}
|
1075 |
+
echo json_encode($json,1);
|
1076 |
+
}
|
1077 |
+
#=========={حظر الرقم}==========#
|
1078 |
+
if($_GET["action"] == "addBlack"){
|
1079 |
+
if($site=="5sim"){
|
1080 |
+
$ch = curl_init();
|
1081 |
+
|
1082 |
+
curl_setopt($ch, CURLOPT_URL, "https://5sim.biz/v1/user/ban/$idnumber");
|
1083 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
1084 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
1085 |
+
|
1086 |
+
|
1087 |
+
$headers = array();
|
1088 |
+
$headers[] = 'Authorization: Bearer ' . $api_key;
|
1089 |
+
$headers[] = 'Accept: application/json';
|
1090 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
1091 |
+
|
1092 |
+
$api = curl_exec($ch);
|
1093 |
+
if (curl_errno($ch)) {
|
1094 |
+
echo 'Error:' . curl_error($ch);
|
1095 |
+
}
|
1096 |
+
curl_close($ch);
|
1097 |
+
$status=200;
|
1098 |
+
$Location = "5sim.biz";
|
1099 |
+
}
|
1100 |
+
if($site=="tempnum"){
|
1101 |
+
$api = file_get_contents("https://tempnum.org/stubs/handler_api.php?api_key=$api_key&action=setStatus&api_key=$api_key&id=$idnumber&status=8");
|
1102 |
+
$status=200;
|
1103 |
+
$Location = "tempnum.org";
|
1104 |
+
}
|
1105 |
+
if($site=="man"){
|
1106 |
+
$api = file_get_contents("http://api.sms-man.ru/stubs/handler_api.php?action=setStatus&api_key=$api_key&id=$idnumber&status=-1");
|
1107 |
+
$status=200;
|
1108 |
+
$Location = "sms-man.ru";
|
1109 |
+
}
|
1110 |
+
if($site=="vak"){
|
1111 |
+
$api = file_get_contents("https://vak-sms.com/api/setStatus/?apiKey=$api_key&status=bad&idNum=$idnumber");
|
1112 |
+
$status=200;
|
1113 |
+
$Location = "Vak-sms.com";
|
1114 |
+
}
|
1115 |
+
if($site=="acktiwator"){
|
1116 |
+
$api = file_get_contents("http://sms-acktiwator.ru/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=8&id=$idnumber&forward=1");
|
1117 |
+
$status=200;
|
1118 |
+
$Location = "sms-acktiwator.ru";
|
1119 |
+
}
|
1120 |
+
if($site=="pvapins"){
|
1121 |
+
$status=200;
|
1122 |
+
$Location = "pvapins.com";
|
1123 |
+
}
|
1124 |
+
if($site=="sms3t"){
|
1125 |
+
$api = file_get_contents("http://vps.sms3t.com/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=8&id=$idnumber");
|
1126 |
+
$status=200;
|
1127 |
+
$Location = "sms3t.com";
|
1128 |
+
}
|
1129 |
+
if($site=="onlinesim"){
|
1130 |
+
$api=json_decode(file_get_contents("https://onlinesim.io/api/setOperationOk.php?apikey=$api_key&tzid=$idnumber"),1);
|
1131 |
+
$tims = $api[0][time];
|
1132 |
+
if($tims > 770){
|
1133 |
+
$status=0;
|
1134 |
+
}else{
|
1135 |
+
$status=200;
|
1136 |
+
}
|
1137 |
+
$Location = "onlinesim.io";
|
1138 |
+
}
|
1139 |
+
if($site=="supersmstech"){
|
1140 |
+
$numbers = str_replace('+','',$number);
|
1141 |
+
$api = json_decode(file_get_contents("https://www.supersmstech.com/api/releasenumber?phone=$numbers&secret_key=$api_key"),1);
|
1142 |
+
$status=200;
|
1143 |
+
$Location = "supersmstech.com";
|
1144 |
+
}
|
1145 |
+
if($site=="viotp"){
|
1146 |
+
$status=200;
|
1147 |
+
$Location = "viotp.com";
|
1148 |
+
}
|
1149 |
+
if($site=="simsms"){
|
1150 |
+
$api = file_get_contents("http://simsms.org/priemnik.php?metod=ban&service=$service&apikey=$api_key&id=$idnumber");
|
1151 |
+
$status=200;
|
1152 |
+
$Location = "simsms.org";
|
1153 |
+
}
|
1154 |
+
if($site=="grizzly"){
|
1155 |
+
$api = file_get_contents("https://api.grizzlysms.com/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=8&id=$idnumber&forward=1");
|
1156 |
+
$status=200;
|
1157 |
+
$Location = "grizzlysms.com";
|
1158 |
+
}
|
1159 |
+
if($site=="smscode"){
|
1160 |
+
$api=json_decode(file_get_contents("https://sms-code.ru/api.php?api_key=$api_key&method=cancel&activation=$idnumber"),1);
|
1161 |
+
$status=200;
|
1162 |
+
$Location = "sms-code.ru";
|
1163 |
+
}
|
1164 |
+
if($site=="tiger"){
|
1165 |
+
$api=file_get_contents("https://tiger-sms.com/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=8&id=$idnumber");
|
1166 |
+
$status=200;
|
1167 |
+
$Location = "tiger-sms.com";
|
1168 |
+
}
|
1169 |
+
if($site=="2ndline"){
|
1170 |
+
$status=200;
|
1171 |
+
$Location = "2ndline.io";
|
1172 |
+
}
|
1173 |
+
if($site=="store"){
|
1174 |
+
$api=file_get_contents("https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=8&id=$idnumber");
|
1175 |
+
$status=200;
|
1176 |
+
$Location = "receivesms.store";
|
1177 |
+
}
|
1178 |
+
if($site=="fastpva"){
|
1179 |
+
$api=json_decode(file_get_contents("http://api.fastpva.com/pvapublic/sms/shieldNumber?orderId=$idnumber&api_key=$api_key"),1);
|
1180 |
+
$status=200;
|
1181 |
+
$Location = "sms.fastpva.com";
|
1182 |
+
}
|
1183 |
+
if($site=="dropsms"){
|
1184 |
+
$status=200;
|
1185 |
+
$Location = "dropsms.ru";
|
1186 |
+
}
|
1187 |
+
if($site=="24sms7"){
|
1188 |
+
$api=file_get_contents("https://24sms7.com/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=8&id=$idnumber");
|
1189 |
+
$status=200;
|
1190 |
+
$Location = "24sms7.com";
|
1191 |
+
}
|
1192 |
+
if($site=="sellotp"){
|
1193 |
+
$status=200;
|
1194 |
+
$Location = "sellotp.com";
|
1195 |
+
}
|
1196 |
+
if($site=="duraincloud"){
|
1197 |
+
$api = json_decode(file_get_contents("http://api.duraincloud.com/out/ext_api/addBlack?name=$Username&pwd=$Password&ApiKey=$api_key&pn=$number&pid=$app"),1);
|
1198 |
+
$status = $api[code];
|
1199 |
+
$Location = "mm.duraincloud.com";
|
1200 |
+
}
|
1201 |
+
#_____json
|
1202 |
+
if($status=="200"){
|
1203 |
+
$json[status]=$status;
|
1204 |
+
$json[message]="The number has been blocked from the provider";
|
1205 |
+
$json[Location]=$Location;
|
1206 |
+
}else{
|
1207 |
+
$json[status]=$status;
|
1208 |
+
$json[message]="The number is not blocked from the provider";
|
1209 |
+
$json[Location]=$Location;
|
1210 |
+
}
|
1211 |
+
echo json_encode($json,1);
|
1212 |
+
}
|
1213 |
+
#=========={استعلام عن سعر الدولة}==========#
|
1214 |
+
if($_GET["action"] == "getPrice"){
|
1215 |
+
if($site=="5sim"){
|
1216 |
+
if($operator!="any"){
|
1217 |
+
$api=json_decode(file_get_contents("https://5sim.biz/v1/guest/prices?country=$zx&product=$app"),1);
|
1218 |
+
$price=$api[$zx][$app][$operator][cost];
|
1219 |
+
$add=$api[$zx][$app][$operator][count];
|
1220 |
+
}else{
|
1221 |
+
$price=json_decode(file_get_contents("https://5sim.biz/v1/guest/products/".$zx."/".$operator))->{$app}->Price;
|
1222 |
+
$add=json_decode(file_get_contents("https://5sim.biz/v1/guest/products/".$zx."/".$operator))->{$app}->Qty;
|
1223 |
+
}
|
1224 |
+
if($price!=null){
|
1225 |
+
$status=200;
|
1226 |
+
}else{
|
1227 |
+
$status=0;
|
1228 |
+
}
|
1229 |
+
$Location = "5sim.biz";
|
1230 |
+
}
|
1231 |
+
if($site=="tempnum"){
|
1232 |
+
$api = json_decode(file_get_contents("https://tempnum.org/stubs/handler_api.php?api_key=$api_key&action=getPrices&service=$app&country=$country"),1);
|
1233 |
+
$price=$api[$country][$app]["cost"];
|
1234 |
+
$add=$api[$country][$app]["count"];
|
1235 |
+
if($price!=null){
|
1236 |
+
$status=200;
|
1237 |
+
}else{
|
1238 |
+
$status=0;
|
1239 |
+
}
|
1240 |
+
$Location = "tempnum.org";
|
1241 |
+
}
|
1242 |
+
if($site=="man"){
|
1243 |
+
$api = json_decode(file_get_contents("http://api.sms-man.ru/stubs/handler_api.php?action=getPrices&api_key=$api_key&service=$app&country=$country"),1);
|
1244 |
+
$price=$api[$country][$app]["cost"];
|
1245 |
+
$add=$api[$country][$app]["count"];
|
1246 |
+
if($price!=null){
|
1247 |
+
$status=200;
|
1248 |
+
}else{
|
1249 |
+
$status=0;
|
1250 |
+
}
|
1251 |
+
$Location = "sms-man.ru";
|
1252 |
+
}
|
1253 |
+
if($site=="vak"){
|
1254 |
+
$api=json_decode(file_get_contents("https://vak-sms.com/api/getCountNumber/?apiKey=$api_key&service=$app&country=$zx&operator=$operator&price"),1);
|
1255 |
+
$price=$api["price"];
|
1256 |
+
$add=$api[$app];
|
1257 |
+
if($price!=null){
|
1258 |
+
$status=200;
|
1259 |
+
}else{
|
1260 |
+
$status=0;
|
1261 |
+
}
|
1262 |
+
$Location = "Vak-sms.com";
|
1263 |
+
}
|
1264 |
+
if($site=="acktiwator"){
|
1265 |
+
$api = file_get_contents("https://sms-acktiwator.ru/api/numbersstatus/$api_key?code=$zx");
|
1266 |
+
$ex = explode("$app_price",$api);
|
1267 |
+
$price = explode("cost",$ex[1]);
|
1268 |
+
$add = explode("count",$ex[1]);
|
1269 |
+
$price = explode('"',$price[1]);
|
1270 |
+
$add = explode('"',$add[1]);
|
1271 |
+
$price = str_replace(':','',$price[1]);
|
1272 |
+
$price = str_replace(',','',$price);
|
1273 |
+
$add = str_replace(':','',$add[1]);
|
1274 |
+
$add = str_replace(',','',$add);
|
1275 |
+
if($price!=null){
|
1276 |
+
$status=200;
|
1277 |
+
}else{
|
1278 |
+
$status=0;
|
1279 |
+
}
|
1280 |
+
$Location = "sms-acktiwator.ru";
|
1281 |
+
}
|
1282 |
+
if($site=="pvapins"){
|
1283 |
+
$status=0;
|
1284 |
+
$Location = "pvapins.com";
|
1285 |
+
}
|
1286 |
+
if($site=="sms3t"){
|
1287 |
+
$api=json_decode(file_get_contents("http://vps.sms3t.com/stubs/handler_api.php?api_key=$api_key&action=getPrices&service=$app&country=$country"),1);
|
1288 |
+
$price=$api[$country][$app]["cost"];
|
1289 |
+
$add=$api[$country][$app]["count"];
|
1290 |
+
if($price!=null){
|
1291 |
+
$status=200;
|
1292 |
+
}else{
|
1293 |
+
$status=0;
|
1294 |
+
}
|
1295 |
+
$Location = "sms3t.com";
|
1296 |
+
}
|
1297 |
+
if($site=="onlinesim"){
|
1298 |
+
$api=json_decode(file_get_contents("https://onlinesim.io/api/getNumbersStats.php?apikey=$api_key&country=$zx&service=$app"),1);
|
1299 |
+
$price=$api["services"]["service_$app"]["price"];
|
1300 |
+
$add=$api["services"]["service_$app"]["count"];
|
1301 |
+
if($price!=null){
|
1302 |
+
$status=200;
|
1303 |
+
}else{
|
1304 |
+
$status=0;
|
1305 |
+
}
|
1306 |
+
$Location = "onlinesim.io";
|
1307 |
+
}
|
1308 |
+
if($site=="supersmstech"){
|
1309 |
+
if($operator == 1){
|
1310 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf"],["160","100","75","85","80","80","85","60","69","100","83"],$app_price);
|
1311 |
+
}elseif($operator == 3){
|
1312 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf"],["120","160","75","85","80","80","160","60","69","100","83"],$app_price);
|
1313 |
+
}elseif($operator == 4){
|
1314 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf"],["120","250","","","","120","160","200","160","",""],$app_price);
|
1315 |
+
}elseif($operator == 5){
|
1316 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf"],["","150","85","85","85","","85","","85","","85"],$app_price);
|
1317 |
+
}elseif($operator == 7){
|
1318 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","fu","nf"],["600","200","160","160","160","260","160","160","160","160","160"],$app_price);
|
1319 |
+
}
|
1320 |
+
if($price!=null){
|
1321 |
+
$price=$api/636.9*54;
|
1322 |
+
}
|
1323 |
+
if($price!=null){
|
1324 |
+
$status=200;
|
1325 |
+
}else{
|
1326 |
+
$status=0;
|
1327 |
+
}
|
1328 |
+
$Location = "supersmstech.com";
|
1329 |
+
}
|
1330 |
+
if($site=="viotp"){
|
1331 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","nf","ot"],["3500","4400","1000","800","800","1000","900","1000","1000","1000","5000"],$app_price);
|
1332 |
+
$price=$api/22000*54;
|
1333 |
+
if($price!=null){
|
1334 |
+
$status=200;
|
1335 |
+
}else{
|
1336 |
+
$status=0;
|
1337 |
+
}
|
1338 |
+
$Location = "viotp.com";
|
1339 |
+
}
|
1340 |
+
if($site=="simsms"){
|
1341 |
+
$api=json_decode(file_get_contents("http://simsms.org/priemnik.php?metod=get_service_price&country=$zx&service=$app&apikey=$api_key"),1);
|
1342 |
+
$price=$api["price"];
|
1343 |
+
if($price!=null){
|
1344 |
+
$status=200;
|
1345 |
+
}else{
|
1346 |
+
$status=0;
|
1347 |
+
}
|
1348 |
+
$Location = "simsms.org";
|
1349 |
+
}
|
1350 |
+
if($site=="grizzly"){
|
1351 |
+
$api=json_decode(file_get_contents("https://api.grizzlysms.com/stubs/handler_api.php?api_key=$api_key&action=getPrices&service=$app&country=$zx"),1);
|
1352 |
+
$price=$api[$zx][$app]["cost"];
|
1353 |
+
$add=$api[$zx][$app]["count"];
|
1354 |
+
if($price!=null){
|
1355 |
+
$status=200;
|
1356 |
+
}else{
|
1357 |
+
$status=0;
|
1358 |
+
}
|
1359 |
+
$Location = "grizzlysms.com";
|
1360 |
+
}
|
1361 |
+
if($site=="smscode"){
|
1362 |
+
$api=json_decode(file_get_contents("https://sms-code.ru/api.php?api_key=$api_key&method=full_free_phones&service=$app"),1);
|
1363 |
+
$price=$api[data][$app][$zx]["price"];
|
1364 |
+
$add=$api[data][$app][$zx]["phones"];
|
1365 |
+
if($price!=null){
|
1366 |
+
$status=200;
|
1367 |
+
}else{
|
1368 |
+
$status=0;
|
1369 |
+
}
|
1370 |
+
$Location = "sms-code.ru";
|
1371 |
+
}
|
1372 |
+
if($site=="tiger"){
|
1373 |
+
$api=json_decode(file_get_contents("https://tiger-sms.com/stubs/handler_api.php?api_key=$api_key&action=getPrices&service=$app&country=$country"),1);
|
1374 |
+
$price=$api[$app][$country]["price"];
|
1375 |
+
$add=$api[$app][$country]["phones"];
|
1376 |
+
if($price!=null){
|
1377 |
+
$status=200;
|
1378 |
+
}else{
|
1379 |
+
$status=0;
|
1380 |
+
}
|
1381 |
+
$Location = "tiger-sms.com";
|
1382 |
+
}
|
1383 |
+
if($site=="2ndline"){
|
1384 |
+
$status=0;
|
1385 |
+
$Location = "2ndline.io";
|
1386 |
+
}
|
1387 |
+
if($site=="store"){
|
1388 |
+
$api=str_replace(["wa","tg","fb","ig","tw","go","vi","nf"],["0.3","0.3","0.3","0.3","0.3","0.3","0.3","0.3"],$app);
|
1389 |
+
$price=$api*54;
|
1390 |
+
if($price!=null){
|
1391 |
+
$status=200;
|
1392 |
+
}else{
|
1393 |
+
$status=0;
|
1394 |
+
}
|
1395 |
+
$Location = "receivesms.store";
|
1396 |
+
}
|
1397 |
+
if($site=="fastpva"){
|
1398 |
+
$status=0;
|
1399 |
+
$Location = "sms.fastpva.com";
|
1400 |
+
}
|
1401 |
+
if($site=="dropsms"){
|
1402 |
+
$price=$o_co[$app]['price16'][$country];
|
1403 |
+
if($price!=null){
|
1404 |
+
$status=200;
|
1405 |
+
}else{
|
1406 |
+
$status=0;
|
1407 |
+
}
|
1408 |
+
$Location = "dropsms.ru";
|
1409 |
+
}
|
1410 |
+
if($site=="24sms7"){
|
1411 |
+
$api=json_decode(file_get_contents("https://24sms7.com/stubs/handler_api.php?api_key=$api_key&action=getPrices&service=$app&country=$zx"),1);
|
1412 |
+
$price=$api[$zx][$app][cost];
|
1413 |
+
$add=$api[$zx][$app][count];
|
1414 |
+
if($price!=null){
|
1415 |
+
$status=200;
|
1416 |
+
}else{
|
1417 |
+
$status=0;
|
1418 |
+
}
|
1419 |
+
$Location = "24sms7.com";
|
1420 |
+
}
|
1421 |
+
if($site=="sellotp"){
|
1422 |
+
$api=str_replace(["wa","tg","fb","ig","tw","lf","go","im","vi","nf","ot"],["8000","5000","2000","4000","4000","4000","2000","4000","4000","4000","20000"],$app_price);
|
1423 |
+
$price=$api/22000*54;
|
1424 |
+
if($price!=null){
|
1425 |
+
$status=200;
|
1426 |
+
}else{
|
1427 |
+
$status=0;
|
1428 |
+
}
|
1429 |
+
$Location = "sellotp.com";
|
1430 |
+
}
|
1431 |
+
if($site=="duraincloud"){
|
1432 |
+
$status=0;
|
1433 |
+
$Location = "mm.duraincloud.com";
|
1434 |
+
}
|
1435 |
+
#_____json
|
1436 |
+
if($status=="200"){
|
1437 |
+
$json[status]=$status;
|
1438 |
+
$json[message]="The state price was brought";
|
1439 |
+
$json[price]=$price;
|
1440 |
+
$json[add]=$add;
|
1441 |
+
$json[operator]=$operator;
|
1442 |
+
$json[Location]=$Location;
|
1443 |
+
}else{
|
1444 |
+
$json[status]=$status;
|
1445 |
+
$json[message]="This country does not exist";
|
1446 |
+
$json[operator]=$operator;
|
1447 |
+
$json[Location]=$Location;
|
1448 |
+
}
|
1449 |
+
echo json_encode($json,1);
|
1450 |
+
}
|
web/index.php
ADDED
The diff for this file is too large to render.
See raw diff
|
|
web/name.php
ADDED
The diff for this file is too large to render.
See raw diff
|
|
web/number.php
ADDED
The diff for this file is too large to render.
See raw diff
|
|