!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/wincloud_gateway/admin/src/containers/HomePage/   drwxr-xr-x
Free 13.33 GB of 57.97 GB (22.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     index.js (10.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *
 * HomePage
 *
 */
/* eslint-disable */
import React, { memo, useMemo } from 'react';
import { FormattedMessage } from 'react-intl';
import { get, upperFirst } from 'lodash';
import { auth, LoadingIndicatorPage } from 'strapi-helper-plugin';
import PageTitle from '../../components/PageTitle';
import { useModels } from '../../hooks';
import useFetch from './hooks';
import { ALink, Block, Container, LinkWrapper, P, Wave, Separator } from './components';
import BlogPost from './BlogPost';
import SocialLink from './SocialLink';
import axios from 'axios';


// async  function data() {
  
//    var get_response= await axios
//   .get("http://localhost:1337/partners/count", {
//     headers: {
//       Authorization: `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjMwNDkxNjc5LCJleHAiOjE2MzMwODM2Nzl9.J1bWjApLDSJ6s_c3OOyXKzcYUXi9XU98iUNccF69vpQ`,
//     },
//   })
 
//     return get_response.status;
    
//   }        

//   const partner=await data();
//   console.log(partner);



const FIRST_BLOCK_LINKS = [
  {
    link:
      'https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html#_4-create-a-category-content-type',
    contentId: 'app.components.BlockLink.documentation.content',
    titleId: 'app.components.BlockLink.documentation',
  },
  {
    link: 'https://github.com/strapi/foodadvisor',
    contentId: 'app.components.BlockLink.code.content',
    titleId: 'app.components.BlockLink.code',
  },
];



const HomePage = ({ history: { push } }) => {
  const { error, isLoading, posts } = useFetch();
  // Temporary until we develop the menu API
  const { collectionTypes, singleTypes, isLoading: isLoadingForModels } = useModels();

  const handleClick = e => {
    e.preventDefault();

    push(
      '/plugins/content-type-builder/content-types/plugins::users-permissions.user?modalType=contentType&kind=collectionType&actionType=create&settingType=base&forTarget=contentType&headerId=content-type-builder.modalForm.contentType.header-create&header_icon_isCustom_1=false&header_icon_name_1=contentType&header_label_1=null'
    );
  };

  const hasAlreadyCreatedContentTypes = useMemo(() => {
    const filterContentTypes = contentTypes => contentTypes.filter(c => c.isDisplayed);

    return (
      filterContentTypes(collectionTypes).length > 1 || filterContentTypes(singleTypes).length > 0
    );
  }, [collectionTypes, singleTypes]);

  if (isLoadingForModels) {
    return <LoadingIndicatorPage />;
  }

  const headerId = hasAlreadyCreatedContentTypes
    ? 'HomePage.greetings'
    : 'app.components.HomePage.welcome';
  const username = get(auth.getUserInfo(), 'firstname', '');
  const linkProps = hasAlreadyCreatedContentTypes
    ? {
        id: 'app.components.HomePage.button.blog',
        href: 'https://strapi.io/blog/',
        onClick: () => {},
        type: 'blog',
        target: '_blank',
      }
    : {
        id: 'app.components.HomePage.create',
        href: '',
        onClick: handleClick,
        type: 'documentation',
      };

  return (
    <>
      <FormattedMessage id="HomePage.helmet.title">
        {title => <PageTitle title={title} />}
      </FormattedMessage>

      
      {/* <Container className="container-fluid">
        <div className="row">
          <div className="col-lg-8 col-md-12">
            <Block>
              <Wave />
              <FormattedMessage
                id={headerId}
                values={{
                  name: upperFirst(username),
                }}
              >
                {msg => <h2 id="mainHeader">{msg} Welcome to Homepage</h2>}
              </FormattedMessage>
          
              <Separator style={{ marginTop: 37, marginBottom: 36 }} />
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
                {FIRST_BLOCK_LINKS.map((data, index) => {
                  const type = index === 0 ? 'doc' : 'code';

                  return (
                    <LinkWrapper href={data.link} target="_blank" key={data.link} type={type}>
                      <FormattedMessage id={data.titleId}>
                        {title => <p className="bold">{title}</p>}
                      </FormattedMessage>
                      <FormattedMessage id={data.contentId}>
                        {content => <p>{content}</p>}
                      </FormattedMessage>
                    </LinkWrapper>
                  );
                })}
              </div>
            </Block>
          </div>

          <div className="col-md-12 col-lg-4">
            
            <Block style={{ paddingRight: 30, paddingBottom: 0 }}>
              <FormattedMessage id="HomePage.community">{msg => <h2>{msg}</h2>}</FormattedMessage>
              <FormattedMessage id="app.components.HomePage.community.content">
                {content => <P style={{ marginTop: 7, marginBottom: 0 }}>{content}</P>}
              </FormattedMessage>
            

              <Separator style={{ marginTop: 18 }} />
              <div
                className="row social-wrapper"
                style={{
                  display: 'flex',
                  margin: 0,
                  marginTop: 36,
                  marginLeft: -15,
                }}
              >
                
               </div>
            </Block>
          </div>
        </div>
      </Container> */}

      <Container className="container-fluid">
        <div className="row">
          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              
              <FormattedMessage
                id={headerId}>

                {msg => <h3 id=""> Total Keywords</h3>}
                {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
                
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>2000</h1>
         
              
              </div>
            </Block>
          </div>

          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>
                {msg => <h3 id=""> Total Services</h3>}
                {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>1000</h1>
              </div>
            </Block>
          </div>

          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>
                {msg => <h3 id=""> Total Partners</h3>}
                {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>200</h1>
              </div>
            </Block>
          </div>

          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>
                 {msg => <h3 id=""> Total Verdors</h3>}
                 
                 {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>101</h1>
              </div>
            </Block>
          </div>

          

   
        </div>
      </Container>

      <Container className="container-fluid">
        <div className="row">
          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>

                {msg => <h3 id=""> Total ShortCodes</h3>}
                {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
                
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>1500</h1>
              </div>
            </Block>
          </div>

          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>
                {msg => <h3 id=""> Total Hit</h3>}
                {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>300000</h1>
              </div>
            </Block>
          </div>

          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>
                {msg => <h3 id=""> Total Gp Hit</h3>}
                {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>100000</h1>
              </div>
            </Block>
          </div>

          <div className="col-lg-3 col-md-6">
            <Block>
              {/* <Wave /> */}
              <FormattedMessage
                id={headerId}>
                 {msg => <h3 id=""> Total BL Hit</h3>}
                 
                 {/* {msg => <h2 id="mainHeader">{msg} 100</h2>} */}
              </FormattedMessage>
          
              {/* <Separator style={{ marginTop: 37, marginBottom: 36 }} /> */}
              <div style={{ display: 'flex', justifyContent: 'space-between' }}>
              <h1>50000</h1>
              </div>
            </Block>
          </div>

          

   
        </div>
      </Container>

      

     
    </>
  );
};

export default memo(HomePage);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0492 ]--