Search Result: co
testaccount testaccount
Email:
Owner:
User ID: 128881
francisco francisco
Email:
Owner: https://wk.franciscodaschagas.dev
User ID: 135624
Coolheart Coolheart
Email:
Owner: https://laksri.wapka.co
User ID: 165401
Bosswin168gacor Bosswin168gacor
Email:
Owner: https://freetorrent.org
User ID: 168877
sabd_corporation sabd_corporation
Email:
Owner: https://sabd.wapka.co/
User ID: 170663
Simple login page code using Lua scripting
Admin1 · Published on 2024-11-22 03:56:49 (2 days ago )
Hello! I would like to share a simple code for a login page using Lua scripting. You are free to style the HTML codes however you want.
The code can be a little challenging to understand at first, but feel free to ask if you don't understand any part.
See also: Simple register page code using Lua scripting

How to use it:
  1. Log in to the Wapka Dashboard (https://web.wapka.org/dashboard);
  2. Select your website from the "Your services" list;
  3. Now create a new page called "login" (Basic Function > New Page) - you can skip this step if you already have a login page and want to use it.
  4. Now open the login page we created and go to Advanced function > Script, and finally paste the following Lua code into the textarea:

Code: Select all

if (env.userid ~= 0) then -- Check if the user is already logged in


url.redirect("/") -- If yes, redirect to the main page end if (req.method == "POST") then -- Checks if the login form has been submitted

error_message = nil -- Starts error message as null

username = req.post.username -- Gets the username from the POST request

password = req.post.password -- Gets the password from the POST request

continue = req.get.continue -- Useful if the user came from another page

if continue == nil then continue = "/" end -- Checks if a continue URL has been defined, if not, it is defined as the home page

if (username == "" and password == "") then -- Checks if the username and password are empty



error_message = "You must enter your username and password."

elseif (username == "") then -- Checks if username is empty



error_message = "You must enter your username."

elseif (password == "") then -- Checks if password is empty



error_message = "You must enter your password."

else -- Continue with login if username and password have been filled in



local param = { -- Sets the parameters for the API login method





username = username,





password = password



}



local is_ok, login, info, error_login = api.user_login(param)



if (is_ok) then -- Username and password are correct and login was successful





url.redirect(continue) -- Redirects to the destination defined in continue



else -- An error occurred while trying to login





error_message = error_login -- defines the error message as the one received in the login method



end

end

if (error_message) then -- Checks if any errors occurred and sets an error message div to display on the page



html_error = [=[<div class="error-message">%s</div>]=]



error_message = string.format(html_error, error_message)

end end local html_code = [=[ <h2>Log-in to your account</h2> %s <!-- This is where the error message will be --> <form method="post"> <div class="input"> <label for="username">Username:</label><br> <input type="text" name="username" value="%s" placeholder="Username" id="username"> </div> <div class="input"> <label for="password">Password:</label><br> <input type="password" name="password" value="%s" placeholder="Password" id="password"> </div> <div class="input-button"> <input type="submit" class="input-button" value="Login"> </div> </form> <div class="register-message"> Not registered yet? <a href="/register">Register</a> </div> ]=] print(string.format(html_code, error_message or "", username or "", password or ""))
Credit - francisco
comment
Wapka code block ip address
Admin1 · Published on 2024-11-21 03:23:39 (3 days ago )
Rule:

:VAR(USER_AGENT).IFEQ(Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36).THEN(#DISABLE#);
comment
Wapka Jump To Page Code
salamonvikkas · Published on 2023-03-02 01:30:48 (2 years ago )
<form method="get" action="/index.html" width="150"><br />Jump To Page: <input type="text" name="page" size="3" value=":*GET(page).OR(1);"/><input type="submit" value="Jump"/></form>
comment
i need wapka post comment notification code
obaydulbc · Published on 2023-01-08 16:44:08 (2 years ago )
anyone can help me? about this code?
comment
Pls i want to contact the admin
Blackmood · Published on 2022-10-30 02:25:34 (2 years ago )
Can anyone help me to contact the admin?
comment
Search Engine/Code for wapka?
KrejvenRoud7 · Published on 2022-09-26 03:28:54 (2 years ago )
Hello i need help!

For some time already i struggle to implemented some search box/engine to my wapka. 

For some reason unknown to me Google wont index my site (site is already on google but not indexed), and yes i know how to do that, i also added sitemap.xml and etc and nothing so i give up from google and actually i decided that i dont want my site on google search for many reasons.

Anyway in that case i cant implement google search engine to my site for users to search content i added.

So is there any free search engine, code or not to complicated tutorial how to add search engine to site friendly for wapka?

I mean actually if anyone know how to add search engine and what i need to do that? Or maybe how to create my own fory wapka? Im not a pro, everything i know including building my site https://zerogems.wapka.co i learned by myself as freelancer if i can say like that. Big thanks in advance :)
comment
help on new wapka coding
cenvista · Published on 2022-09-25 08:43:18 (2 years ago )
Good morning all,
please can someone help me with coding,
cenvista@gmail.com
comment
Please, I Need This Profile Code
utibe · Published on 2022-09-05 16:42:48 (2 years ago )
  

Please, help me with the code and how to place it. 
 This new wapka set up is confusing me. 
comment
icon pack
davisville · Published on 2022-08-28 16:08:08 (2 years ago )
Download your icons from this site:


https://iconfinder.com
comment
I want this feeds or notification code
utibe · Published on 2022-08-27 03:42:01 (2 years ago )
  

I need this code. 
comment
ifunwap.com 1680309319.jpg Userdeleted · Published on 2023-04-01 00:35:18 (2 years ago )
iFunWap
is the best place for chatting and meeting people.
With thousands of users all over the world, iFunWap gives you the ability to connect with people no matter where you are.
👉 www.ifunwap.com - 1677910015.png Userdeleted · Published on 2023-03-04 06:06:54 (2 years ago )
Best wapka chatting site of 2023!
www.ifunwap.com ♥️♥️ 1675669350.jpg Userdeleted · Published on 2023-02-06 07:42:29 (2 years ago )
Visit @ifunwap.com Best Chatting site!
www.ifunwap.com - ♥️1675577238.jpg Userdeleted · Published on 2023-02-05 06:07:17 (2 years ago )
Best wapsite on wapka site builder!
www.ifunwap.com 1673224083.jpg Userdeleted · Published on 2023-01-09 00:28:03 (2 years ago )
Visit www.ifunwap.com 
new-idea-discovered-by-mashionmario1671985547.png mario · Published on 2022-12-25 16:25:46 (2 years ago )
hello new idea is launch. displayed newest message from footer to header build if you need these type of message lister for a years now in wapka just comment i know them.
www.ifunwap.com 1671944448.jpg Userdeleted · Published on 2022-12-25 05:00:47 (2 years ago )
👉 http://www.ifunwap.com 😍