Update pages/facebook_extractor_pro.py
Browse files
pages/facebook_extractor_pro.py
CHANGED
|
@@ -17,9 +17,48 @@ import logging
|
|
| 17 |
# Add to TOP of each extractor file
|
| 18 |
import streamlit as st
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
st.stop()
|
| 24 |
|
| 25 |
# Simple session check (add proper session verification if needed)
|
|
|
|
| 17 |
# Add to TOP of each extractor file
|
| 18 |
import streamlit as st
|
| 19 |
|
| 20 |
+
# ============================================
|
| 21 |
+
# AUTHENTICATION CHECK
|
| 22 |
+
# ============================================
|
| 23 |
+
if "authenticated" not in st.session_state or not st.session_state.authenticated:
|
| 24 |
+
st.set_page_config(page_title="Access Denied", page_icon="π", layout="centered")
|
| 25 |
+
|
| 26 |
+
st.markdown("""
|
| 27 |
+
<style>
|
| 28 |
+
.error-container {
|
| 29 |
+
text-align: center;
|
| 30 |
+
padding: 3rem;
|
| 31 |
+
background: linear-gradient(135deg, #ef4444, #dc2626);
|
| 32 |
+
color: white;
|
| 33 |
+
border-radius: 10px;
|
| 34 |
+
margin: 2rem 0;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
|
| 38 |
+
<div class="error-container">
|
| 39 |
+
<h1>π Access Denied</h1>
|
| 40 |
+
<p style="font-size: 1.2rem;">Please login to access this page</p>
|
| 41 |
+
</div>
|
| 42 |
+
""", unsafe_allow_html=True)
|
| 43 |
+
|
| 44 |
+
st.markdown("""
|
| 45 |
+
<div style="text-align: center; margin-top: 2rem;">
|
| 46 |
+
<a href="/">
|
| 47 |
+
<button style="
|
| 48 |
+
background-color: #4285F4;
|
| 49 |
+
color: white;
|
| 50 |
+
padding: 12px 24px;
|
| 51 |
+
border-radius: 6px;
|
| 52 |
+
border: none;
|
| 53 |
+
font-size: 16px;
|
| 54 |
+
cursor: pointer;
|
| 55 |
+
">
|
| 56 |
+
π Go to Login Page
|
| 57 |
+
</button>
|
| 58 |
+
</a>
|
| 59 |
+
</div>
|
| 60 |
+
""", unsafe_allow_html=True)
|
| 61 |
+
|
| 62 |
st.stop()
|
| 63 |
|
| 64 |
# Simple session check (add proper session verification if needed)
|