Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Piratska Identita pro phpbb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Piratska Identita pro phpbb
Commits
7a5d9193
Verified
Commit
7a5d9193
authored
2 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix
parent
6302bbfc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VERSION
+1
-1
1 addition, 1 deletion
VERSION
pirati.php
+4
-4
4 additions, 4 deletions
pirati.php
with
5 additions
and
5 deletions
VERSION
+
1
−
1
View file @
7a5d9193
0.3.
0
0.3.
1
This diff is collapsed.
Click to expand it.
pirati.php
+
4
−
4
View file @
7a5d9193
...
@@ -77,10 +77,10 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
...
@@ -77,10 +77,10 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
}
}
function
octopussy_callback
()
function
octopussy_callback
(
$uid
)
{
{
$ch
=
curl_init
();
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
"https://chobotnice.pirati.cz/import-person/"
.
$
result
[
'sub'
]
.
"/"
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
"https://chobotnice.pirati.cz/import-person/"
.
$
uid
.
"/"
);
curl_exec
(
$ch
);
curl_exec
(
$ch
);
curl_close
(
$ch
);
curl_close
(
$ch
);
}
}
...
@@ -120,7 +120,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
...
@@ -120,7 +120,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
throw
new
\phpbb\auth\provider\oauth\service\exception
(
'AUTH_PROVIDER_OAUTH_RETURN_ERROR'
);
throw
new
\phpbb\auth\provider\oauth\service\exception
(
'AUTH_PROVIDER_OAUTH_RETURN_ERROR'
);
}
}
octopussy_callback
();
$this
->
octopussy_callback
(
$result
[
'sub'
]
);
return
$result
[
'sub'
];
return
$result
[
'sub'
];
}
}
...
@@ -149,7 +149,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
...
@@ -149,7 +149,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
throw
new
\phpbb\auth\provider\oauth\service\exception
(
'AUTH_PROVIDER_OAUTH_RETURN_ERROR'
);
throw
new
\phpbb\auth\provider\oauth\service\exception
(
'AUTH_PROVIDER_OAUTH_RETURN_ERROR'
);
}
}
octopussy_callback
();
$this
->
octopussy_callback
(
$result
[
'sub'
]
);
return
$result
[
'sub'
];
return
$result
[
'sub'
];
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment